[llvm] [RISCV] Gate CSR defined by experimental and vendor extensions (PR #104424)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 15 08:28:39 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>;
----------------
topperc wrote:

The extension is experimental in LLVM due to incomplete implementation of CodeGen support for Zicfiss. The extension itself is ratified so the CSR address is frozen. Should we consider assembly support for Zicfiss as non-experimental?

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


More information about the llvm-commits mailing list