[][src]Enum cranelift_codegen_meta::cdsl::instructions::FormatPredicateKind

pub(crate) enum FormatPredicateKind {
    IsEqual(String),
    IsSignedInt(usizeusize),
    IsUnsignedInt(usizeusize),
    IsZeroInt,
    IsZero32BitFloat,
    IsZero64BitFloat,
    IsAllZeroes,
    IsAllOnes,
    LengthEquals(usize),
    IsColocatedFunc,
    IsColocatedData,
}

Variants

IsEqual(String)

Is the field member equal to the expected value (stored here)?

IsSignedInt(usizeusize)

Is the immediate instruction format field representable as an n-bit two's complement integer? (with width: first member, scale: second member). The predicate is true if the field is in the range: -2^(width-1) -- 2^(width-1)-1 and a multiple of 2^scale.

IsUnsignedInt(usizeusize)

Is the immediate instruction format field representable as an n-bit unsigned integer? (with width: first member, scale: second member). The predicate is true if the field is in the range: 0 -- 2^width - 1 and a multiple of 2^scale.

IsZeroInt

Is the immediate format field member an integer equal to zero?

IsZero32BitFloat

Is the immediate format field member equal to zero? (float32 version)

IsZero64BitFloat

Is the immediate format field member equal to zero? (float64 version)

IsAllZeroes

Is the immediate format field member equal zero in all lanes?

IsAllOnes

Does the immediate format field member have ones in all bits of all lanes?

LengthEquals(usize)

Has the value list (in member_name) the size specified in parameter?

IsColocatedFunc

Is the referenced function colocated?

IsColocatedData

Is the referenced data object colocated?

Trait Implementations

impl Clone for FormatPredicateKind[src]

impl Eq for FormatPredicateKind[src]

impl Hash for FormatPredicateKind[src]

impl PartialEq<FormatPredicateKind> for FormatPredicateKind[src]

impl StructuralEq for FormatPredicateKind[src]

impl StructuralPartialEq for FormatPredicateKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.