llvm::BuildMI

Append a new instruction with a destination register to BB.

Synopsis

Declared in <llvm/CodeGen/MachineInstrBuilder.h>

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

Description

This version of the builder inserts the newly-built instruction at the end of the given MachineBasicBlock, and sets up the first operand as a destination virtual register.

Return Value

Builder for the newly created instruction.

Parameters

NameDescription
BBBasic block that receives the instruction at the end.
MIMDDebug location and related metadata for the instruction.
MCIDOpcode descriptor for the new instruction.
DestRegDestination virtual register used as the first operand.