[LLVMdev] Architecture Dependency of LLVM bitcode (was Re: compile linux kernel)
andrewl at lenharth.org
Mon Sep 29 13:27:53 PDT 2008
On Mon, Sep 29, 2008 at 2:28 PM, Eli Friedman <eli.friedman at gmail.com> wrote:
> 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.
You can write these portably, but instcombine will does not eliminate
the abstraction (it should raise it to a bswap). Bug:
More information about the llvm-dev