[−][src]Struct cranelift_codegen_meta::cdsl::instructions::InstructionPredicate
Fields
node: Option<InstructionPredicateNode>
Implementations
impl InstructionPredicate
[src]
pub fn new() -> Self
[src]
pub fn unwrap(self) -> InstructionPredicateNode
[src]
pub fn new_typevar_check(
inst: &Rc<InstructionContent>,
type_var: &TypeVar,
value_type: &ValueType
) -> InstructionPredicateNode
[src]
inst: &Rc<InstructionContent>,
type_var: &TypeVar,
value_type: &ValueType
) -> InstructionPredicateNode
pub fn new_ctrl_typevar_check(
value_type: &ValueType
) -> InstructionPredicateNode
[src]
value_type: &ValueType
) -> InstructionPredicateNode
pub fn new_is_field_equal(
format: &InstructionFormat,
field_name: &'static str,
imm_value: String
) -> InstructionPredicateNode
[src]
format: &InstructionFormat,
field_name: &'static str,
imm_value: String
) -> InstructionPredicateNode
pub fn new_is_field_equal_ast(
format: &InstructionFormat,
field: &FormatField,
imm_value: String
) -> InstructionPredicateNode
[src]
format: &InstructionFormat,
field: &FormatField,
imm_value: String
) -> InstructionPredicateNode
Used only for the AST module, which directly passes in the format field.
pub fn new_is_signed_int(
format: &InstructionFormat,
field_name: &'static str,
width: usize,
scale: usize
) -> InstructionPredicateNode
[src]
format: &InstructionFormat,
field_name: &'static str,
width: usize,
scale: usize
) -> InstructionPredicateNode
pub fn new_is_unsigned_int(
format: &InstructionFormat,
field_name: &'static str,
width: usize,
scale: usize
) -> InstructionPredicateNode
[src]
format: &InstructionFormat,
field_name: &'static str,
width: usize,
scale: usize
) -> InstructionPredicateNode
pub fn new_is_zero_int(
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
[src]
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
pub fn new_is_zero_32bit_float(
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
[src]
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
pub fn new_is_zero_64bit_float(
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
[src]
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
pub fn new_is_all_zeroes(
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
[src]
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
pub fn new_is_all_ones(
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
[src]
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
pub fn new_length_equals(
format: &InstructionFormat,
size: usize
) -> InstructionPredicateNode
[src]
format: &InstructionFormat,
size: usize
) -> InstructionPredicateNode
pub fn new_is_colocated_func(
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
[src]
format: &InstructionFormat,
field_name: &'static str
) -> InstructionPredicateNode
pub fn new_is_colocated_data(formats: &Formats) -> InstructionPredicateNode
[src]
pub fn and(self, new_node: InstructionPredicateNode) -> Self
[src]
pub fn or(self, new_node: InstructionPredicateNode) -> Self
[src]
pub fn rust_predicate(&self, func_str: &str) -> Option<String>
[src]
pub fn type_predicate(&self, func_str: &str) -> Option<String>
[src]
Returns the type predicate if this is one, or None otherwise.
pub fn collect_leaves(&self) -> Vec<&InstructionPredicateNode>
[src]
Returns references to all the nodes that are leaves in the condition (i.e. by flattening AND/OR).
Trait Implementations
impl Clone for InstructionPredicate
[src]
fn clone(&self) -> InstructionPredicate
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for InstructionPredicate
[src]
impl Hash for InstructionPredicate
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Into<InstructionPredicate> for InstructionPredicateNode
[src]
fn into(self) -> InstructionPredicate
[src]
impl PartialEq<InstructionPredicate> for InstructionPredicate
[src]
fn eq(&self, other: &InstructionPredicate) -> bool
[src]
fn ne(&self, other: &InstructionPredicate) -> bool
[src]
impl StructuralEq for InstructionPredicate
[src]
impl StructuralPartialEq for InstructionPredicate
[src]
Auto Trait Implementations
impl RefUnwindSafe for InstructionPredicate
impl Send for InstructionPredicate
impl Sync for InstructionPredicate
impl Unpin for InstructionPredicate
impl UnwindSafe for InstructionPredicate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,