bpf: Handle i32 for ALU operations without ISA support
authorYonghong Song <yhs@fb.com>
Fri, 23 Feb 2018 23:49:24 +0000 (23:49 +0000)
committerYonghong Song <yhs@fb.com>
Fri, 23 Feb 2018 23:49:24 +0000 (23:49 +0000)
commit219156cff0ee9ab8a363ba978a9d77ef987d0122
treef9dbd53fdfd5c1ae862966a0c0641dc5f116d0b4
parent07a7a417537ee0c8021672823c78c4dfa10dc918
bpf: Handle i32 for ALU operations without ISA support

There is no eBPF ISA support for BSWAP, ROTR, ROTL, SREM, SDIVREM, MULHU,
ADDC, ADDE etc on i32.

They could be emulated by other basic BPF_ALU operations, we'd set their
lowering action the same as i64.

Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Reviewed-by: Yonghong Song <yhs@fb.com>
llvm-svn: 325984
llvm/lib/Target/BPF/BPFISelLowering.cpp