[LLVMdev] Architecture Dependency of LLVM bitcode (was Re: compile linux kernel)
Eli Friedman
eli.friedman at gmail.com
Mon Sep 29 12:28:58 PDT 2008
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
More information about the llvm-dev
mailing list