pub enum ProgramPoint {
Inst(Inst),
Block(Block),
}
Expand description
A ProgramPoint
represents a position in a function where the live range of an SSA value can
begin or end. It can be either:
- An instruction or
- A block header.
This corresponds more or less to the lines in the textual form of Cranelift IR.
Variants§
Implementations§
Source§impl ProgramPoint
impl ProgramPoint
Sourcepub fn unwrap_inst(self) -> Inst
pub fn unwrap_inst(self) -> Inst
Get the instruction we know is inside.
Trait Implementations§
Source§impl Clone for ProgramPoint
impl Clone for ProgramPoint
Source§fn clone(&self) -> ProgramPoint
fn clone(&self) -> ProgramPoint
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 ProgramPoint
impl Debug for ProgramPoint
Source§impl Display for ProgramPoint
impl Display for ProgramPoint
Source§impl From<Block> for ProgramPoint
impl From<Block> for ProgramPoint
Source§impl From<Inst> for ProgramPoint
impl From<Inst> for ProgramPoint
Source§impl PartialEq for ProgramPoint
impl PartialEq for ProgramPoint
impl Copy for ProgramPoint
impl Eq for ProgramPoint
impl StructuralPartialEq for ProgramPoint
Auto Trait Implementations§
impl Freeze for ProgramPoint
impl RefUnwindSafe for ProgramPoint
impl Send for ProgramPoint
impl Sync for ProgramPoint
impl Unpin for ProgramPoint
impl UnwindSafe for ProgramPoint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.