[bpf] add support for bswap instructions
authorAlexei Starovoitov <alexei.starovoitov@gmail.com>
Mon, 30 Mar 2015 22:40:40 +0000 (22:40 +0000)
committerAlexei Starovoitov <alexei.starovoitov@gmail.com>
Mon, 30 Mar 2015 22:40:40 +0000 (22:40 +0000)
commit5ca9ec70fd1d8e3864af8dc96fc8fe7d66ea97a8
tree3cd350a526206468163bdcc440c181b161baf723
parentadb58c18f58c3e4e32bfcdcfd3599fdfcc30be55
[bpf] add support for bswap instructions

BPF has cpu_to_be and cpu_to_le instructions.
For now assume little endian and generate cpu_to_be for ISD::BSWAP.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233620 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/BPF/BPFISelLowering.cpp
lib/Target/BPF/BPFInstrInfo.td
test/CodeGen/BPF/intrinsics.ll