-
Notifications
You must be signed in to change notification settings - Fork 734
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
[SYCL] Refactor and generate SYCL builtins #10198
[SYCL] Refactor and generate SYCL builtins #10198
Conversation
This commit refactors the current implementation of builtins, splitting them into marray implementations and a new generator script generating the scalar and vector variants. This also makes the scalar overloads into overloads and makes the vector builtins templated on the size of the vector. Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
a479a2c
to
1105d05
Compare
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
b33066b
to
a956464
Compare
This should be ready for review. Corresponding spec changes are in KhronosGroup/SYCL-Docs#440. |
@intel/sycl-language-enabling-triage: FYI |
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if all @AlexeySachkov's comment are resolved
Discussed with @AlexeySachkov and we agreed that all his comments had been addressed. Merging. |
This reverts commit e4676b6.
…)"" This reverts commit 3393304.
// RUN: %{run} %t.out | ||
|
||
#ifdef _WIN32 | ||
#define _USE_MATH_DEFINES // To use vath constants |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo? "vath" -> "math"
This commit changes the builtin headers from defining all SYCL builtins to using a number of generated header files containing these builtin functions. --------- Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
This commit changes the builtin headers from defining all SYCL builtins to using a number of generated header files containing these builtin functions.