pub struct RiscV;
Expand description
RISC-V architecture specific definitions.
Implementations§
source§impl RiscV
impl RiscV
pub const X0: Register = _
pub const X1: Register = _
pub const X2: Register = _
pub const X3: Register = _
pub const X4: Register = _
pub const X5: Register = _
pub const X6: Register = _
pub const X7: Register = _
pub const X8: Register = _
pub const X9: Register = _
pub const X10: Register = _
pub const X11: Register = _
pub const X12: Register = _
pub const X13: Register = _
pub const X14: Register = _
pub const X15: Register = _
pub const X16: Register = _
pub const X17: Register = _
pub const X18: Register = _
pub const X19: Register = _
pub const X20: Register = _
pub const X21: Register = _
pub const X22: Register = _
pub const X23: Register = _
pub const X24: Register = _
pub const X25: Register = _
pub const X26: Register = _
pub const X27: Register = _
pub const X28: Register = _
pub const X29: Register = _
pub const X30: Register = _
pub const X31: Register = _
pub const F0: Register = _
pub const F1: Register = _
pub const F2: Register = _
pub const F3: Register = _
pub const F4: Register = _
pub const F5: Register = _
pub const F6: Register = _
pub const F7: Register = _
pub const F8: Register = _
pub const F9: Register = _
pub const F10: Register = _
pub const F11: Register = _
pub const F12: Register = _
pub const F13: Register = _
pub const F14: Register = _
pub const F15: Register = _
pub const F16: Register = _
pub const F17: Register = _
pub const F18: Register = _
pub const F19: Register = _
pub const F20: Register = _
pub const F21: Register = _
pub const F22: Register = _
pub const F23: Register = _
pub const F24: Register = _
pub const F25: Register = _
pub const F26: Register = _
pub const F27: Register = _
pub const F28: Register = _
pub const F29: Register = _
pub const F30: Register = _
pub const F31: Register = _
pub const ZERO: Register = _
pub const RA: Register = _
pub const SP: Register = _
pub const GP: Register = _
pub const TP: Register = _
pub const T0: Register = _
pub const T1: Register = _
pub const T2: Register = _
pub const S0: Register = _
pub const S1: Register = _
pub const A0: Register = _
pub const A1: Register = _
pub const A2: Register = _
pub const A3: Register = _
pub const A4: Register = _
pub const A5: Register = _
pub const A6: Register = _
pub const A7: Register = _
pub const S2: Register = _
pub const S3: Register = _
pub const S4: Register = _
pub const S5: Register = _
pub const S6: Register = _
pub const S7: Register = _
pub const S8: Register = _
pub const S9: Register = _
pub const S10: Register = _
pub const S11: Register = _
pub const T3: Register = _
pub const T4: Register = _
pub const T5: Register = _
pub const T6: Register = _
pub const FT0: Register = _
pub const FT1: Register = _
pub const FT2: Register = _
pub const FT3: Register = _
pub const FT4: Register = _
pub const FT5: Register = _
pub const FT6: Register = _
pub const FT7: Register = _
pub const FS0: Register = _
pub const FS1: Register = _
pub const FA0: Register = _
pub const FA1: Register = _
pub const FA2: Register = _
pub const FA3: Register = _
pub const FA4: Register = _
pub const FA5: Register = _
pub const FA6: Register = _
pub const FA7: Register = _
pub const FS2: Register = _
pub const FS3: Register = _
pub const FS4: Register = _
pub const FS5: Register = _
pub const FS6: Register = _
pub const FS7: Register = _
pub const FS8: Register = _
pub const FS9: Register = _
pub const FS10: Register = _
pub const FS11: Register = _
pub const FT8: Register = _
pub const FT9: Register = _
pub const FT10: Register = _
pub const FT11: Register = _
source§impl RiscV
impl RiscV
sourcepub fn register_name(register: Register) -> Option<&'static str>
pub fn register_name(register: Register) -> Option<&'static str>
The name of a register, or None
if the register number is unknown.
Only returns the primary name for registers that alias with others.
sourcepub fn name_to_register(value: &str) -> Option<Register>
pub fn name_to_register(value: &str) -> Option<Register>
Converts a register name into a register number.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for RiscV
impl Send for RiscV
impl Sync for RiscV
impl Unpin for RiscV
impl UnwindSafe for RiscV
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