[LLVMdev] Architecture Dependency of LLVM bitcode (was Re: compile linux kernel)

Eli Friedman
Mon, 29 Sep 2008 19:28:58 -0000

On Mon, Sep 29, 2008 at 6:46 AM, Andrew Lenharth <andrewl at lenharth.org>
wrote:
> hton and ntoh intrinsics.

You can write these portably already; just store to an i32, cast the
pointer to i8, read out the bytes, then reconstruct the i32.  If I
recall correctly, scalarrepl+instcombine should be able to eliminate
the abstraction if they have target information.

-Eli