Struct rustc_target::abi::TargetDataLayout[][src]

pub struct TargetDataLayout {
    pub endian: Endian,
    pub i1_align: Align,
    pub i8_align: Align,
    pub i16_align: Align,
    pub i32_align: Align,
    pub i64_align: Align,
    pub i128_align: Align,
    pub f32_align: Align,
    pub f64_align: Align,
    pub pointer_size: Size,
    pub pointer_align: Align,
    pub aggregate_align: Align,
    pub vector_align: Vec<(Size, Align)>,
}

Parsed Data layout for a target, which contains everything needed to compute layouts.

Fields

Alignments for vector types.

Methods

impl TargetDataLayout
[src]

Return exclusive upper bound on object size.

The theoretical maximum object size is defined as the maximum positive isize value. This ensures that the offset semantics remain well-defined by allowing it to correctly index every address within an object along with one byte past the end, along with allowing isize to store the difference between any two pointers into an object.

The upper bound on 64-bit currently needs to be lower because LLVM uses a 64-bit integer to represent object size in bits. It would need to be 1 << 61 to account for this, but is currently conservatively bounded to 1 << 47 as that is enough to cover the current usable address space on 64-bit ARMv8 and x86_64.

Trait Implementations

impl Default for TargetDataLayout
[src]

Creates an instance of TargetDataLayout.

impl<'a> HasDataLayout for &'a TargetDataLayout
[src]

Auto Trait Implementations