[#llvm-MIBundleBuilder] = xref:llvm.adoc[llvm]::MIBundleBuilder :relfileprefix: ../ :mrdocs: Helper class for constructing bundles of MachineInstrs. == Synopsis Declared in `<llvm/CodeGen/MachineInstrBuilder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- 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 [cols="1,4"] |=== | Name| Description | xref:llvm/MIBundleBuilder/2constructor-06.adoc[`MIBundleBuilder`] [.small]#[constructor]# | Constructors | xref:llvm/MIBundleBuilder/append.adoc[`append`] | Insert MI into MBB by appending it to the instructions in the bundle. MI will become the last instruction in the bundle. | xref:llvm/MIBundleBuilder/begin.adoc[`begin`] | Return an iterator to the first bundled instruction. | xref:llvm/MIBundleBuilder/empty.adoc[`empty`] | Return true if no instructions have been inserted in this bundle yet. Empty bundles aren't representable in a MachineBasicBlock. | xref:llvm/MIBundleBuilder/end.adoc[`end`] | Return an iterator beyond the last bundled instruction. | xref:llvm/MIBundleBuilder/getMBB.adoc[`getMBB`] | Return a reference to the basic block containing this bundle. | xref:llvm/MIBundleBuilder/insert.adoc[`insert`] | Insert MI into this bundle before I which must point to an instruction in the bundle, or end(). | xref:llvm/MIBundleBuilder/prepend.adoc[`prepend`] | Insert MI into MBB by prepending it to the instructions in the bundle. MI will become the first instruction in the bundle. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#