[clang] [clang][Mips] Don't report lock-free atomics without ll and sc (PR #246580)

Brad Smith via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 27 02:08:00 PST 2026


================
@@ -361,6 +365,10 @@ class LLVM_LIBRARY_VISIBILITY MipsTargetInfo : public TargetInfo {
         IsNoABICalls = true;
       else if (Feature == "+use-indirect-jump-hazard")
         UseIndirectJumpHazard = true;
+      else if (Feature == "+r5900")
+        IsR5900 = true;
+      else if (Feature == "+forced-atomics")
+        HasForcedAtomics = true;
----------------
brad0 wrote:

I dropped the +forced-atomics part for now. It depends on the backend feature in a separate PR, so I'll add it back if that lands.

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


More information about the cfe-commits mailing list