bpf: Support i32 in getScalarShiftAmountTy method
authorYonghong Song <yhs@fb.com>
Fri, 23 Feb 2018 23:49:26 +0000 (23:49 +0000)
committerYonghong Song <yhs@fb.com>
Fri, 23 Feb 2018 23:49:26 +0000 (23:49 +0000)
commit63cf273f5597f9e6cc9c3604acab5a00298a794b
tree3aa2c4840d0f3fc44af9be970954ec6af92072e4
parent59fc805c7e2e8edab9cc1adc2d91bb3d42971520
bpf: Support i32 in getScalarShiftAmountTy method

getScalarShiftAmount method should be implemented for eBPF backend to make
sure shift amount could still get correct type once 32-bit subregisters
support are enabled.

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