Skip to content

Commit 50a8ebc

Browse files
committed
[AMDGPU][NPM] Add isRequired to passes missing it
1 parent 0b820a0 commit 50a8ebc

13 files changed

+15
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPU.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ class SILowerI1CopiesPass : public PassInfoMixin<SILowerI1CopiesPass> {
8989
SILowerI1CopiesPass() = default;
9090
PreservedAnalyses run(MachineFunction &MF,
9191
MachineFunctionAnalysisManager &MFAM);
92+
static bool isRequired() { return true; }
9293
};
9394

9495
void initializeAMDGPUDAGToDAGISelLegacyPass(PassRegistry &);
@@ -353,6 +354,7 @@ class SIModeRegisterPass : public PassInfoMixin<SIModeRegisterPass> {
353354
public:
354355
SIModeRegisterPass() {}
355356
PreservedAnalyses run(MachineFunction &F, MachineFunctionAnalysisManager &AM);
357+
static bool isRequired() { return true; }
356358
};
357359

358360
class SIMemoryLegalizerPass : public PassInfoMixin<SIMemoryLegalizerPass> {
@@ -469,6 +471,7 @@ class SIAnnotateControlFlowPass
469471
public:
470472
SIAnnotateControlFlowPass(const AMDGPUTargetMachine &TM) : TM(TM) {}
471473
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
474+
static bool isRequired() { return true; }
472475
};
473476

474477
void initializeSIAnnotateControlFlowLegacyPass(PassRegistry &);

llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ class AMDGPUISelDAGToDAGPass : public SelectionDAGISelPass {
287287

288288
PreservedAnalyses run(MachineFunction &MF,
289289
MachineFunctionAnalysisManager &MFAM);
290+
static bool isRequired() { return true; }
290291
};
291292

292293
class AMDGPUDAGToDAGISelLegacy : public SelectionDAGISelLegacy {

llvm/lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class AMDGPUUnifyDivergentExitNodesPass
2929
: public PassInfoMixin<AMDGPUUnifyDivergentExitNodesPass> {
3030
public:
3131
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
32+
static bool isRequired() { return true; }
3233
};
3334

3435
} // end namespace llvm

llvm/lib/Target/AMDGPU/GCNNSAReassign.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class GCNNSAReassignPass : public PassInfoMixin<GCNNSAReassignPass> {
1616
public:
1717
PreservedAnalyses run(MachineFunction &MF,
1818
MachineFunctionAnalysisManager &MFAM);
19+
static bool isRequired() { return true; }
1920
};
2021
} // namespace llvm
2122

llvm/lib/Target/AMDGPU/GCNPreRALongBranchReg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class GCNPreRALongBranchRegPass
1717
public:
1818
PreservedAnalyses run(MachineFunction &MF,
1919
MachineFunctionAnalysisManager &MFAM);
20+
static bool isRequired() { return true; }
2021
};
2122
} // namespace llvm
2223

llvm/lib/Target/AMDGPU/GCNRewritePartialRegUses.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class GCNRewritePartialRegUsesPass
1717
public:
1818
PreservedAnalyses run(MachineFunction &MF,
1919
MachineFunctionAnalysisManager &MFAM);
20+
static bool isRequired() { return true; }
2021
};
2122
} // namespace llvm
2223

llvm/lib/Target/AMDGPU/SIFixSGPRCopies.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class SIFixSGPRCopiesPass : public PassInfoMixin<SIFixSGPRCopiesPass> {
1818
SIFixSGPRCopiesPass() = default;
1919
PreservedAnalyses run(MachineFunction &MF,
2020
MachineFunctionAnalysisManager &MFAM);
21+
static bool isRequired() { return true; }
2122
};
2223

2324
} // namespace llvm

llvm/lib/Target/AMDGPU/SIFixVGPRCopies.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class SIFixVGPRCopiesPass : public PassInfoMixin<SIFixVGPRCopiesPass> {
1616
public:
1717
PreservedAnalyses run(MachineFunction &MF,
1818
MachineFunctionAnalysisManager &MFAM);
19+
static bool isRequired() { return true; }
1920
};
2021
} // namespace llvm
2122

llvm/lib/Target/AMDGPU/SILowerControlFlow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class SILowerControlFlowPass : public PassInfoMixin<SILowerControlFlowPass> {
1616
public:
1717
PreservedAnalyses run(MachineFunction &MF,
1818
MachineFunctionAnalysisManager &MFAM);
19+
static bool isRequired() { return true; }
1920
};
2021
} // namespace llvm
2122

llvm/lib/Target/AMDGPU/SILowerSGPRSpills.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class SILowerSGPRSpillsPass : public PassInfoMixin<SILowerSGPRSpillsPass> {
2323
.set(MachineFunctionProperties::Property::IsSSA)
2424
.set(MachineFunctionProperties::Property::NoVRegs);
2525
}
26+
static bool isRequired() { return true; }
2627
};
2728
} // namespace llvm
2829

0 commit comments

Comments
 (0)