pub struct AmodeOffsetPlusKnownOffset {
pub simm32: AmodeOffset,
pub offset: Option<KnownOffset>,
}
Expand description
An AmodeOffset
immediate with an optional known offset.
Cranelift does not know certain offsets until emission time. To accommodate
Cranelift, this structure stores an optional KnownOffset
. The following
happens immediately before emission:
- the
KnownOffset
is looked up, mapping it to an offset value - the [
Simm32
] value is added to the offset value
Fields§
§simm32: AmodeOffset
§offset: Option<KnownOffset>
Implementations§
Trait Implementations§
Source§impl Arbitrary<'_> for AmodeOffsetPlusKnownOffset
impl Arbitrary<'_> for AmodeOffsetPlusKnownOffset
Source§fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§impl Clone for AmodeOffsetPlusKnownOffset
impl Clone for AmodeOffsetPlusKnownOffset
Source§fn clone(&self) -> AmodeOffsetPlusKnownOffset
fn clone(&self) -> AmodeOffsetPlusKnownOffset
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AmodeOffsetPlusKnownOffset
impl Debug for AmodeOffsetPlusKnownOffset
Source§impl PartialEq for AmodeOffsetPlusKnownOffset
impl PartialEq for AmodeOffsetPlusKnownOffset
Source§fn eq(&self, other: &AmodeOffsetPlusKnownOffset) -> bool
fn eq(&self, other: &AmodeOffsetPlusKnownOffset) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for AmodeOffsetPlusKnownOffset
impl StructuralPartialEq for AmodeOffsetPlusKnownOffset
Auto Trait Implementations§
impl Freeze for AmodeOffsetPlusKnownOffset
impl RefUnwindSafe for AmodeOffsetPlusKnownOffset
impl Send for AmodeOffsetPlusKnownOffset
impl Sync for AmodeOffsetPlusKnownOffset
impl Unpin for AmodeOffsetPlusKnownOffset
impl UnwindSafe for AmodeOffsetPlusKnownOffset
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