Struct llvm_ir::module::DataLayout
source · [−]pub struct DataLayout {
pub layout_str: String,
pub endianness: Endianness,
pub stack_alignment: Option<u32>,
pub program_address_space: AddrSpace,
pub alloca_address_space: AddrSpace,
pub alignments: Alignments,
pub mangling: Option<Mangling>,
pub native_int_widths: Option<HashSet<u32>>,
pub non_integral_ptr_types: HashSet<AddrSpace>,
}
Expand description
Fields
layout_str: String
The data layout in string form, as described in the Data Layout docs linked above
endianness: Endianness
Little-endian or big-endian?
stack_alignment: Option<u32>
Natural alignment of the stack, in bits. For more, see the Data Layout docs linked above
program_address_space: AddrSpace
Address space for program memory
alloca_address_space: AddrSpace
Address space for objects created by alloca
alignments: Alignments
Alignment for various types in memory
mangling: Option<Mangling>
What mangling will be applied when the LLVM module is compiled to machine code
native_int_widths: Option<HashSet<u32>>
Native integer width(s) for the target CPU
non_integral_ptr_types: HashSet<AddrSpace>
Address spaces with non-integral pointer types
Trait Implementations
sourceimpl Clone for DataLayout
impl Clone for DataLayout
sourcefn clone(&self) -> DataLayout
fn clone(&self) -> DataLayout
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 DataLayout
impl Debug for DataLayout
sourceimpl Default for DataLayout
impl Default for DataLayout
sourceimpl PartialEq<DataLayout> for DataLayout
impl PartialEq<DataLayout> for DataLayout
impl Eq for DataLayout
Auto Trait Implementations
impl RefUnwindSafe for DataLayout
impl Send for DataLayout
impl Sync for DataLayout
impl Unpin for DataLayout
impl UnwindSafe for DataLayout
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more