[llvm-dev] How exactly is datatype alignment determined?

Dr. ERDI Gergo via llvm-dev llvm-dev at lists.llvm.org
Mon May 22 07:48:47 PDT 2017


On Mon, 22 May 2017, Krzysztof Parzyszek via llvm-dev wrote:

> Probably from LargeArrayMinWidth/LargeArrayAlign settings in Targets.cpp (in 
> clang).

Wait what? In clang? But my input is already LLVM IR. 
MF->getDataLayout().getPrefTypeAlignment(Ty) must be basing its answer on 
either something in the IR file, or in the target implementation, but 
clang is not really in the picture.


More information about the llvm-dev mailing list