pub enum RegisterId {
Local {
aid: usize,
},
Arg {
bid: BlockId,
aid: usize,
},
Temp {
bid: BlockId,
iid: usize,
},
}Variants§
Local
Arg
Registers holding block arguments.
§Fields
bid: When it is the initial block id, then it holds a function argument; otherwise, it holds a phinode value.aid: the argument index.
Temp
Registers holding the results of instructions.
§Fields
bid: the instruction’s block id.iid: the instruction’s id in the block.
Implementations§
Trait Implementations§
Source§impl Clone for RegisterId
impl Clone for RegisterId
Source§fn clone(&self) -> RegisterId
fn clone(&self) -> RegisterId
Returns a copy 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 moreSource§impl Debug for RegisterId
impl Debug for RegisterId
Source§impl Display for RegisterId
impl Display for RegisterId
Source§impl Hash for RegisterId
impl Hash for RegisterId
Source§impl PartialEq for RegisterId
impl PartialEq for RegisterId
impl Copy for RegisterId
impl Eq for RegisterId
Auto Trait Implementations§
impl Freeze for RegisterId
impl RefUnwindSafe for RegisterId
impl Send for RegisterId
impl Sync for RegisterId
impl Unpin for RegisterId
impl UnwindSafe for RegisterId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more