[LLVMdev] Bug in optimization pass related to strcmp and bigendian back-ends

Anton Korobeynikov anton at korobeynikov.info
Wed Aug 12 05:32:06 PDT 2009


Hello, Timo

> Just out of curiosity, are there any plans/ideas to increase the platform independence of optimization steps or the LLVM IR? It is clear that for C/C++ front-ends it is useless but maybe it is useful for other platform independent front-ends like java. Maybe add some kind of is_big_endian function to express "is_big_endian ? 30 : 30<<8" within the IR that is replaced within the back-end.
Both optimization steps and LLVM IR are target neutral by themselves.
It's the "information" encoded into the IR is target-dependent (and
it's not only the endianess thing). That's why LLVM IR obtained from
java bytecode should be target-neutral in theory.

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




More information about the llvm-dev mailing list