[LLVMdev] opt and llc use datalayout differently - bug?

Duncan Sands baldrick at free.fr
Tue Oct 4 00:18:16 PDT 2011


Hi JP,

> It appears llc gives preference to the default target datalayout whereas
> opt gives preference to the module datalayout.

llc completely ignores the target datalayout because it already knows how
the target lays out data.  Target datalayout exists entirely for the
benefit of opt: it allows opt to use target specific information without
having to be linked with the code generators.

Ciao, Duncan.



More information about the llvm-dev mailing list