Enum polkavm_assembler::amd64::Reg
source · pub enum Reg {
Show 16 variants
rax = 0,
rcx = 1,
rdx = 2,
rbx = 3,
rsp = 4,
rbp = 5,
rsi = 6,
rdi = 7,
r8 = 8,
r9 = 9,
r10 = 10,
r11 = 11,
r12 = 12,
r13 = 13,
r14 = 14,
r15 = 15,
}
Variants§
rax = 0
rcx = 1
rdx = 2
rbx = 3
rsp = 4
rbp = 5
rsi = 6
rdi = 7
r8 = 8
r9 = 9
r10 = 10
r11 = 11
r12 = 12
r13 = 13
r14 = 14
r15 = 15
Implementations§
source§impl Reg
impl Reg
pub const fn is_reg_preserved(self) -> bool
pub const fn needs_rex(self) -> bool
pub const fn modrm_rm_bits(self) -> u8
pub const fn modrm_reg_bits(self) -> u8
pub const fn rex_bit(self) -> u8
pub const fn rex_modrm_reg(self) -> u8
pub const fn name_from(self, size: RegSize) -> &'static str
pub const fn name_from_size(self, kind: Size) -> &'static str
Trait Implementations§
impl Copy for Reg
impl Eq for Reg
impl IntoMemOp for Reg
impl StructuralPartialEq for Reg
Auto Trait Implementations§
impl Freeze for Reg
impl RefUnwindSafe for Reg
impl Send for Reg
impl Sync for Reg
impl Unpin for Reg
impl UnwindSafe for Reg
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)