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 GV.

Parameters

NameDescription
GVGlobal variable whose preferred alignment is requested.