[llvm] [openmp] [OpenMP][OMPX] Add ballot_sync (PR #91297)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 08:12:07 PDT 2024


================
@@ -81,6 +83,10 @@ _TGT_KERNEL_LANGUAGE_HOST_IMPL_SYNC_C(void, sync_block_divergent, int Ordering,
 #undef _TGT_KERNEL_LANGUAGE_HOST_IMPL_SYNC_C
 ///}
 
+static INLINE uint64_t ompx_ballot_sync(uint64_t mask, int pred) {
+  __builtin_trap();
+}
----------------
shiltian wrote:

We don't want application running on host using these functions to run, especially soon I'll add shuffle.

https://github.com/llvm/llvm-project/pull/91297


More information about the llvm-commits mailing list