llvm::MachineIRBuilder::buildDirectDbgValue

Build and insert a DBG_VALUE instruction expressing the fact that the associated Variable lives in Reg (suitably modified by Expr).

Synopsis

Declared in <llvm/CodeGen/GlobalISel/MachineIRBuilder.h>

MachineInstrBuilder
buildDirectDbgValue(
    Register Reg,
    MDNode const* Variable,
    MDNode const* Expr);

Return Value

a MachineInstrBuilder for the newly created instruction.

Parameters

NameDescription
RegRegister holding the debug value or address.
VariableDILocalVariable metadata describing the debug variable.
ExprDIExpression applied to the debug value.