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

Name

Description

DL

Data layout used when no explicit alignment is present.

Created with MrDocs