[clang] [llvm] [RISCV] Add Codegen support for ACLIC (PR #238325)

Zeyi Xu via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 24 19:24:34 PST 2026


zeyi2 wrote:

> @zeyi2 we discussed this with a whiteboard, and Eli convinced me that the CFA should point at the `sp` before the hardware stacks any registers. This is simpler than annotating the frame with additional info, and extending the unwinder to look at that info, so the stack is popped when leaving the interrupt handler.

Thanks! If I understand correctly, that matches what this PR was already doing: the CFA is the `sp` before the hardware pushes any registers.

While double-checking this, I did catch a small edge case with shrink-wrapping and the shadow call stack prologue and applied some new commits to fix them.

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


More information about the cfe-commits mailing list