[LLVMdev] Changing Endian in TargetData

Anton Korobeynikov anton at korobeynikov.info
Sat Jul 7 01:15:55 PDT 2012


Hello Ryan,

> I'm trying to change the Endian of X86 from little to big in the TargetData.
> I only care about the way in which this effects the LLVM IR, not the actual
> backend code. I've changed the "e-" to "E-" in X86TargetMachine.cpp (where
> it sets the DataLayout) with no luck. Are there any other obvious places
> that I need to change this?
The lowering code in all places might implicitly do little-endian things.

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



More information about the llvm-dev mailing list