[LLVMdev] Resolving sizeof's; target triples; type optimizations

Anton Korobeynikov anton at korobeynikov.info
Thu Oct 27 11:47:19 PDT 2011


> In doing this, I'm essentially overriding any "target triple" existing in
> the IR, breaking up the process into a multi-stage operation (llvm-gcc, opt
> and llc running independently) and picking whatever target I want, right?
No. This won't work since, as indicated in the FAQ entry IR derived
from C/C++ is not target neutral, so you cannot 'just' override the
You have to build/use llvm-gcc/clang as cross-compiler.

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the llvm-dev mailing list