[llvm] [RISCV] Gate CSR defined by experimental and vendor extensions (PR #104424)
Jessica Clarke via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 15 08:31:49 PDT 2024
================
@@ -351,7 +364,10 @@ def SysRegVLENB: SysReg<"vlenb", 0xC22>;
//===----------------------------------------------------------------------===//
// Shadow Stack CSR
//===----------------------------------------------------------------------===//
-def : SysReg<"ssp", 0x011>;
+
+let FeaturesRequired = [{ {RISCV::FeatureStdExtZicfiss} }] in {
+ def : SysReg<"ssp", 0x011>;
----------------
jrtc27 wrote:
My initial instincts are to say that when it comes to CSRs experimental should be reserved solely for ones that don't have ratified encodings
https://github.com/llvm/llvm-project/pull/104424
More information about the llvm-commits
mailing list