llvm::BuildMI

Insert a new instruction with a destination register before I.

Synopsis

Declared in <llvm/CodeGen/MachineInstrBuilder.h>

MachineInstrBuilder
BuildMI(
    MachineBasicBlock& BB,
    MachineInstr* I,
    MIMetadata const& MIMD,
    MCInstrDesc const& MCID,
    Register DestReg);

Return Value

Builder for the newly created instruction.

Parameters

NameDescription
BBBasic block that will contain the new instruction.
IInstruction to insert before.
MIMDDebug location and related metadata for the instruction.
MCIDOpcode descriptor for the new instruction.
DestRegDestination virtual register used as the first operand.