[llvm] [clang] [RISCV] Add Zicfiss support to the shadow call stack implementation. (PR #68075)
Yeting Kuo via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 6 05:01:58 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)) {
----------------
yetingk wrote:
Done.
https://github.com/llvm/llvm-project/pull/68075
More information about the cfe-commits
mailing list