Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenMP SIMD pragma to function declarations in sleef.h #404

Merged
merged 11 commits into from
Feb 4, 2021

Conversation

shibatch
Copy link
Owner

@shibatch shibatch commented Feb 3, 2021

This patch adds vector ABI aliases to the vector functions.
It also adds "omp declare simd" pragma to the declaration of scalar functions in sleef.h.
This pragma is only enabled if SLEEF_ENABLE_OMP_SIMD is defined.
By the modifications above, the auto-vectorizer in gcc can convert calls to sleef scalar functions to the corresponding vector functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant