[LLVMdev] Bug in optimization pass related to strcmp and bigendian back-ends
Dan Gohman
gohman at apple.com
Tue Aug 11 09:16:42 PDT 2009
On Aug 11, 2009, at 3:04 AM, Richard Pennington <rich at pennware.com>
wrote:
> 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.
More precisely, LLVM IR generated from C is very target dependent. See
http://llvm.org/docs/FAQ.html#platformindependent
for details.
Dan
More information about the llvm-dev
mailing list