[libc] Fix hanging test on NVPTX due to lack of warp sync
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 5 May 2023 02:36:52 +0000 (21:36 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 5 May 2023 02:38:24 +0000 (21:38 -0500)
commit2e93dd06134d4e71436b0aec3f668e0302b6e7ea
tree6cedcf62764128f07199f48e09b856778116e59d
parentae1ca47bb4456c97e112b10364c65102ffe31cd0
[libc] Fix hanging test on NVPTX due to lack of warp sync

Previously this wasn't implemented because it's effectively a no-op.
However, this should be safe to emit on sm_60 architectures. It's
important because it carries semantic importance for whether or not
something can be moved. So we should always emit this instrinsic.

Differential Revision: https://reviews.llvm.org/D149923
libc/src/__support/GPU/nvptx/utils.h