Enum cranelift_codegen::machinst::blockorder::LoweredBlock [−][src]
pub enum LoweredBlock {
Orig {
block: Block,
},
OrigAndEdge {
block: Block,
edge_inst: Inst,
succ: Block,
},
EdgeAndOrig {
pred: Block,
edge_inst: Inst,
block: Block,
},
Edge {
pred: Block,
edge_inst: Inst,
succ: Block,
},
}Expand description
The origin of a block in the lowered block-order: either an original CLIF block, or an inserted edge-block, or a combination of the two if an edge is non-critical.
Variants
Block in original CLIF, with no merged edge-blocks.
Show fields
Fields of Orig
block: BlockOriginal CLIF block.
Block in the original CLIF, plus edge-block to one succ (which is the one successor of the original block).
Show fields
Block in the original CLIF, preceded by edge-block from one pred (which is the one pred of the original block).
Show fields
Split critical edge between two CLIF blocks. This lowered block does not
correspond to any original CLIF blocks; it only serves as an insertion
point for work to happen on the transition from pred to succ.
Show fields
Implementations
impl LoweredBlock[src]
impl LoweredBlock[src]pub fn orig_block(self) -> Option<Block>[src]
pub fn orig_block(self) -> Option<Block>[src]The associated original (CLIF) block included in this lowered block, if any.
Trait Implementations
impl Clone for LoweredBlock[src]
impl Clone for LoweredBlock[src]fn clone(&self) -> LoweredBlock[src]
fn clone(&self) -> LoweredBlock[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for LoweredBlock[src]
impl Debug for LoweredBlock[src]impl Hash for LoweredBlock[src]
impl Hash for LoweredBlock[src]impl PartialEq<LoweredBlock> for LoweredBlock[src]
impl PartialEq<LoweredBlock> for LoweredBlock[src]fn eq(&self, other: &LoweredBlock) -> bool[src]
fn eq(&self, other: &LoweredBlock) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &LoweredBlock) -> bool[src]
fn ne(&self, other: &LoweredBlock) -> bool[src]This method tests for !=.
impl Copy for LoweredBlock[src]
impl Eq for LoweredBlock[src]
impl StructuralEq for LoweredBlock[src]
impl StructuralPartialEq for LoweredBlock[src]
Auto Trait Implementations
impl RefUnwindSafe for LoweredBlock
impl Send for LoweredBlock
impl Sync for LoweredBlock
impl Unpin for LoweredBlock
impl UnwindSafe for LoweredBlock
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more