[clang] [llvm] [RISCV] Add experimental support of Zaamo and Zalrsc (PR #78970)
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 22 14:47:28 PST 2024
================
@@ -1105,7 +1129,7 @@ def FeatureForcedAtomics : SubtargetFeature<
"forced-atomics", "HasForcedAtomics", "true",
"Assume that lock-free native-width atomics are available">;
def HasAtomicLdSt
- : Predicate<"Subtarget->hasStdExtA() || Subtarget->hasForcedAtomics()">;
+ : Predicate<"Subtarget->hasStdExtA() || Subtarget->hasStdExtZalrsc() || Subtarget->hasForcedAtomics()">;
----------------
topperc wrote:
This is only used by CodeGen patterns and should not be touched by an MC patch.
https://github.com/llvm/llvm-project/pull/78970
More information about the cfe-commits
mailing list