pub struct Gp(pub Reg);Tuple Fields§
§0: RegImplementations§
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
Source§impl Gp
impl Gp
pub const AX: u32 = 0
pub const CX: u32 = 1
pub const DX: u32 = 2
pub const BX: u32 = 3
pub const SP: u32 = 4
pub const BP: u32 = 5
pub const SI: u32 = 6
pub const DI: u32 = 7
pub const R8: u32 = 8
pub const R9: u32 = 9
pub const R10: u32 = 10
pub const R11: u32 = 11
pub const R12: u32 = 12
pub const R13: u32 = 13
pub const R14: u32 = 14
pub const R15: u32 = 15
pub const SIGNATURE: u32 = Reg::SIGNATURE
pub const fn signature_of(typ: RegType) -> OperandSignature
Methods from Deref<Target = Reg>§
pub const SIGNATURE: u32 = BaseReg::SIGNATURE
pub fn is_gpb(&self) -> bool
pub fn is_gpb_lo(&self) -> bool
pub fn is_gpb_hi(&self) -> bool
pub fn is_gpw(&self) -> bool
pub fn is_gpd(&self) -> bool
pub fn is_gpq(&self) -> bool
pub fn is_gp32(&self) -> bool
pub fn is_gp64(&self) -> bool
pub fn is_xmm(&self) -> bool
pub fn is_ymm(&self) -> bool
pub fn is_zmm(&self) -> bool
pub fn is_vec128(&self) -> bool
pub fn is_vec256(&self) -> bool
pub fn is_vec512(&self) -> bool
pub fn is_mm(&self) -> bool
pub fn is_k_reg(&self) -> bool
pub fn is_s_reg(&self) -> bool
pub fn is_c_reg(&self) -> bool
pub fn is_d_reg(&self) -> bool
pub fn is_st(&self) -> bool
pub fn is_bnd(&self) -> bool
pub fn is_tmm(&self) -> bool
pub fn is_rip(&self) -> bool
pub fn set_reg_t<T: RegTraits>(&mut self, rid: u32)
pub fn set_type_and_id(&mut self, typ: RegType, id: u32)
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 CmovEmitter<Gp, Gp> for Assembler<'_>
impl CmovEmitter<Gp, Gp> for Assembler<'_>
fn cmov(&mut self, cc: CondCode, dst: Gp, src: Gp)
fn cmovo(&mut self, dst: Gp, src: Gp)
fn cmovno(&mut self, dst: Gp, src: Gp)
fn cmovb(&mut self, dst: Gp, src: Gp)
fn cmovnb(&mut self, dst: Gp, src: Gp)
fn cmovz(&mut self, dst: Gp, src: Gp)
fn cmovnz(&mut self, dst: Gp, src: Gp)
fn cmovbe(&mut self, dst: Gp, src: Gp)
fn cmovnbe(&mut self, dst: Gp, src: Gp)
fn cmovs(&mut self, dst: Gp, src: Gp)
fn cmovns(&mut self, dst: Gp, src: Gp)
fn cmovp(&mut self, dst: Gp, src: Gp)
fn cmovnp(&mut self, dst: Gp, src: Gp)
fn cmovl(&mut self, dst: Gp, src: Gp)
fn cmovnl(&mut self, dst: Gp, src: Gp)
fn cmovle(&mut self, dst: Gp, src: Gp)
fn cmovnle(&mut self, dst: Gp, src: Gp)
Source§impl CmovEmitter<Gp, Mem> for Assembler<'_>
impl CmovEmitter<Gp, Mem> for Assembler<'_>
fn cmov(&mut self, cc: CondCode, dst: Gp, src: Mem)
fn cmovo(&mut self, dst: Gp, src: Mem)
fn cmovno(&mut self, dst: Gp, src: Mem)
fn cmovb(&mut self, dst: Gp, src: Mem)
fn cmovnb(&mut self, dst: Gp, src: Mem)
fn cmovz(&mut self, dst: Gp, src: Mem)
fn cmovnz(&mut self, dst: Gp, src: Mem)
fn cmovbe(&mut self, dst: Gp, src: Mem)
fn cmovnbe(&mut self, dst: Gp, src: Mem)
fn cmovs(&mut self, dst: Gp, src: Mem)
fn cmovns(&mut self, dst: Gp, src: Mem)
fn cmovp(&mut self, dst: Gp, src: Mem)
fn cmovnp(&mut self, dst: Gp, src: Mem)
fn cmovl(&mut self, dst: Gp, src: Mem)
fn cmovnl(&mut self, dst: Gp, src: Mem)
fn cmovle(&mut self, dst: Gp, src: Mem)
fn cmovnle(&mut self, dst: Gp, src: Mem)
impl Copy for Gp
impl Eq for 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 SetEmitter<Gp> for Assembler<'_>
impl SetEmitter<Gp> for Assembler<'_>
fn set(&mut self, cc: CondCode, dst: Gp)
fn seto(&mut self, dst: Gp)
fn setno(&mut self, dst: Gp)
fn setb(&mut self, dst: Gp)
fn setnb(&mut self, dst: Gp)
fn setz(&mut self, dst: Gp)
fn setnz(&mut self, dst: Gp)
fn setbe(&mut self, dst: Gp)
fn setnbe(&mut self, dst: Gp)
fn sets(&mut self, dst: Gp)
fn setns(&mut self, dst: Gp)
fn setp(&mut self, dst: Gp)
fn setnp(&mut self, dst: Gp)
fn setl(&mut self, dst: Gp)
fn setnl(&mut self, dst: Gp)
fn setle(&mut self, dst: Gp)
fn setnle(&mut self, dst: Gp)
impl StructuralPartialEq for Gp
Source§impl Vcvtsd2usiEmitter<Gp, Mem> for Assembler<'_>
impl Vcvtsd2usiEmitter<Gp, Mem> for Assembler<'_>
fn vcvtsd2usi(&mut self, dst: Gp, src: Mem)
Source§impl Vcvtsd2usiEmitter<Gp, Vec> for Assembler<'_>
impl Vcvtsd2usiEmitter<Gp, Vec> for Assembler<'_>
fn vcvtsd2usi(&mut self, dst: Gp, src: Vec)
Source§impl Vcvtsh2usiEmitter<Gp, Mem> for Assembler<'_>
impl Vcvtsh2usiEmitter<Gp, Mem> for Assembler<'_>
fn vcvtsh2usi(&mut self, dst: Gp, src: Mem)
Source§impl Vcvtsh2usiEmitter<Gp, Vec> for Assembler<'_>
impl Vcvtsh2usiEmitter<Gp, Vec> for Assembler<'_>
fn vcvtsh2usi(&mut self, dst: Gp, src: Vec)
Source§impl Vcvtss2usiEmitter<Gp, Mem> for Assembler<'_>
impl Vcvtss2usiEmitter<Gp, Mem> for Assembler<'_>
fn vcvtss2usi(&mut self, dst: Gp, src: Mem)
Source§impl Vcvtss2usiEmitter<Gp, Vec> for Assembler<'_>
impl Vcvtss2usiEmitter<Gp, Vec> for Assembler<'_>
fn vcvtss2usi(&mut self, dst: Gp, src: Vec)
Source§impl Vcvttsd2siEmitter<Gp, Mem> for Assembler<'_>
impl Vcvttsd2siEmitter<Gp, Mem> for Assembler<'_>
fn vcvttsd2si(&mut self, dst: Gp, src: Mem)
Source§impl Vcvttsd2siEmitter<Gp, Vec> for Assembler<'_>
impl Vcvttsd2siEmitter<Gp, Vec> for Assembler<'_>
fn vcvttsd2si(&mut self, dst: Gp, src: Vec)
Source§impl Vcvttsd2usiEmitter<Gp, Mem> for Assembler<'_>
impl Vcvttsd2usiEmitter<Gp, Mem> for Assembler<'_>
fn vcvttsd2usi(&mut self, dst: Gp, src: Mem)
Source§impl Vcvttsd2usiEmitter<Gp, Vec> for Assembler<'_>
impl Vcvttsd2usiEmitter<Gp, Vec> for Assembler<'_>
fn vcvttsd2usi(&mut self, dst: Gp, src: Vec)
Source§impl Vcvttsh2siEmitter<Gp, Mem> for Assembler<'_>
impl Vcvttsh2siEmitter<Gp, Mem> for Assembler<'_>
fn vcvttsh2si(&mut self, dst: Gp, src: Mem)
Source§impl Vcvttsh2siEmitter<Gp, Vec> for Assembler<'_>
impl Vcvttsh2siEmitter<Gp, Vec> for Assembler<'_>
fn vcvttsh2si(&mut self, dst: Gp, src: Vec)
Source§impl Vcvttsh2usiEmitter<Gp, Mem> for Assembler<'_>
impl Vcvttsh2usiEmitter<Gp, Mem> for Assembler<'_>
fn vcvttsh2usi(&mut self, dst: Gp, src: Mem)
Source§impl Vcvttsh2usiEmitter<Gp, Vec> for Assembler<'_>
impl Vcvttsh2usiEmitter<Gp, Vec> for Assembler<'_>
fn vcvttsh2usi(&mut self, dst: Gp, src: Vec)
Source§impl Vcvttss2siEmitter<Gp, Mem> for Assembler<'_>
impl Vcvttss2siEmitter<Gp, Mem> for Assembler<'_>
fn vcvttss2si(&mut self, dst: Gp, src: Mem)
Source§impl Vcvttss2siEmitter<Gp, Vec> for Assembler<'_>
impl Vcvttss2siEmitter<Gp, Vec> for Assembler<'_>
fn vcvttss2si(&mut self, dst: Gp, src: Vec)
Source§impl Vcvttss2usiEmitter<Gp, Mem> for Assembler<'_>
impl Vcvttss2usiEmitter<Gp, Mem> for Assembler<'_>
fn vcvttss2usi(&mut self, dst: Gp, src: Mem)
Source§impl Vcvttss2usiEmitter<Gp, Vec> for Assembler<'_>
impl Vcvttss2usiEmitter<Gp, Vec> for Assembler<'_>
fn vcvttss2usi(&mut self, dst: Gp, src: Vec)
Source§impl VpbroadcastbEmitter<Vec, Gp> for Assembler<'_>
impl VpbroadcastbEmitter<Vec, Gp> for Assembler<'_>
fn vpbroadcastb(&mut self, dst: Vec, src: Gp)
Source§impl VpbroadcastdEmitter<Vec, Gp> for Assembler<'_>
impl VpbroadcastdEmitter<Vec, Gp> for Assembler<'_>
fn vpbroadcastd(&mut self, dst: Vec, src: Gp)
Source§impl VpbroadcastqEmitter<Vec, Gp> for Assembler<'_>
impl VpbroadcastqEmitter<Vec, Gp> for Assembler<'_>
fn vpbroadcastq(&mut self, dst: Vec, src: Gp)
Source§impl VpbroadcastwEmitter<Vec, Gp> for Assembler<'_>
impl VpbroadcastwEmitter<Vec, Gp> for Assembler<'_>
fn vpbroadcastw(&mut self, dst: Vec, src: 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