[PATCH] D143248: Emit CFI directives in epilogue and enable CFIFixup pass for RISC-V.

Varun Kumar E via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 3 01:11:57 PST 2023


varunkumare99 created this revision.
varunkumare99 added reviewers: asb, shiva0217, luismarques.
varunkumare99 added a project: LLVM.
Herald added subscribers: luke, VincentWu, vkmr, frasercrmck, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
varunkumare99 requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, MaskRay.

This patch tries to add cfi directives in the epilogue which were disabled in D69723 <https://reviews.llvm.org/D69723>
Also enables CFIFixup pass which was added in D114545 <https://reviews.llvm.org/D114545>, to emit cfi_remember_state and cfi_restore_state when reordering is done.

This is a prototype on adding cfi directives in the epilogue and emitting cfi_remember_state and cfi_restore_state in RISC-V.
Kindly advise on this and future cases to be handled. I am trying the same from my end.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143248

Files:
  llvm/lib/Target/RISCV/RISCV.h
  llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
  llvm/lib/Target/RISCV/RISCVFrameLowering.h
  llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
  llvm/test/CodeGen/RISCV/try_catch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143248.494533.patch
Type: text/x-patch
Size: 13474 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230203/2bb501f5/attachment.bin>


More information about the llvm-commits mailing list