[LLVMdev] how to configure llc to generate code for different architecture

Anton Korobeynikov anton at korobeynikov.info
Tue Mar 16 13:28:21 PDT 2010


> Is it possible to override target CPU attributes when using llvm-gcc compiler?
No. It's a fundamental property of gcc to be compiled separately for
every different target.

Also, the LLVM IR obtained via llvm-gcc (or, more general, derived
from C source) is not target neutral, so in most cases it does not
make any sense to override the target for IR obtained this way.
-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list