llvm::BuildMI

Insert a new instruction before I without a destination register.

Synopsis

Declared in <llvm/CodeGen/MachineInstrBuilder.h>

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

Description

If I is inside a bundle, the new instruction is added to that bundle.

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.