|
LLVM
10.0.0
|
This struct is a compact representation of a valid (power of two) or undefined (0) alignment. More...
#include "llvm/Support/Alignment.h"
Public Member Functions | |
| MaybeAlign ()=default | |
| Default is undefined. More... | |
| MaybeAlign (const MaybeAlign &Other)=default | |
Do not perform checks in case of copy/move construct/assign, because the checks have been performed when building Other. More... | |
| MaybeAlign & | operator= (const MaybeAlign &Other)=default |
| MaybeAlign (MaybeAlign &&Other)=default | |
| MaybeAlign & | operator= (MaybeAlign &&Other)=default |
| MaybeAlign (uint64_t Value) | |
| Align | valueOrOne () const |
| For convenience, returns a valid alignment or 1 if undefined. More... | |
Public Member Functions inherited from llvm::Optional< Align > | |
| constexpr | Optional () |
| constexpr | Optional (NoneType) |
| Optional (const Align &y) | |
| Optional (const Optional &O)=default | |
| Optional (Align &&y) | |
| Optional (Optional &&O)=default | |
| Optional & | operator= (Align &&y) |
| Optional & | operator= (Optional &&O)=default |
| Optional & | operator= (const Align &y) |
| Optional & | operator= (const Optional &O)=default |
| void | emplace (ArgTypes &&... Args) |
| Create a new object by constructing it in place with the given arguments. More... | |
| void | reset () |
| const Align * | getPointer () const |
| Align * | getPointer () |
| const Align & | getValue () const LLVM_LVALUE_FUNCTION |
| Align & | getValue () LLVM_LVALUE_FUNCTION |
| operator bool () const | |
| bool | hasValue () const |
| const Align * | operator-> () const |
| Align * | operator-> () |
| const Align & | operator* () const LLVM_LVALUE_FUNCTION |
| Align & | operator* () LLVM_LVALUE_FUNCTION |
| constexpr Align | getValueOr (U &&value) const LLVM_LVALUE_FUNCTION |
| auto | map (const Function &F) const -> Optional< decltype(F(getValue()))> |
| Apply a function to the value if present; otherwise return None. More... | |
Additional Inherited Members | |
Public Types inherited from llvm::Optional< Align > | |
| using | value_type = Align |
Static Public Member Functions inherited from llvm::Optional< Align > | |
| static Optional | create (const Align *y) |
This struct is a compact representation of a valid (power of two) or undefined (0) alignment.
Definition at line 117 of file Alignment.h.
|
default |
Default is undefined.
|
default |
Do not perform checks in case of copy/move construct/assign, because the checks have been performed when building Other.
|
default |
|
inlineexplicit |
Definition at line 134 of file Alignment.h.
References assert(), and llvm::isPowerOf2_64().
|
default |
|
default |
|
inline |
For convenience, returns a valid alignment or 1 if undefined.
Definition at line 142 of file Alignment.h.
References llvm::Align::Align().
Referenced by llvm::HexagonTTIImpl::getMemoryOpCost().
1.8.13