llvm::Value::getPointerAlignment

Returns an alignment of the pointer value.

Synopsis

Declared in <llvm/IR/Value.h>

Align
getPointerAlignment(DataLayout const& DL) const;

Description

Returns an alignment which is either specified explicitly, e.g. via align attribute of a function argument, or guaranteed by DataLayout.

Return Value

The known alignment of this pointer value.

Parameters

NameDescription
DLData layout used when no explicit alignment is present.