#[repr(u8)]pub enum InstSameRegHint {
None = 0,
RO = 1,
WO = 2,
}Expand description
Hint used when two or more operands of an instruction are the same register.
Influences the RW operations query: instructions such as xor x, x produce write-only
semantics, and x, x read-only.
Variants§
None = 0
No special handling.
RO = 1
Operands become read-only, the operation doesn’t change the content (X & X and
similar).
WO = 2
Operands become write-only, the content of the input(s) doesn’t matter (X ^ X,
X - X, and similar).
Trait Implementations§
Source§impl Clone for InstSameRegHint
impl Clone for InstSameRegHint
Source§fn clone(&self) -> InstSameRegHint
fn clone(&self) -> InstSameRegHint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InstSameRegHint
Source§impl Debug for InstSameRegHint
impl Debug for InstSameRegHint
Source§impl Default for InstSameRegHint
impl Default for InstSameRegHint
Source§fn default() -> InstSameRegHint
fn default() -> InstSameRegHint
Returns the “default value” for a type. Read more
impl Eq for InstSameRegHint
Source§impl Hash for InstSameRegHint
impl Hash for InstSameRegHint
Source§impl Ord for InstSameRegHint
impl Ord for InstSameRegHint
Source§fn cmp(&self, other: &InstSameRegHint) -> Ordering
fn cmp(&self, other: &InstSameRegHint) -> Ordering
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 PartialEq for InstSameRegHint
impl PartialEq for InstSameRegHint
Source§impl PartialOrd for InstSameRegHint
impl PartialOrd for InstSameRegHint
impl StructuralPartialEq for InstSameRegHint
Auto Trait Implementations§
impl Freeze for InstSameRegHint
impl RefUnwindSafe for InstSameRegHint
impl Send for InstSameRegHint
impl Sync for InstSameRegHint
impl Unpin for InstSameRegHint
impl UnsafeUnpin for InstSameRegHint
impl UnwindSafe for InstSameRegHint
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