Module align

Source
Expand description

A typesafe representation of alignment states and operations that preserves LLVM’s alignment invariants.

Structs§

AddressSpace
An invariant-preserving newtype for representing the address space of a pointer type.
Align
A size efficient, opaque representation of bytewise alignment.
AlignedTypeWidth
An invariant-preserving newtype for representing the bitwidth of an alignable type.
MaybeAlign
Represents a potentially unknown (unspecified) alignment.
PointerAlignSpec
Represents a pointer width (in bits), along with its ABI-mandated and preferred alignments (which may differ).
PointerAlignSpecs
Represents a sorted collection of PointerAlignSpecs.
TypeAlignSpec
Represents an alignable type, along with its ABI-mandated and preferred alignments (which may differ).
TypeAlignSpecs
Represents a sorted collection of TypeAlignSpecs.

Enums§

AddressSpaceError
Errors that can occur when constructing an AddressSpace
AlignError
Errors that can occur when constructing an Align
AlignSpecError
Errors that can occur when constructing a TypeAlignSpec or PointerAlignSpec.
AlignedType
An enumeration of alignable non-pointer types.
AlignedTypeWidthError
Errors that can occur when constructing an AlignedTypeWidth
FunctionPointerAlign
A model for function pointer alignment behavior.