llvm::alignTo

Returns a TypeSize with a known minimum size that is the next integer (mod 2**64) that is greater than or equal to Quantity and is a multiple of Align. Align must be non-zero.

Synopsis

Declared in <llvm/Support/TypeSize.h>

constexpr
TypeSize
alignTo(
    TypeSize Size,
    uint64_t Align);

Description

Similar to the alignTo functions in MathExtras.h