Enum cranelift_isle::ir::ExprInst
source · pub enum ExprInst {
ConstInt {
ty: TypeId,
val: i128,
},
ConstPrim {
ty: TypeId,
val: Sym,
},
CreateVariant {
inputs: Vec<(Value, TypeId)>,
ty: TypeId,
variant: VariantId,
},
Construct {
inputs: Vec<(Value, TypeId)>,
ty: TypeId,
term: TermId,
infallible: bool,
multi: bool,
},
Return {
index: usize,
ty: TypeId,
value: Value,
},
}
Expand description
A single Expr instruction.
Variants§
ConstInt
Produce a constant integer.
ConstPrim
Produce a constant extern value.
CreateVariant
Fields
Create a variant.
Construct
Fields
Invoke a constructor.
Return
Fields
Set the Nth return value. Produces no values.
Implementations§
Trait Implementations§
source§impl Ord for ExprInst
impl Ord for ExprInst
source§impl PartialEq<ExprInst> for ExprInst
impl PartialEq<ExprInst> for ExprInst
source§impl PartialOrd<ExprInst> for ExprInst
impl PartialOrd<ExprInst> for ExprInst
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