[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 01:19:12 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 should have waited to push this. It is dependent on https://github.com/llvm/llvm-project/pull/246588.

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


More information about the cfe-commits mailing list