llvm::encode

Returns a representation of the alignment that encodes undefined as 0.

Synopsis

Declared in <llvm/Support/Alignment.h>

unsigned int
encode(MaybeAlign A);

Return Value

An encoding where 0 means unset and positive values encode Align.

Parameters

NameDescription
AOptional alignment to encode.