================
@@ -1234,6 +1234,10 @@ class LLVM_ABI MachineFunction {
[[nodiscard]] unsigned addFrameInst(const MCCFIInstruction &Inst);
+ /// Replace all references to register \param From with register \param To in
+ /// frame instructions. Note that .cfi_escape instructions will be left
as-is.
+ void replaceFrameInstRegister(Register From, Register To);
----------------
arsenm wrote:
Assuming these are physical registers, should use MCRegister
https://github.com/llvm/llvm-project/pull/164726
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits