Trait cardinal_backend::builder::TraitFunctionBuilder [−][src]
pub trait TraitFunctionBuilder { fn create_block(&mut self) -> Block; fn use_block(&mut self, bl: Block); }
Expand description
An instruction builder trait intended for the FunctionBuilder
struct.
It allows building instructions and creating blocks.
Required methods
fn create_block(&mut self) -> Block
fn create_block(&mut self) -> Block
Creates a new block reference.
The first (default) block of a function has an index of 0, meaning that any blocks created will have an index of 1 or higher.