-
Notifications
You must be signed in to change notification settings - Fork 796
[SYCL] Remove SYCL_USE_NATIVE_FP_ATOMICS macro
#19962
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] Remove SYCL_USE_NATIVE_FP_ATOMICS macro
#19962
Conversation
SYCL_USE_NATIVE_FP_ATOMICS macroSYCL_USE_NATIVE_FP_ATOMICS macro
|
@bader FYI |
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.
FE changes LGTM
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.
⭐
| const llvm::Triple &Triple = TI.getTriple(); | ||
| const llvm::Triple::SubArchType SubArch = Triple.getSubArch(); | ||
| if (Triple.isNVPTX() || Triple.isAMDGPU() || | ||
| (Triple.isSPIR() && SubArch != llvm::Triple::SPIRSubArch_fpga) || |
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.
Makes me wonder if there is more llvm::Triple::SPIRSubArch_fpga-specific behavior in the frontend/driver that we can get rid of.
This PR removes
SYCL_USE_NATIVE_FP_ATOMICSmacro.It's removed because we don't support FPGA anymore and macro was defined for all target except FPGA.
llvm/clang/lib/Frontend/InitPreprocessor.cpp
Lines 1548 to 1551 in 45cf443