[PATCH] D122377: [PowerPC][Linux] Support 16-byte lock free atomics on pwr8 and up

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 24 10:28:00 PDT 2022


MaskRay added inline comments.


================
Comment at: clang/lib/Basic/Targets/PPC.h:449
+    // For layout on Linux, we support up to 16 bytes.
+    if (getTriple().isOSLinux() && hasFeature("quadword-atomics")) {
+      MaxAtomicPromoteWidth = 128;
----------------
Many `isOSLinux()` usage may be really `isOSBinFormatELF()` (to help FreeBSD, etc). Can you check whether that's the case?


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

https://reviews.llvm.org/D122377



More information about the llvm-commits mailing list