llvm::BuildMI

Insert a new instruction before I without a destination register.

Synopsis

Declared in <llvm/CodeGen/MachineInstrBuilder.h>

MachineInstrBuilder
BuildMI(
    MachineBasicBlock& BB,
    MachineBasicBlock::instr_iterator I,
    MIMetadata const& MIMD,
    MCInstrDesc const& MCID);

Return Value

Builder for the newly created instruction.

Parameters

NameDescription
BBBasic block that will contain the new instruction.
IInsertion point; the instruction is placed before this iterator.
MIMDDebug location and related metadata for the instruction.
MCIDOpcode descriptor for the new instruction.