Skip to content

Added flags for auto-vectorization and simple tests#2899

Merged
gretay-js merged 11 commits intooxcaml:mainfrom
ITO444:test
Aug 7, 2024
Merged

Added flags for auto-vectorization and simple tests#2899
gretay-js merged 11 commits intooxcaml:mainfrom
ITO444:test

Conversation

@ITO444
Copy link
Copy Markdown
Contributor

@ITO444 ITO444 commented Aug 7, 2024

Flags added:
-vectorize (Enables vectorizer, currently does nothing)
-no-vectorize (Disables vectorizer, currently does nothing)
-dvectorize (dumps extra information about vectorization if vectorizer is enabled, currently only counts number of instructions)

Only the skeleton is created, the pass to the vectorizer currently does not change the cfg.

Tests compile and run very a simple function (adding 2 pairs of numbers) implemented normally (compiled with and without the vectorizer) and implemented using intrinsics then compares their outputs.

@gretay-js gretay-js self-requested a review August 7, 2024 12:41
Copy link
Copy Markdown
Contributor

@gretay-js gretay-js left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few small suggestions in the comments.
Please add the new files vectorize.ml{,i} to the list in backend/.ocamlformat-enable.

@gretay-js gretay-js merged commit 34b5ca2 into oxcaml:main Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants