llvm::getKnownAlignment

Infer a known alignment for the specified pointer.

Synopsis

Declared in <llvm/Transforms/Utils/Local.h>

Align
getKnownAlignment(
    Value* V,
    DataLayout const& DL,
    Instruction const* CxtI = nullptr,
    AssumptionCache* AC = nullptr,
    DominatorTree const* DT = nullptr);

Return Value

Known alignment of the specified pointer.

Parameters

NameDescription
VPointer value whose alignment is queried.
DLData layout used to reason about object alignment.
CxtIOptional context instruction for local analysis.
ACOptional assumption cache used during analysis.
DTOptional dominator tree used during analysis.