Skip to main content

IrFunction

Struct IrFunction 

Source
#[repr(C)]
pub struct IrFunction {
Show 24 fields pub blocks: Vec<IrBlock>, pub instructions: Vec<IrInst>, pub constants: Vec<IrConst>, pub bc_blocks: Vec<BytecodeBlock>, pub bc_types: Vec<BytecodeTypes>, pub bc_mapping: Vec<BytecodeMapping>, pub entry_block: u32, pub entry_location: u32, pub end_location: u32, pub extra_native_data: Vec<u32>, pub value_restore_ops: Vec<ValueRestoreLocation>, pub valid_restore_op_blocks: Vec<u32>, pub store_location_hints: DenseHashMap<u32, StoreLocationHint>, pub vm_exit_info: DenseHashMap<u32, VmExitSyncInfo>, pub block_to_vm_exit_map: DenseHashMap<u32, u32>, pub bc_original_type_info: BytecodeTypeInfo, pub bc_type_info: BytecodeTypeInfo, pub proto: *mut Proto, pub variadic: bool, pub cfg: CfgInfo, pub stats: *mut LoweringStats, pub record_counters: bool, pub jit_rng_state: u64, pub block_exit_tags: Vec<Vec<u8>>,
}

Fields§

§blocks: Vec<IrBlock>§instructions: Vec<IrInst>§constants: Vec<IrConst>§bc_blocks: Vec<BytecodeBlock>§bc_types: Vec<BytecodeTypes>§bc_mapping: Vec<BytecodeMapping>§entry_block: u32§entry_location: u32§end_location: u32§extra_native_data: Vec<u32>§value_restore_ops: Vec<ValueRestoreLocation>§valid_restore_op_blocks: Vec<u32>§store_location_hints: DenseHashMap<u32, StoreLocationHint>§vm_exit_info: DenseHashMap<u32, VmExitSyncInfo>§block_to_vm_exit_map: DenseHashMap<u32, u32>§bc_original_type_info: BytecodeTypeInfo§bc_type_info: BytecodeTypeInfo§proto: *mut Proto§variadic: bool§cfg: CfgInfo§stats: *mut LoweringStats§record_counters: bool§jit_rng_state: u64§block_exit_tags: Vec<Vec<u8>>

Implementations§

Source§

impl IrFunction

Source

pub fn as_double_op(&mut self, op: IrOp) -> Option<f64>

Source§

impl IrFunction

Source

pub fn const_op(&self, op: IrOp) -> IrConst

Source§

impl IrFunction

Source

pub fn as_inst_op(&mut self, op: IrOp) -> *mut IrInst

Source§

impl IrFunction

Source

pub fn as_int_64_op(&mut self, op: IrOp) -> Option<i64>

Source§

impl IrFunction

Source

pub fn as_int_op(&mut self, op: IrOp) -> Option<i32>

Source§

impl IrFunction

Source

pub fn as_tag_op(&mut self, op: IrOp) -> Option<u8>

Source§

impl IrFunction

Source

pub fn as_uint_op(&mut self, op: IrOp) -> Option<u32>

Source§

impl IrFunction

Source

pub fn block_op(&mut self, op: IrOp) -> &mut IrBlock

Source§

impl IrFunction

Source

pub fn double_op(&self, op: IrOp) -> f64

Source§

impl IrFunction

Source

pub fn find_restore_location_u32_bool( &self, inst_idx: u32, limit_to_current_block: bool, ) -> ValueRestoreLocation

Source§

impl IrFunction

Source

pub fn find_restore_location_ir_inst_bool( &self, inst: &IrInst, limit_to_current_block: bool, ) -> ValueRestoreLocation

Source§

impl IrFunction

Source§

impl IrFunction

Source

pub fn get_block_index(&self, block: &IrBlock) -> u32

Source§

impl IrFunction

Source§

impl IrFunction

Source

pub fn get_inst_index(&self, inst: &IrInst) -> u32

Source§

impl IrFunction

Source

pub fn has_restore_location_ir_inst_bool( &self, inst: &IrInst, limit_to_current_block: bool, ) -> bool

Source§

impl IrFunction

Source

pub fn import_op(&self, op: IrOp) -> u32

Source§

impl IrFunction

Source

pub fn inst_op(&mut self, op: IrOp) -> &mut IrInst

Source§

impl IrFunction

Source

pub fn int64_op(&mut self, op: IrOp) -> i64

Source§

impl IrFunction

Source

pub fn int_op(&self, op: IrOp) -> i32

Source§

impl IrFunction

Source

pub fn materialize_restore_location(&mut self, inst_idx: u32)

Source§

impl IrFunction

Source

pub fn record_restore_location( &mut self, inst_idx: u32, location: ValueRestoreLocation, )

Source§

impl IrFunction

Source

pub fn record_store_location_hint( &mut self, inst_idx: u32, hint: StoreLocationHint, )

Source§

impl IrFunction

Source

pub fn tag_op(&self, op: IrOp) -> u8

Source§

impl IrFunction

Source

pub fn uint_op(&self, op: IrOp) -> u32

Trait Implementations§

Source§

impl Clone for IrFunction

Source§

fn clone(&self) -> IrFunction

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IrFunction

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for IrFunction

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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.