[LLVMdev] Alignments in LLVM IR
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Apr 15 17:41:34 PDT 2014
On 2014-Apr-15, at 3:41, Jera Hensel <jera.hensel at gmail.com> wrote:
> - Do alignments provide additional semantics to be obeyed by the compiler or are they just hints that can be ignored?
Depends on where the alignment is used. For stores [1] it's a hint, as
John and Tim said. For global variables [2] it's an additional semantic.
[1]: http://llvm.org/docs/LangRef.html#store-instruction
[2]: http://llvm.org/docs/LangRef.html#global-variables
More information about the llvm-dev
mailing list