pub struct Gp(pub Reg);Tuple Fields§
§0: RegImplementations§
Source§impl Gp
impl Gp
pub const X0: u32 = 0
pub const X1: u32 = 1
pub const X2: u32 = 2
pub const X3: u32 = 3
pub const X4: u32 = 4
pub const X5: u32 = 5
pub const X6: u32 = 6
pub const X7: u32 = 7
pub const X8: u32 = 8
pub const X9: u32 = 9
pub const X10: u32 = 10
pub const X11: u32 = 11
pub const X12: u32 = 12
pub const X13: u32 = 13
pub const X14: u32 = 14
pub const X15: u32 = 15
pub const X16: u32 = 16
pub const X17: u32 = 17
pub const X18: u32 = 18
pub const X19: u32 = 19
pub const X20: u32 = 20
pub const X21: u32 = 21
pub const X22: u32 = 22
pub const X23: u32 = 23
pub const X24: u32 = 24
pub const X25: u32 = 25
pub const X26: u32 = 26
pub const X27: u32 = 27
pub const X28: u32 = 28
pub const X29: u32 = 29
pub const X30: u32 = 30
pub const X31: u32 = 31
pub const fn signature_of(typ: RegType) -> OperandSignature
Source§impl Gp
impl Gp
pub const fn new() -> Self
pub const fn from_signature_and_id(signature: OperandSignature, id: u32) -> Self
pub const fn from_type_and_id(typ: RegType, id: u32) -> Self
Methods from Deref<Target = BaseReg>§
pub const SIGNATURE: u32 = REG_BASE_SIGNATURE_MASK
pub fn base_signature(&self) -> OperandSignature
pub fn has_base_signature(&self, signature: impl Into<OperandSignature>) -> bool
pub fn is_valid(&self) -> bool
pub fn is_phys_reg(&self) -> bool
pub fn is_virt_reg(&self) -> bool
pub fn is_type(&self, typ: RegType) -> bool
pub fn is_group(&self, group: RegGroup) -> bool
pub fn is_gp(&self) -> bool
pub fn is_vec(&self) -> bool
pub fn is_mask(&self) -> bool
pub fn is_reg_of_type(&self, typ: RegType) -> bool
pub fn is_reg_of_type_and_id(&self, typ: RegType, id: u32) -> bool
pub fn typ(&self) -> RegType
pub fn reg_type(&self) -> RegType
pub fn group(&self) -> RegGroup
pub fn has_size(&self) -> bool
pub fn size(&self) -> u32
pub fn predicate(&self) -> u32
pub fn set_predicate(&mut self, predicate: u32)
pub fn reset_predicate(&mut self)
Methods from Deref<Target = Operand>§
pub fn reset(&mut self)
pub fn has_signature(&self, other: OperandSignature) -> bool
pub fn signature(&self) -> OperandSignature
pub fn set_signature(&mut self, sig: OperandSignature)
pub fn set_id(&mut self, id: u32)
pub fn op_type(&self) -> OperandType
pub fn is_none(&self) -> bool
pub fn is_reg(&self) -> bool
pub fn is_reg_list(&self) -> bool
pub fn is_mem(&self) -> bool
pub fn is_imm(&self) -> bool
pub fn is_label(&self) -> bool
pub fn is_sym(&self) -> bool
pub fn is_phys_reg(&self) -> bool
pub fn is_virt_reg(&self) -> bool
pub fn id(&self) -> u32
pub fn is_reg_type_of(&self, typ: RegType) -> bool
pub fn is_reg_group_of(&self, group: RegGroup) -> bool
pub fn is_gp(&self) -> bool
pub fn is_gp32(&self) -> bool
pub fn is_gp64(&self) -> bool
pub fn is_vec(&self) -> bool
pub fn is_vec8(&self) -> bool
pub fn is_vec16(&self) -> bool
pub fn is_vec32(&self) -> bool
pub fn is_vec64(&self) -> bool
pub fn is_vec128(&self) -> bool
pub fn is_vec256(&self) -> bool
pub fn is_vec512(&self) -> bool
pub fn is_mask(&self) -> bool
pub fn is_reg_list_of(&self, typ: RegType) -> bool
pub fn is_reg_or_mem(&self) -> bool
pub fn is_reg_or_reg_list_or_mem(&self) -> bool
pub fn x86_rm_size(&self) -> u32
pub fn as_<T>(&self) -> Twhere
T: OperandCast,
Trait Implementations§
Source§impl<U2: Into<Imm>> BclriRv32Emitter<Gp, Gp, U2> for Assembler<'_>
impl<U2: Into<Imm>> BclriRv32Emitter<Gp, Gp, U2> for Assembler<'_>
fn bclri_rv32(&mut self, rd: Gp, rs1: Gp, shamtw: U2)
Source§impl<U2: Into<Imm>> BextiRv32Emitter<Gp, Gp, U2> for Assembler<'_>
impl<U2: Into<Imm>> BextiRv32Emitter<Gp, Gp, U2> for Assembler<'_>
fn bexti_rv32(&mut self, rd: Gp, rs1: Gp, shamtw: U2)
Source§impl<U2: Into<Imm>> BinviRv32Emitter<Gp, Gp, U2> for Assembler<'_>
impl<U2: Into<Imm>> BinviRv32Emitter<Gp, Gp, U2> for Assembler<'_>
fn binvi_rv32(&mut self, rd: Gp, rs1: Gp, shamtw: U2)
Source§impl<U2: Into<Imm>> BsetiRv32Emitter<Gp, Gp, U2> for Assembler<'_>
impl<U2: Into<Imm>> BsetiRv32Emitter<Gp, Gp, U2> for Assembler<'_>
fn bseti_rv32(&mut self, rd: Gp, rs1: Gp, shamtw: U2)
Source§impl<U1: Into<Imm>> CAddi4spnEmitter<Gp, U1> for Assembler<'_>
impl<U1: Into<Imm>> CAddi4spnEmitter<Gp, U1> for Assembler<'_>
fn c_addi4spn(&mut self, rd: Gp, imm: U1)
Source§impl<U1: Into<Imm>> CSlliRv32Emitter<Gp, U1> for Assembler<'_>
impl<U1: Into<Imm>> CSlliRv32Emitter<Gp, U1> for Assembler<'_>
fn c_slli_rv32(&mut self, rd: Gp, imm: U1)
Source§impl<U1: Into<Imm>> CSraiRv32Emitter<Gp, U1> for Assembler<'_>
impl<U1: Into<Imm>> CSraiRv32Emitter<Gp, U1> for Assembler<'_>
fn c_srai_rv32(&mut self, rd: Gp, imm: U1)
Source§impl<U1: Into<Imm>> CSrliRv32Emitter<Gp, U1> for Assembler<'_>
impl<U1: Into<Imm>> CSrliRv32Emitter<Gp, U1> for Assembler<'_>
fn c_srli_rv32(&mut self, rd: Gp, imm: U1)
impl Copy for Gp
impl Eq for Gp
Source§impl FcvtmodWDEmitter<Gp, Fp> for Assembler<'_>
impl FcvtmodWDEmitter<Gp, Fp> for Assembler<'_>
fn fcvtmod_w_d(&mut self, rd: Gp, rs1: Fp)
Source§impl HfenceGvmaEmitter<Gp, Gp> for Assembler<'_>
impl HfenceGvmaEmitter<Gp, Gp> for Assembler<'_>
fn hfence_gvma(&mut self, rs1: Gp, rs2: Gp)
Source§impl HfenceVvmaEmitter<Gp, Gp> for Assembler<'_>
impl HfenceVvmaEmitter<Gp, Gp> for Assembler<'_>
fn hfence_vvma(&mut self, rs1: Gp, rs2: Gp)
Source§impl HinvalGvmaEmitter<Gp, Gp> for Assembler<'_>
impl HinvalGvmaEmitter<Gp, Gp> for Assembler<'_>
fn hinval_gvma(&mut self, rs1: Gp, rs2: Gp)
Source§impl HinvalVvmaEmitter<Gp, Gp> for Assembler<'_>
impl HinvalVvmaEmitter<Gp, Gp> for Assembler<'_>
fn hinval_vvma(&mut self, rs1: Gp, rs2: Gp)
Source§impl JalrPseudoEmitter<Gp> for Assembler<'_>
impl JalrPseudoEmitter<Gp> for Assembler<'_>
fn jalr_pseudo(&mut self, rs1: Gp)
Source§impl OperandCast for Gp
impl OperandCast for Gp
fn as_operand(&self) -> &Operand
fn from_operand(op: &Operand) -> Self
Source§impl Ord for Gp
impl Ord for Gp
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Gp
impl PartialOrd for Gp
Source§impl<U1: Into<Imm>> PrefetchIEmitter<Gp, U1> for Assembler<'_>
impl<U1: Into<Imm>> PrefetchIEmitter<Gp, U1> for Assembler<'_>
fn prefetch_i(&mut self, rs1: Gp, imm: U1)
Source§impl<U1: Into<Imm>> PrefetchREmitter<Gp, U1> for Assembler<'_>
impl<U1: Into<Imm>> PrefetchREmitter<Gp, U1> for Assembler<'_>
fn prefetch_r(&mut self, rs1: Gp, imm: U1)
Source§impl<U1: Into<Imm>> PrefetchWEmitter<Gp, U1> for Assembler<'_>
impl<U1: Into<Imm>> PrefetchWEmitter<Gp, U1> for Assembler<'_>
fn prefetch_w(&mut self, rs1: Gp, imm: U1)
Source§impl RdinstrethEmitter<Gp> for Assembler<'_>
impl RdinstrethEmitter<Gp> for Assembler<'_>
fn rdinstreth(&mut self, rd: Gp)
Source§impl SfenceVmaEmitter<Gp, Gp> for Assembler<'_>
impl SfenceVmaEmitter<Gp, Gp> for Assembler<'_>
fn sfence_vma(&mut self, rs1: Gp, rs2: Gp)
Source§impl Sha256Sig0Emitter<Gp, Gp> for Assembler<'_>
impl Sha256Sig0Emitter<Gp, Gp> for Assembler<'_>
fn sha256sig0(&mut self, rd: Gp, rs1: Gp)
Source§impl Sha256Sig1Emitter<Gp, Gp> for Assembler<'_>
impl Sha256Sig1Emitter<Gp, Gp> for Assembler<'_>
fn sha256sig1(&mut self, rd: Gp, rs1: Gp)
Source§impl Sha256Sum0Emitter<Gp, Gp> for Assembler<'_>
impl Sha256Sum0Emitter<Gp, Gp> for Assembler<'_>
fn sha256sum0(&mut self, rd: Gp, rs1: Gp)
Source§impl Sha256Sum1Emitter<Gp, Gp> for Assembler<'_>
impl Sha256Sum1Emitter<Gp, Gp> for Assembler<'_>
fn sha256sum1(&mut self, rd: Gp, rs1: Gp)
Source§impl Sha512Sig0Emitter<Gp, Gp> for Assembler<'_>
impl Sha512Sig0Emitter<Gp, Gp> for Assembler<'_>
fn sha512sig0(&mut self, rd: Gp, rs1: Gp)
Source§impl Sha512Sig1Emitter<Gp, Gp> for Assembler<'_>
impl Sha512Sig1Emitter<Gp, Gp> for Assembler<'_>
fn sha512sig1(&mut self, rd: Gp, rs1: Gp)
Source§impl Sha512Sum0Emitter<Gp, Gp> for Assembler<'_>
impl Sha512Sum0Emitter<Gp, Gp> for Assembler<'_>
fn sha512sum0(&mut self, rd: Gp, rs1: Gp)
Source§impl Sha512Sum1Emitter<Gp, Gp> for Assembler<'_>
impl Sha512Sum1Emitter<Gp, Gp> for Assembler<'_>
fn sha512sum1(&mut self, rd: Gp, rs1: Gp)
Source§impl SinvalVmaEmitter<Gp, Gp> for Assembler<'_>
impl SinvalVmaEmitter<Gp, Gp> for Assembler<'_>
fn sinval_vma(&mut self, rs1: Gp, rs2: Gp)
impl StructuralPartialEq for Gp
Auto Trait Implementations§
impl Freeze for Gp
impl RefUnwindSafe for Gp
impl Send for Gp
impl Sync for Gp
impl Unpin for Gp
impl UnsafeUnpin for Gp
impl UnwindSafe for Gp
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