================
@@ -258,6 +258,58 @@ void setCriticalLock(omp_lock_t *Lock) { setLock(Lock); }
 #endif
 ///}
 
+#if defined(__SPIRV__)
+
+uint32_t atomicInc(uint32_t *Address, uint32_t Val, atomic::OrderingTy 
Ordering,
+                   atomic::MemScopeTy MemScope) {
+  return atomic::add(Address, Val, Ordering);
----------------
fineg74 wrote:

Implemented it using existing API

https://github.com/llvm/llvm-project/pull/174675
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to