Enum cranelift_codegen::ir::ProgramPoint
source · 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
source§fn eq(&self, other: &ProgramPoint) -> bool
fn eq(&self, other: &ProgramPoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.