llvm::encode

encode overloads

Synopses

Declared in <llvm/Support/Alignment.h>

Returns a representation of the alignment, the encoded value is positive by definition.

unsigned int
encode(Align A);
» more...

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

unsigned int
encode(MaybeAlign A);
» more...

Return Value

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

Parameters

NameDescription
AAlignment to encode.