pub struct TraceIterator<'a> { /* private fields */ }Expand description
opencoder.py: TraceIterator — iterates operations in a trace with dead range tracking.
The iterator walks through encoded trace operations and maintains live/dead range information for each value (OpRef). This enables the optimizer to know which values are still in use at each point.
Implementations§
Source§impl<'a> TraceIterator<'a>
impl<'a> TraceIterator<'a>
Sourcepub fn compute_dead_ranges(&mut self) -> &[usize]
pub fn compute_dead_ranges(&mut self) -> &[usize]
opencoder.py: get_dead_ranges() — compute live ranges for all values. Returns a reference to the live_range_end map.
Sourcepub fn is_dead_at(&self, opref: OpRef, pos: usize) -> bool
pub fn is_dead_at(&self, opref: OpRef, pos: usize) -> bool
Check if a value is dead at the given position. opencoder.py: is_dead(opref, pos)
Auto Trait Implementations§
impl<'a> Freeze for TraceIterator<'a>
impl<'a> !RefUnwindSafe for TraceIterator<'a>
impl<'a> Send for TraceIterator<'a>
impl<'a> Sync for TraceIterator<'a>
impl<'a> Unpin for TraceIterator<'a>
impl<'a> UnsafeUnpin for TraceIterator<'a>
impl<'a> !UnwindSafe for TraceIterator<'a>
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