__syncthreads was renamed to __nvvm_bar0 in r274664. But __syncthreads
is part of our user-facing API, so we need to keep the name.
This will momentarily break clang; we need a matching patch there.
Patch by Justin Bogner.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274779
91177308-0d34-0410-b5e6-
96231b3b80d8
[IntrArgMemOnly, NoCapture<0>]>;
// Bar.Sync
- def int_nvvm_barrier0 : GCCBuiltin<"__nvvm_bar0">,
+
+ // The builtin for "bar.sync 0" is called __syncthreads. Unlike most of the
+ // intrinsics in this file, this one is a user-facing API.
+ def int_nvvm_barrier0 : GCCBuiltin<"__syncthreads">,
Intrinsic<[], [], [IntrConvergent]>;
def int_nvvm_barrier0_popc : GCCBuiltin<"__nvvm_bar0_popc">,
Intrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrConvergent]>;