[llvm] [clang] [RISCV][MC] MC layer support for the experimental zalasr extension (PR #69685)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 25 15:10:33 PST 2024


================
@@ -797,6 +797,13 @@ def FeatureStdExtSvpbmt
     : SubtargetFeature<"svpbmt", "HasStdExtSvpbmt", "true",
                        "'Svpbmt' (Page-Based Memory Types)">;
 
+def FeatureStdExtZalasr
+    : SubtargetFeature<"experimental-zalasr", "HasStdExtZalasr", "true",
+                       "'Zalasr' (Load-Acquire and Store-Release Instructions)">;
+def HasStdExtZalasr : Predicate<"Subtarget->hasStdExtZalasr()">,
+                               AssemblerPredicate<(all_of FeatureStdExtZalasr),
----------------
topperc wrote:

Align `AssemblerPredicate` with `Predicate` on the previous line. This file was recently reformatted.

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


More information about the cfe-commits mailing list