Struct cranelift_codegen_meta::shared::entities::EntityRefs

source ·
pub(crate) struct EntityRefs {
    pub(crate) block_call: OperandKind,
    pub(crate) block_then: OperandKind,
    pub(crate) block_else: OperandKind,
    pub(crate) stack_slot: OperandKind,
    pub(crate) dynamic_stack_slot: OperandKind,
    pub(crate) global_value: OperandKind,
    pub(crate) sig_ref: OperandKind,
    pub(crate) func_ref: OperandKind,
    pub(crate) jump_table: OperandKind,
    pub(crate) table: OperandKind,
    pub(crate) varargs: OperandKind,
}

Fields§

§block_call: OperandKind

A reference to a basic block in the same function, with its arguments provided. This is primarily used in control flow instructions.

§block_then: OperandKind

A reference to a basic block in the same function, with its arguments provided. This is primarily used in control flow instructions.

§block_else: OperandKind

A reference to a basic block in the same function, with its arguments provided. This is primarily used in control flow instructions.

§stack_slot: OperandKind

A reference to a stack slot declared in the function preamble.

§dynamic_stack_slot: OperandKind

A reference to a dynamic_stack slot declared in the function preamble.

§global_value: OperandKind

A reference to a global value.

§sig_ref: OperandKind

A reference to a function signature declared in the function preamble. This is used to provide the call signature in a call_indirect instruction.

§func_ref: OperandKind

A reference to an external function declared in the function preamble. This is used to provide the callee and signature in a call instruction.

§jump_table: OperandKind

A reference to a jump table declared in the function preamble.

§table: OperandKind

A reference to a table declared in the function preamble.

§varargs: OperandKind

A variable-sized list of value operands. Use for Block and function call arguments.

Implementations§

source§

impl EntityRefs

source

pub fn new() -> Self

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.