[Openmp-commits] [PATCH] D112261: [OpenMP] libomp: disable definitions of 5.1 atomics for non-x86 arch

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 25 11:17:45 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGe38a1deb66c0: [OpenMP] libomp: disable definitions of 5.1 atomics for non-x86 arch. (authored by AndreyChurbanov).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112261/new/

https://reviews.llvm.org/D112261

Files:
  openmp/runtime/src/kmp_atomic.cpp


Index: openmp/runtime/src/kmp_atomic.cpp
===================================================================
--- openmp/runtime/src/kmp_atomic.cpp
+++ openmp/runtime/src/kmp_atomic.cpp
@@ -3694,6 +3694,8 @@
   __kmp_release_atomic_lock(&__kmp_atomic_lock, gtid);
 }
 
+#if KMP_ARCH_X86 || KMP_ARCH_X86_64
+
 // OpenMP 5.1 compare and swap
 
 /*!
@@ -3855,6 +3857,7 @@
 }
 
 // End OpenMP 5.1 compare + capture
+#endif // KMP_ARCH_X86 || KMP_ARCH_X86_64
 
 /*!
 @}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112261.382068.patch
Type: text/x-patch
Size: 464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20211025/7abc0788/attachment.bin>


More information about the Openmp-commits mailing list