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

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


================
@@ -106,9 +112,15 @@ static void emitSCSEpilogue(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 cfe-commits mailing list