[llvm] [MC][AsmPrinter] Introduce llvm_reg_offset pseudo cfi instruction. (PR #125104)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 30 11:13:19 PST 2025
================
@@ -634,6 +649,22 @@ class MCCFIInstruction {
return MCCFIInstruction(OpRegister, L, Register1, Register2, Loc);
}
+ /// This is a "pseudo CFI" instruction which generates the escape expression
+ /// deref(FrameReg + Offset) for the register Reg.
+ static void createRegOffsetExpression(unsigned Reg, unsigned FrameReg,
----------------
michaelmaitland wrote:
This function writes the result into CFAExpr. I think you should clarify this in the docstring. And perhaps you should document what it writes into CFAExpr.
https://github.com/llvm/llvm-project/pull/125104
More information about the llvm-commits
mailing list