LLVM: llvm::MaybeAlign Struct Reference (original) (raw)

This struct is a compact representation of a valid (power of two) or undefined (0) alignment. More...

#include "[llvm/Support/Alignment.h](Alignment%5F8h%5Fsource.html)"

Inheritance diagram for llvm::MaybeAlign:

Public Member Functions
MaybeAlign ()=default
Default is undefined.
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.
MaybeAlign & operator= (const MaybeAlign &Other)=default
MaybeAlign (MaybeAlign &&Other)=default
MaybeAlign & operator= (MaybeAlign &&Other)=default
constexpr MaybeAlign (std::nullopt_t None)
constexpr MaybeAlign (Align Value)
MaybeAlign (uint64_t Value)
Align valueOrOne () const
For convenience, returns a valid alignment or 1 if undefined.

Detailed Description

This struct is a compact representation of a valid (power of two) or undefined (0) alignment.

Definition at line 106 of file Alignment.h.

Constructor & Destructor Documentation

llvm::MaybeAlign::MaybeAlign ( ) default

Default is undefined.

Referenced by MaybeAlign(), MaybeAlign(), operator=(), and operator=().

MaybeAlign() [2/6]

Do not perform checks in case of copy/move construct/assign, because the checks have been performed when building Other.

References MaybeAlign(), and llvm::Other.

MaybeAlign() [3/6]

llvm::MaybeAlign::MaybeAlign ( MaybeAlign && Other) default

MaybeAlign() [4/6]

llvm::MaybeAlign::MaybeAlign ( std::nullopt_t None) inlineconstexpr

MaybeAlign() [5/6]

llvm::MaybeAlign::MaybeAlign ( Align Value) inlineconstexpr

MaybeAlign() [6/6]

llvm::MaybeAlign::MaybeAlign ( uint64_t Value) inlineexplicit

Member Function Documentation

operator=() [1/2]

operator=() [2/2]

valueOrOne()

Align llvm::MaybeAlign::valueOrOne ( ) const inline

For convenience, returns a valid alignment or 1 if undefined.

Definition at line 130 of file Alignment.h.

Referenced by adjustByValArgAlignment(), llvm::RISCVRegisterInfo::adjustReg(), llvm::SPIRVGlobalRegistry::buildGlobalVariable(), llvm::CC_RISCV(), llvm::CC_RISCV_FastCC(), llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::emitKernelArg(), llvm::expandAtomicMemCpyAsLoop(), llvm::expandMemCpyAsLoop(), llvm::expandMemMoveAsLoop(), llvm::expandMemSetAsLoop(), llvm::expandMemSetPatternAsLoop(), llvm::object::SectionRef::getAlignment(), llvm::ConstantInt::getAlignValue(), getFrameLayout(), llvm::AMDGPU::getInterestingMemoryOperands(), llvm::ISD::ArgFlagsTy::getNonZeroMemAlign(), llvm::ISD::ArgFlagsTy::getNonZeroOrigAlign(), llvm::RISCVTTIImpl::getTgtMemIntrinsic(), HandleByValArgument(), llvm::MIRParserImpl::initializeMachineFunction(), llvm::AttributeSet::intersectWith(), llvm::VETargetLowering::lowerDYNAMIC_STACKALLOC(), optimizeCallInst(), llvm::CoroAnnotationElidePass::run(), scalarizeMaskedCompressStore(), scalarizeMaskedExpandLoad(), scalarizeMaskedGather(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), scalarizeMaskedStore(), tocDataChecks(), and llvm::InstCombinerImpl::visitCallInst().


The documentation for this struct was generated from the following file: