[PATCH] D61773: [RISCV] Add CFI directives for RISCV prologue/epilog.
Shiva Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 01:20:29 PDT 2019
shiva0217 added a comment.
Hi Kai,
We could also generate .cfi_restore for epilogue by:
unsigned CFIIndex = MF->addFrameInst(MCCFIInstruction::createRestore(
nullptr, MRI->getDwarfRegNum(Reg, 1)));
BuildMI(MBB, MBBI, DL, TII.get(TargetOpcode::CFI_INSTRUCTION))
.addCFIIndex(CFIIndex);
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61773/new/
https://reviews.llvm.org/D61773
More information about the llvm-commits
mailing list