llvm::commonAlignment

Returns the alignment that satisfies both alignments. Same semantic as MinAlign.

Synopsis

Declared in <llvm/Support/Alignment.h>

Align
commonAlignment(
    Align A,
    uint64_t Offset);

Return Value

The greatest alignment that divides both A and Offset.

Parameters

NameDescription
AKnown alignment of a pointer.
OffsetByte offset from that pointer.