LLVM API Documentation
#include <MachineInstrBuilder.h>
Public Member Functions | |
MIBundleBuilder (MachineBasicBlock &BB, MachineBasicBlock::iterator Pos) | |
MIBundleBuilder (MachineBasicBlock &BB, MachineBasicBlock::iterator B, MachineBasicBlock::iterator E) | |
Create a bundle from the sequence of instructions between B and E. More... | |
MIBundleBuilder (MachineInstr *MI) | |
MachineBasicBlock & | getMBB () const |
Return a reference to the basic block containing this bundle. More... | |
bool | empty () const |
MachineBasicBlock::instr_iterator | begin () const |
Return an iterator to the first bundled instruction. More... | |
MachineBasicBlock::instr_iterator | end () const |
Return an iterator beyond the last bundled instruction. More... | |
MIBundleBuilder & | insert (MachineBasicBlock::instr_iterator I, MachineInstr *MI) |
MIBundleBuilder & | prepend (MachineInstr *MI) |
MIBundleBuilder & | append (MachineInstr *MI) |
Helper class for constructing bundles of MachineInstrs.
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.
Definition at line 411 of file MachineInstrBuilder.h.
|
inline |
Create an MIBundleBuilder that inserts instructions into a new bundle in BB above the bundle or instruction at Pos.
Definition at line 419 of file MachineInstrBuilder.h.
|
inline |
Create a bundle from the sequence of instructions between B and E.
Definition at line 424 of file MachineInstrBuilder.h.
References llvm::MachineInstr::bundleWithPred(), and llvm::A64CC::MI.
|
inlineexplicit |
Create an MIBundleBuilder representing an existing instruction or bundle that has MI as its head.
Definition at line 439 of file MachineInstrBuilder.h.
|
inline |
Insert MI into MBB by appending it to the instructions in the bundle. MI will become the last instruction in the bundle.
Definition at line 485 of file MachineInstrBuilder.h.
References end(), and insert().
Referenced by insertDelayFiller().
|
inline |
Return an iterator to the first bundled instruction.
Definition at line 450 of file MachineInstrBuilder.h.
Referenced by prepend().
|
inline |
Return true if no instructions have been inserted in this bundle yet. Empty bundles aren't representable in a MachineBasicBlock.
Definition at line 447 of file MachineInstrBuilder.h.
Referenced by insert().
|
inline |
Return an iterator beyond the last bundled instruction.
Definition at line 453 of file MachineInstrBuilder.h.
Referenced by append().
|
inline |
Return a reference to the basic block containing this bundle.
Definition at line 443 of file MachineInstrBuilder.h.
|
inline |
Insert MI into this bundle before I which must point to an instruction in the bundle, or end().
Definition at line 457 of file MachineInstrBuilder.h.
References llvm::MachineInstr::BundledPred, llvm::MachineInstr::BundledSucc, llvm::MachineInstr::bundleWithPred(), llvm::MachineInstr::bundleWithSucc(), empty(), llvm::MachineBasicBlock::insert(), llvm::A64CC::MI, and llvm::MachineInstr::setFlag().
|
inline |
Insert MI into MBB by prepending it to the instructions in the bundle. MI will become the first instruction in the bundle.
Definition at line 479 of file MachineInstrBuilder.h.
References begin(), and insert().
Referenced by llvm::finalizeBundle().