Struct cranelift_codegen::ir::immediates::Imm64
source · pub struct Imm64(_);
Expand description
64-bit immediate signed integer operand.
An Imm64
operand can also be used to represent immediate values of smaller integer types by
sign-extending to i64
.
Implementations§
source§impl Imm64
impl Imm64
sourcepub fn wrapping_neg(self) -> Self
pub fn wrapping_neg(self) -> Self
Return self negated.
sourcepub fn sign_extend_from_width(&mut self, bit_width: u32)
pub fn sign_extend_from_width(&mut self, bit_width: u32)
Sign extend this immediate as if it were a signed integer of the given power-of-two width.
Trait Implementations§
source§impl IntoBytes for Imm64
impl IntoBytes for Imm64
source§fn into_bytes(self) -> Vec<u8>
fn into_bytes(self) -> Vec<u8>
Return the little-endian byte representation of the implementing type.
source§impl PartialEq<Imm64> for Imm64
impl PartialEq<Imm64> for Imm64
impl Copy for Imm64
impl Eq for Imm64
impl StructuralEq for Imm64
impl StructuralPartialEq for Imm64
Auto Trait Implementations§
impl RefUnwindSafe for Imm64
impl Send for Imm64
impl Sync for Imm64
impl Unpin for Imm64
impl UnwindSafe for Imm64
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> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.