llvm::DataLayout::getPreferredAlign

Returns the preferred alignment of the specified global.

Synopsis

Declared in <llvm/IR/DataLayout.h>

Align
getPreferredAlign(GlobalVariable const* GV) const;

Description

This includes an explicitly requested alignment (if the global has one).

Return Value

the preferred alignment of the specified global.