]> granicus.if.org Git - llvm/commit
[bpf] add big- and host- endian support
authorAlexei Starovoitov <alexei.starovoitov@gmail.com>
Thu, 4 Jun 2015 19:15:05 +0000 (19:15 +0000)
committerAlexei Starovoitov <alexei.starovoitov@gmail.com>
Thu, 4 Jun 2015 19:15:05 +0000 (19:15 +0000)
commitac73683b107e9dc9c5a5de70d625653d0e1c19b9
treef8f603efb5bf5241515745e8b0a9146e4f5072cd
parentc07ee0c4ff45f4a5661cce9ed8e3e799a30bd952
[bpf] add big- and host- endian support

Summary:
-march=bpf    -> host endian
-march=bpf_le -> little endian
-match=bpf_be -> big endian

Test Plan:
v1 was tested by IBM s390 guys and appears to be working there.
It bit rots too fast here.

Reviewers: chandlerc, tstellarAMD

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10177

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239071 91177308-0d34-0410-b5e6-96231b3b80d8
25 files changed:
include/llvm/ADT/Triple.h
lib/Support/Triple.cpp
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 [new file with mode: 0644]
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