forked from OSchip/llvm-project
bpf: Enable 32-bit subregister support for -mattr=+alu32
After all those preparation patches, now we could enable 32-bit subregister support once -mattr=+alu32 specified. Signed-off-by: Jiong Wang <jiong.wang@netronome.com> Reviewed-by: Yonghong Song <yhs@fb.com> llvm-svn: 325989
This commit is contained in:
parent
fcd1e0f625
commit
ca31c3bb3f
|
@ -57,6 +57,8 @@ BPFTargetLowering::BPFTargetLowering(const TargetMachine &TM,
|
|||
|
||||
// Set up the register classes.
|
||||
addRegisterClass(MVT::i64, &BPF::GPRRegClass);
|
||||
if (STI.getHasAlu32())
|
||||
addRegisterClass(MVT::i32, &BPF::GPR32RegClass);
|
||||
|
||||
// Compute derived properties from the register classes
|
||||
computeRegisterProperties(STI.getRegisterInfo());
|
||||
|
|
Loading…
Reference in New Issue