[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:18 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,
+ int64_t Offset,
+ SmallString<64> &CFAExpr);
+ static MCCFIInstruction createLLVMRegOffset(MCSymbol *L, unsigned Reg,
----------------
michaelmaitland wrote:
This function needs a docstring like the other `createXXX` functions in this file. This helps us document the form of this instruction and how it works.
https://github.com/llvm/llvm-project/pull/125104
More information about the llvm-commits
mailing list