LLVM: llvm::MIBundleBuilder Class Reference (original) (raw)
Helper class for constructing bundles of MachineInstrs. More...
#include "[llvm/CodeGen/MachineInstrBuilder.h](MachineInstrBuilder%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| MIBundleBuilder (MachineBasicBlock &BB, MachineBasicBlock::iterator Pos) | |
| Create an MIBundleBuilder that inserts instructions into a new bundle in BB above the bundle or instruction at Pos. | |
| MIBundleBuilder (MachineBasicBlock &BB, MachineBasicBlock::iterator B, MachineBasicBlock::iterator E) | |
| Create a bundle from the sequence of instructions between B and E. | |
| MIBundleBuilder (MachineInstr *MI) | |
| Create an MIBundleBuilder representing an existing instruction or bundle that has MI as its head. | |
| MachineBasicBlock & | getMBB () const |
| Return a reference to the basic block containing this bundle. | |
| bool | empty () const |
| Return true if no instructions have been inserted in this bundle yet. | |
| MachineBasicBlock::instr_iterator | begin () const |
| Return an iterator to the first bundled instruction. | |
| MachineBasicBlock::instr_iterator | end () const |
| Return an iterator beyond the last bundled instruction. | |
| MIBundleBuilder & | insert (MachineBasicBlock::instr_iterator I, MachineInstr *MI) |
| Insert MI into this bundle before I which must point to an instruction in the bundle, or end(). | |
| MIBundleBuilder & | prepend (MachineInstr *MI) |
| Insert MI into MBB by prepending it to the instructions in the bundle. | |
| MIBundleBuilder & | append (MachineInstr *MI) |
| Insert MI into MBB by appending it to the instructions in the bundle. |
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 601 of file MachineInstrBuilder.h.
◆ MIBundleBuilder() [2/3]
◆ MIBundleBuilder() [3/3]
| llvm::MIBundleBuilder::MIBundleBuilder ( MachineInstr * MI) | inlineexplicit |
|---|
◆ append()
◆ begin()
◆ empty()
| bool llvm::MIBundleBuilder::empty ( ) const | inline |
|---|
◆ end()
◆ getMBB()
◆ insert()
◆ prepend()
The documentation for this class was generated from the following file:
- include/llvm/CodeGen/MachineInstrBuilder.h