pub enum RegisterAlias {
Show 36 variants
Zero,
Ra,
Sp,
Gp,
Tp,
T0,
T1,
T2,
Fp,
S0,
S1,
A0,
A1,
A2,
A3,
A4,
A5,
A6,
A7,
S2,
S3,
S4,
S5,
S6,
S7,
S8,
S9,
S10,
S11,
T3,
T4,
T5,
T6,
Ip,
NextIp,
HeapPointer,
}Expand description
This enum provides aliases for the registers. This is useful for debugging and for providing a more readable interface. It can be used to index the registers in the witness.
Variants§
Zero
Ra
Return address
Sp
Stack pointer
Gp
Global pointer
Tp
Thread pointer
T0
Temporary/alternate register
T1
Temporaries
T2
Fp
Frame pointer/saved register. This is the same register.
S0
S1
Saved registers
A0
Function arguments/results
A1
A2
A3
A4
A5
A6
A7
S2
S3
S4
S5
S6
S7
S8
S9
S10
S11
T3
T4
T5
T6
Ip
Current instruction pointer
NextIp
Next instruction pointer
HeapPointer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RegisterAlias
impl RefUnwindSafe for RegisterAlias
impl Send for RegisterAlias
impl Sync for RegisterAlias
impl Unpin for RegisterAlias
impl UnwindSafe for RegisterAlias
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more