pub struct InductionVariable {
pub var: LcnfVarId,
pub base: LcnfArg,
pub step: i64,
pub name: String,
}Expand description
An induction variable in a loop.
Represented as var = base + step * iteration where var is the
LcnfVarId of the loop parameter, step is the constant increment
per iteration, and base is the initial value.
Fields§
§var: LcnfVarIdThe loop parameter that serves as the IV.
base: LcnfArgInitial value (may be a variable or literal).
step: i64Per-iteration step (must be a compile-time constant for OSR).
name: StringHuman-readable name hint.
Implementations§
Trait Implementations§
Source§impl Clone for InductionVariable
impl Clone for InductionVariable
Source§fn clone(&self) -> InductionVariable
fn clone(&self) -> InductionVariable
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for InductionVariable
impl RefUnwindSafe for InductionVariable
impl Send for InductionVariable
impl Sync for InductionVariable
impl Unpin for InductionVariable
impl UnsafeUnpin for InductionVariable
impl UnwindSafe for InductionVariable
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