[PowerPC] Add handling for WACC register spilling.
authorStefan Pintilie <stefanp@ca.ibm.com>
Tue, 22 Nov 2022 14:41:14 +0000 (08:41 -0600)
committerStefan Pintilie <stefanp@ca.ibm.com>
Tue, 22 Nov 2022 15:37:52 +0000 (09:37 -0600)
commit1ac6956b52c70e00314cac99732d5e3a4ff0b43f
tree3409ec693e021c88b375064145698620181efb96
parentede6d608f4a92ef508b91f0a37f5b9dc1de45f47
[PowerPC] Add handling for WACC register spilling.

This patch adds spilling for the new WACC registers.

In order to get the spilling test to work the MMA instructions from Power 10 are
now supported for Future CPU except that they are all using the new WACC
registers instead of the ACC registers from Power 10.

Reviewed By: amyk, saghir

Differential Revision: https://reviews.llvm.org/D136728
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.h
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/lib/Target/PowerPC/PPCInstrMMA.td
llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
llvm/lib/Target/PowerPC/PPCRegisterInfo.h
llvm/test/CodeGen/PowerPC/mmaplus-acc-spill.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/mmaplus-intrinsics.ll [new file with mode: 0644]