[PATCH] [bpf] add big- and host- endian support

Alexei Starovoitov alexei.starovoitov at gmail.com
Wed Jun 3 13:38:46 PDT 2015


On Mon, Jun 1, 2015 at 8:07 PM, Alexei Starovoitov
<alexei.starovoitov at gmail.com> wrote:
> Hi chandlerc, tstellarAMD,
>
> -march=bpf    -> host endian
> -march=bpf_le -> little endian
> -match=bpf_be -> big endian
>
> REPOSITORY
>   rL LLVM
>
> http://reviews.llvm.org/D10177
>
> Files:
>   include/llvm/ADT/Triple.h
>   lib/Support/Triple.cpp

please take a look at the above two.
I think I'm doing it right. Just want to double check.

Thanks!

>   lib/Target/BPF/BPFAsmPrinter.cpp
>   lib/Target/BPF/BPFTargetMachine.cpp
>   lib/Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
>   lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp
>   lib/Target/BPF/MCTargetDesc/BPFMCAsmInfo.h
>   lib/Target/BPF/MCTargetDesc/BPFMCCodeEmitter.cpp
>   lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp
>   lib/Target/BPF/MCTargetDesc/BPFMCTargetDesc.h
>   lib/Target/BPF/TargetInfo/BPFTargetInfo.cpp
>   test/CodeGen/BPF/alu8.ll
>   test/CodeGen/BPF/atomics.ll
>   test/CodeGen/BPF/basictest.ll
>   test/CodeGen/BPF/cc_args.ll
>   test/CodeGen/BPF/cc_args_be.ll
>   test/CodeGen/BPF/cc_ret.ll
>   test/CodeGen/BPF/ex1.ll
>   test/CodeGen/BPF/intrinsics.ll
>   test/CodeGen/BPF/load.ll
>   test/CodeGen/BPF/loops.ll
>   test/CodeGen/BPF/sanity.ll
>   test/CodeGen/BPF/setcc.ll
>   test/CodeGen/BPF/shifts.ll
>   test/CodeGen/BPF/sockex2.ll
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/



More information about the llvm-commits mailing list