[llvm] AMDGPU/NewPM: Port SIFixSGPRCopies to new pass manager (PR #102614)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 06:30:58 PDT 2024


================
@@ -158,6 +157,20 @@ class SIFixSGPRCopies : public MachineFunctionPass {
   bool tryMoveVGPRConstToSGPR(MachineOperand &MO, Register NewDst,
                               MachineBasicBlock *BlockToInsertTo,
                               MachineBasicBlock::iterator PointToInsertTo);
+};
+
+class SIFixSGPRCopiesLegacy : public MachineFunctionPass {
----------------
arsenm wrote:

If you do that, you end up with the "PassPass" suffix for the initialize* functions 

https://github.com/llvm/llvm-project/pull/102614


More information about the llvm-commits mailing list