Enum cranelift_codegen_shared::isa::x86::OpcodePrefix
source · [−]pub enum OpcodePrefix {
Show 16 variants
Op1,
Mp1_66,
Mp1_f3,
Mp1_f2,
Op2_0f,
Mp2_66_0f,
Mp2_f3_0f,
Mp2_f2_0f,
Op3_0f_38,
Mp3_66_0f_38,
Mp3_f3_0f_38,
Mp3_f2_0f_38,
Op3_0f_3a,
Mp3_66_0f_3a,
Mp3_f3_0f_3a,
Mp3_f2_0f_3a,
}
Expand description
Opcode prefix representation.
The prefix type occupies four of the EncodingBits.
Variants
Op1
Mp1_66
Mp1_f3
Mp1_f2
Op2_0f
Mp2_66_0f
Mp2_f3_0f
Mp2_f2_0f
Op3_0f_38
Mp3_66_0f_38
Mp3_f3_0f_38
Mp3_f2_0f_38
Op3_0f_3a
Mp3_66_0f_3a
Mp3_f3_0f_3a
Mp3_f2_0f_3a
Implementations
sourceimpl OpcodePrefix
impl OpcodePrefix
sourcepub fn from_opcode(op_bytes: &[u8]) -> Self
pub fn from_opcode(op_bytes: &[u8]) -> Self
Extracts the OpcodePrefix from the opcode.
sourcepub fn recipe_name_prefix(self) -> &'static str
pub fn recipe_name_prefix(self) -> &'static str
Returns the recipe name prefix.
At the moment, each similar OpcodePrefix group is given its own Recipe. In order to distinguish them, this string is prefixed.
Trait Implementations
sourceimpl Clone for OpcodePrefix
impl Clone for OpcodePrefix
sourcefn clone(&self) -> OpcodePrefix
fn clone(&self) -> OpcodePrefix
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OpcodePrefix
impl Debug for OpcodePrefix
sourceimpl PartialEq<OpcodePrefix> for OpcodePrefix
impl PartialEq<OpcodePrefix> for OpcodePrefix
impl Copy for OpcodePrefix
impl Eq for OpcodePrefix
impl StructuralEq for OpcodePrefix
impl StructuralPartialEq for OpcodePrefix
Auto Trait Implementations
impl RefUnwindSafe for OpcodePrefix
impl Send for OpcodePrefix
impl Sync for OpcodePrefix
impl Unpin for OpcodePrefix
impl UnwindSafe for OpcodePrefix
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more