Insert a new instruction with a destination register before I.
Synopsis
Declared in <llvm/CodeGen/MachineInstrBuilder.h>
MachineInstrBuilder
BuildMI(
MachineBasicBlock& BB,
MachineBasicBlock::iterator I,
MIMetadata const& MIMD,
MCInstrDesc const& MCID,
Register DestReg);
Description
This version of the builder inserts the newly‐built instruction before the given position in the given MachineBasicBlock, and sets up the first operand as a destination virtual register.
Return Value
Builder for the newly created instruction.
Parameters
Name |
Description |
BB |
Basic block that will contain the new instruction. |
I |
Insertion point; the instruction is placed before this iterator. |
MIMD |
Debug location and related metadata for the instruction. |
MCID |
Opcode descriptor for the new instruction. |
DestReg |
Destination virtual register used as the first operand. |
Created with MrDocs