Struct moore_vhdl::codegen::InstBuilder
[−]
[src]
pub struct InstBuilder<'ctx> { pub body: &'ctx mut SeqBody, pub block: BlockRef, }
An helper to build sequences of instructions.
Fields
body: &'ctx mut SeqBody
block: BlockRef
Methods
impl<'ctx> InstBuilder<'ctx>
[src]
fn new(body: &'ctx mut SeqBody, block: BlockRef) -> InstBuilder<'ctx>
[src]
Create a new instruction builder.
fn add_inst(&mut self, inst: Inst) -> InstRef
[src]
Add a new instruction.
fn add_block(&mut self, block: Block) -> BlockRef
[src]
Add a new block.
fn set_block(&mut self, block: BlockRef)
[src]
Change the block at the end of which instructions will be added.