llvm::updateDbgValueForSpill

Update a DBG_VALUE whose value has been spilled to FrameIndex. Useful when modifying an instruction in place while iterating over a basic block.

Synopsis

Declared in <llvm/CodeGen/MachineInstrBuilder.h>

void
updateDbgValueForSpill(
    MachineInstr& Orig,
    int FrameIndex,
    Register Reg);

Parameters

NameDescription
OrigDBG_VALUE to rewrite in place.
FrameIndexFrame index where the spilled value now lives.
RegRegister whose debug operands should become the frame index.