Struct quil_rs::program::graph::InstructionBlock
source · pub struct InstructionBlock {
pub instructions: Vec<Instruction>,
pub terminator: BlockTerminator,
/* private fields */
}
Expand description
An InstructionBlock of a ScheduledProgram is a group of instructions, identified by a string label, which include no control flow instructions aside from an (optional) terminating control flow instruction.
Fields§
§instructions: Vec<Instruction>
§terminator: BlockTerminator
Implementations§
source§impl InstructionBlock
impl InstructionBlock
pub fn build( instructions: Vec<Instruction>, terminator: Option<BlockTerminator>, program: &Program ) -> ScheduleResult<Self>
pub fn get_dependency_graph(&self) -> &DependencyGraph
sourcepub fn get_instruction(&self, node_id: usize) -> Option<&Instruction>
pub fn get_instruction(&self, node_id: usize) -> Option<&Instruction>
Return a particular-indexed instruction (if present).
pub fn set_exit_condition(&mut self, terminator: BlockTerminator)
Trait Implementations§
source§impl Clone for InstructionBlock
impl Clone for InstructionBlock
source§fn clone(&self) -> InstructionBlock
fn clone(&self) -> InstructionBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InstructionBlock
impl Debug for InstructionBlock
Auto Trait Implementations§
impl RefUnwindSafe for InstructionBlock
impl Send for InstructionBlock
impl Sync for InstructionBlock
impl Unpin for InstructionBlock
impl UnwindSafe for InstructionBlock
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more