Enum regalloc2::InstPosition
source · #[repr(u8)]
pub enum InstPosition {
Before,
After,
}
Expand description
A position before or after an instruction at which we can make an edit.
Note that this differs from OperandPos
in that the former
describes specifically a constraint on an operand, while this
describes a program point. OperandPos
could grow more options in
the future, for example if we decide that an “early write” or
“late read” phase makes sense, while InstPosition
will always
describe these two insertion points.
Variants§
Trait Implementations§
source§impl Clone for InstPosition
impl Clone for InstPosition
source§fn clone(&self) -> InstPosition
fn clone(&self) -> InstPosition
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 InstPosition
impl Debug for InstPosition
source§impl Hash for InstPosition
impl Hash for InstPosition
source§impl Ord for InstPosition
impl Ord for InstPosition
source§fn cmp(&self, other: &InstPosition) -> Ordering
fn cmp(&self, other: &InstPosition) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<InstPosition> for InstPosition
impl PartialEq<InstPosition> for InstPosition
source§fn eq(&self, other: &InstPosition) -> bool
fn eq(&self, other: &InstPosition) -> bool
source§impl PartialOrd<InstPosition> for InstPosition
impl PartialOrd<InstPosition> for InstPosition
source§fn partial_cmp(&self, other: &InstPosition) -> Option<Ordering>
fn partial_cmp(&self, other: &InstPosition) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more