Struct cranelift_isle::ir::ExprSequence
source · [−]Expand description
A linear sequence of instructions that produce a new value from the
right-hand side of a rule, given bindings that come from a Pattern
derived
from the left-hand side.
Fields
insts: Vec<ExprInst>
Instruction sequence for expression.
InstId
indexes into this sequence for Value::Expr
values.
pos: Pos
Position at which the rule producing this sequence was located.
Implementations
sourceimpl ExprSequence
impl ExprSequence
sourcepub fn is_const_int(&self) -> Option<(TypeId, i64)>
pub fn is_const_int(&self) -> Option<(TypeId, i64)>
Is this expression sequence producing a constant integer?
If so, return the integer type and the constant.
Trait Implementations
sourceimpl Clone for ExprSequence
impl Clone for ExprSequence
sourcefn clone(&self) -> ExprSequence
fn clone(&self) -> ExprSequence
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExprSequence
impl Debug for ExprSequence
sourceimpl Default for ExprSequence
impl Default for ExprSequence
sourcefn default() -> ExprSequence
fn default() -> ExprSequence
Returns the “default value” for a type. Read more
sourceimpl Hash for ExprSequence
impl Hash for ExprSequence
sourceimpl Ord for ExprSequence
impl Ord for ExprSequence
sourceimpl PartialEq<ExprSequence> for ExprSequence
impl PartialEq<ExprSequence> for ExprSequence
sourcefn eq(&self, other: &ExprSequence) -> bool
fn eq(&self, other: &ExprSequence) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExprSequence) -> bool
fn ne(&self, other: &ExprSequence) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ExprSequence> for ExprSequence
impl PartialOrd<ExprSequence> for ExprSequence
sourcefn partial_cmp(&self, other: &ExprSequence) -> Option<Ordering>
fn partial_cmp(&self, other: &ExprSequence) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Eq for ExprSequence
impl StructuralEq for ExprSequence
impl StructuralPartialEq for ExprSequence
Auto Trait Implementations
impl RefUnwindSafe for ExprSequence
impl Send for ExprSequence
impl Sync for ExprSequence
impl Unpin for ExprSequence
impl UnwindSafe for ExprSequence
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more