#[repr(C)]pub struct IrValueLocationTracking {
pub function: *mut IrFunction,
pub vm_reg_value: [u32; 256],
pub vm_reg_dependent: [u32; 256],
pub max_reg: i32,
pub restore_callback_ctx: *mut c_void,
pub restore_callback: Option<unsafe extern "C" fn(*mut c_void, *mut IrInst)>,
}Fields§
§function: *mut IrFunction§vm_reg_value: [u32; 256]§vm_reg_dependent: [u32; 256]§max_reg: i32§restore_callback_ctx: *mut c_void§restore_callback: Option<unsafe extern "C" fn(*mut c_void, *mut IrInst)>Implementations§
Source§impl IrValueLocationTracking
impl IrValueLocationTracking
pub fn after_inst_lowering(&mut self, inst: &mut IrInst, inst_idx: u32)
Source§impl IrValueLocationTracking
impl IrValueLocationTracking
pub fn before_inst_lowering(&mut self, inst: &mut IrInst)
Source§impl IrValueLocationTracking
impl IrValueLocationTracking
pub fn can_be_rematerialized(&self, cmd: IrCmd) -> bool
Source§impl IrValueLocationTracking
impl IrValueLocationTracking
pub fn can_rematerialize_arguments(&mut self, inst: &mut IrInst) -> bool
Source§impl IrValueLocationTracking
impl IrValueLocationTracking
pub fn invalidate_restore_op( &mut self, location: IrOp, skip_value_invalidation: bool, )
Source§impl IrValueLocationTracking
impl IrValueLocationTracking
pub fn invalidate_restore_vm_regs(&mut self, start: i32, count: i32)
Source§impl IrValueLocationTracking
impl IrValueLocationTracking
pub fn new(function: &mut IrFunction) -> Self
Source§impl IrValueLocationTracking
impl IrValueLocationTracking
pub fn process_store_location_hint(&mut self, hint: &StoreLocationHint)
Source§impl IrValueLocationTracking
impl IrValueLocationTracking
pub fn record_restore_op(&mut self, inst_idx: u32, location: IrOp)
Trait Implementations§
Source§impl Clone for IrValueLocationTracking
impl Clone for IrValueLocationTracking
Source§fn clone(&self) -> IrValueLocationTracking
fn clone(&self) -> IrValueLocationTracking
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for IrValueLocationTracking
impl !Sync for IrValueLocationTracking
impl Freeze for IrValueLocationTracking
impl RefUnwindSafe for IrValueLocationTracking
impl Unpin for IrValueLocationTracking
impl UnsafeUnpin for IrValueLocationTracking
impl UnwindSafe for IrValueLocationTracking
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more