Struct cranelift_codegen::isa::FunctionAlignment
source · pub struct FunctionAlignment {
pub minimum: u32,
pub preferred: u32,
}
Expand description
Function alignment specifications as required by an ISA, returned by
TargetIsa::function_alignment
.
Fields§
§minimum: u32
The minimum alignment required by an ISA, where all functions must be aligned to at least this amount.
preferred: u32
A “preferred” alignment which should be used for more performance-sensitive situations. This can involve cache-line-aligning for example to get more of a small function into fewer cache lines.
Trait Implementations§
source§impl Clone for FunctionAlignment
impl Clone for FunctionAlignment
source§fn clone(&self) -> FunctionAlignment
fn clone(&self) -> FunctionAlignment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for FunctionAlignment
Auto Trait Implementations§
impl RefUnwindSafe for FunctionAlignment
impl Send for FunctionAlignment
impl Sync for FunctionAlignment
impl Unpin for FunctionAlignment
impl UnwindSafe for FunctionAlignment
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