This struct is a compact representation of a valid (power of two) or undefined (0) alignment.
Synopsis
Declared in <llvm/Support/Alignment.h>
struct MaybeAlign;
Description
Inherits the optional storage privately and re‐exports the public std::optional interface with documentation.
Type Aliases
Name |
Description |
Contained alignment type when set. |
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
For convenience, returns a valid alignment or 1 if undefined. |
Using Declarations
Name |
Description |
Chains a continuation when an alignment is set. |
|
Constructs an alignment in place. |
|
Returns whether an alignment value is present. |
|
True when an alignment is set. |
|
Accesses the stored alignment. |
|
Accesses members of the stored alignment. |
|
Assigns from another optional alignment. |
|
Supplies an alternate optional when unset. |
|
Clears any stored alignment. |
|
Swaps the contained alignment with another optional. |
|
Transforms the stored alignment when set. |
|
Returns the alignment or throws if unset. |
|
Returns the alignment, or a fallback when unset. |
Non-Member Functions
Name |
Description |
Format optional alignment |
|
Dual operation of the encode function above. |
|
Returns a representation of the alignment that encodes undefined as 0. |
|
Return true if optional alignment |
|
Return true if optional alignments |
|
Return true if optional alignment |
|
Relational less‐than is deleted for MaybeAlign vs Align. |
|
Relational less‐than is deleted for MaybeAlign vs MaybeAlign. |
|
Relational less‐or‐equal is deleted for MaybeAlign vs MaybeAlign. |
|
Relational less‐or‐equal is deleted for MaybeAlign vs Align. |
|
Return true if optional alignment |
|
Return true if optional alignments |
|
Return true if optional alignment |
|
Relational greater‐than is deleted for MaybeAlign; compare Align values instead. |
|
Relational greater‐than is deleted for MaybeAlign vs Align. |
|
Relational greater‐or‐equal is deleted for MaybeAlign vs Align. |
|
Relational greater‐or‐equal is deleted for MaybeAlign vs MaybeAlign. |
Created with MrDocs