aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TextAPI/Platform.cpp
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-03-23 14:15:01 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-03-23 16:30:07 -0500
commitaf54d1e852850edcc7b9485851320d9ebf1be4fe (patch)
tree8ee5bc608bfff8f6ad612f0cc35db9425a8e286a /llvm/lib/TextAPI/Platform.cpp
parent3111784ff7d3d51a9e981b1a0bbc8f6511c34d25 (diff)
downloadllvm-af54d1e852850edcc7b9485851320d9ebf1be4fe.zip
llvm-af54d1e852850edcc7b9485851320d9ebf1be4fe.tar.gz
llvm-af54d1e852850edcc7b9485851320d9ebf1be4fe.tar.bz2
[NVPTX] Set the atomic inling threshold when targeting NVPTX directly
Since Clang 16.0.0 users can target the `NVPTX` architecture directly via `--target=nvptx64-nvidia-cuda`. However, this does not set the atomic inlining size correctly. This leads to spurious warnings and emission of runtime atomics that are never implemented. This patch ensures that we set this to the appropriate pointer width. This will always be 64 in the future as `nvptx64` will only be supported moving forward. Fixes: https://github.com/llvm/llvm-project/issues/61410 Reviewed By: tra Differential Revision: https://reviews.llvm.org/D146750
Diffstat (limited to 'llvm/lib/TextAPI/Platform.cpp')
0 files changed, 0 insertions, 0 deletions