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

an alignment of the pointer value.

Parameters

NameDescription
DLA parsed version of the target data layout string in and methods for querying it.