[][src]Struct cranelift_codegen_meta::shared::immediates::Immediates

pub(crate) struct Immediates {
    pub imm64: OperandKind,
    pub uimm8: OperandKind,
    pub uimm32: OperandKind,
    pub uimm128: OperandKind,
    pub pool_constant: OperandKind,
    pub offset32: OperandKind,
    pub ieee32: OperandKind,
    pub ieee64: OperandKind,
    pub boolean: OperandKind,
    pub intcc: OperandKind,
    pub floatcc: OperandKind,
    pub memflags: OperandKind,
    pub regunit: OperandKind,
    pub trapcode: OperandKind,
}

Fields

imm64: OperandKind

A 64-bit immediate integer operand.

This type of immediate integer can interact with SSA values with any IntType type.

uimm8: OperandKind

An unsigned 8-bit immediate integer operand.

This small operand is used to indicate lane indexes in SIMD vectors and immediate bit counts on shift instructions.

uimm32: OperandKind

An unsigned 32-bit immediate integer operand.

uimm128: OperandKind

An unsigned 128-bit immediate integer operand.

This operand is used to pass entire 128-bit vectors as immediates to instructions like const.

pool_constant: OperandKind

A constant stored in the constant pool.

This operand is used to pass constants to instructions like vconst while storing the actual bytes in the constant pool.

offset32: OperandKind

A 32-bit immediate signed offset.

This is used to represent an immediate address offset in load/store instructions.

ieee32: OperandKind

A 32-bit immediate floating point operand.

IEEE 754-2008 binary32 interchange format.

ieee64: OperandKind

A 64-bit immediate floating point operand.

IEEE 754-2008 binary64 interchange format.

boolean: OperandKind

An immediate boolean operand.

This type of immediate boolean can interact with SSA values with any BoolType type.

intcc: OperandKind

A condition code for comparing integer values.

This enumerated operand kind is used for the icmp instruction and corresponds to the condcodes::IntCC` Rust type.

floatcc: OperandKind

A condition code for comparing floating point values.

This enumerated operand kind is used for the fcmp instruction and corresponds to the condcodes::FloatCC Rust type.

memflags: OperandKind

Flags for memory operations like load and store.

regunit: OperandKind

A register unit in the current target ISA.

trapcode: OperandKind

A trap code indicating the reason for trapping.

The Rust enum type also has a User(u16) variant for user-provided trap codes.

Methods

impl Immediates[src]

pub fn new() -> Self[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, 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.