pub struct NormalBlock<I: GenericInstruction> {
pub instructions: Vec<I>,
pub branch_block: BlockIndexInfo<<I::Opcode as GenericOpcode>::BranchReason>,
pub default_block: BlockIndexInfo<<I::Opcode as GenericOpcode>::BranchReason>,
}Expand description
Represents a normal block in the control flow graph
Fields§
§instructions: Vec<I>§branch_block: BlockIndexInfo<<I::Opcode as GenericOpcode>::BranchReason>Index to block for conditional jump
default_block: BlockIndexInfo<<I::Opcode as GenericOpcode>::BranchReason>Index to default block (unconditional)
Implementations§
Source§impl<T: GenericInstruction> NormalBlock<T>
impl<T: GenericInstruction> NormalBlock<T>
pub fn is_terminating(&self) -> bool
Sourcepub fn is_conditional(&self) -> bool
pub fn is_conditional(&self) -> bool
Whether the block has a conditional jump or not
Trait Implementations§
Source§impl<I: Clone + GenericInstruction> Clone for NormalBlock<I>
impl<I: Clone + GenericInstruction> Clone for NormalBlock<I>
Source§fn clone(&self) -> NormalBlock<I>
fn clone(&self) -> NormalBlock<I>
Returns a duplicate 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<I: Debug + GenericInstruction> Debug for NormalBlock<I>
impl<I: Debug + GenericInstruction> Debug for NormalBlock<I>
Source§impl<I: PartialEq + GenericInstruction> PartialEq for NormalBlock<I>
impl<I: PartialEq + GenericInstruction> PartialEq for NormalBlock<I>
impl<I: GenericInstruction> StructuralPartialEq for NormalBlock<I>
Auto Trait Implementations§
impl<I> Freeze for NormalBlock<I>
impl<I> RefUnwindSafe for NormalBlock<I>where
<<I as GenericInstruction>::Opcode as GenericOpcode>::BranchReason: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> Send for NormalBlock<I>
impl<I> Sync for NormalBlock<I>
impl<I> Unpin for NormalBlock<I>
impl<I> UnsafeUnpin for NormalBlock<I>
impl<I> UnwindSafe for NormalBlock<I>where
<<I as GenericInstruction>::Opcode as GenericOpcode>::BranchReason: UnwindSafe,
I: UnwindSafe,
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