[llvm] [clang] [RISCV] Add Zicfiss support to the shadow call stack implementation. (PR #68075)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 31 10:08:46 PST 2024


================
@@ -51,9 +51,15 @@ static void emitSCSPrologue(MachineFunction &MF, MachineBasicBlock &MBB,
           CSI, [&](CalleeSavedInfo &CSR) { return CSR.getReg() == RAReg; }))
     return;
 
+  const RISCVInstrInfo *TII = STI.getInstrInfo();
+  if (!STI.hasForcedSWShadowStack() &&
+      STI.hasFeature(RISCV::FeatureStdExtZicfiss)) {
----------------
topperc wrote:

STI.hasStdExtZicfiss()

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


More information about the llvm-commits mailing list