[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


================
@@ -1518,6 +1538,8 @@ void FrameEmitterImpl::emitCFIInstruction(const MCCFIInstruction &Instr) {
     }
     return;
   }
+  case MCCFIInstruction::OpLLVMRegOffset:
+    llvm_unreachable("Should emit llvm_reg_offset as escape");
----------------
michaelmaitland wrote:

It looks like all other instructions in this function emit something to the streamer. Why don't we emit something to the streamer here? Can you help me understand what it means to emit it as an escape? Where does this occur? Are there any other MCCFIInstructions that do something similar?

If you are expected to escape this in the CFIInserter, I think I'd like to see that code included in this patch.

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


More information about the llvm-commits mailing list