llvm::MIBundleBuilder

Helper class for constructing bundles of MachineInstrs.

Synopsis

Declared in <llvm/CodeGen/MachineInstrBuilder.h>

class MIBundleBuilder;

Description

MIBundleBuilder can create a bundle from scratch by inserting new MachineInstrs one at a time, or it can create a bundle from a sequence of existing MachineInstrs in a basic block.

Member Functions

NameDescription
MIBundleBuilder [constructor]Constructors
append Insert MI into MBB by appending it to the instructions in the bundle. MI will become the last instruction in the bundle.
begin Return an iterator to the first bundled instruction.
empty Return true if no instructions have been inserted in this bundle yet. Empty bundles aren't representable in a MachineBasicBlock.
end Return an iterator beyond the last bundled instruction.
getMBB Return a reference to the basic block containing this bundle.
insert Insert MI into this bundle before I which must point to an instruction in the bundle, or end().
prepend Insert MI into MBB by prepending it to the instructions in the bundle. MI will become the first instruction in the bundle.