[LLVMdev] Bug in optimization pass related to strcmp and bigendian back-ends
Richard Pennington
rich at pennware.com
Tue Aug 11 03:04:06 PDT 2009
Stripf, Timo wrote:
> I thought the LLVM IR is target independent and that "llvm-gcc -c -emit-llvm -O2" produces target independent code.
>
> I'm working on a back-end and use llvm-gcc to first generate the bc file. Afterwards I use llc including the new back-end to produce the assembler file.
>
> -Timo
LLVM IR is very target dependent. The IR knows about things like
endian-ness, alignment, etc.
I'm currently building newlib for several LLVM targets and I create
separate bitcode for each target. Each module has the target triple and
target data string specific to the target.
Unfortunately you need an llvm-gcc for the target you want to support. M
I think clang can generate code for multiple targets. Maybe you should
try that.
-Rich
More information about the llvm-dev
mailing list