Skip to content

Commit 8f0a789

Browse files
committed
[AMDGPU][NPM] Add isRequired to passes missing it llvm#148115
1 parent a09717f commit 8f0a789

16 files changed

+17
-1
lines changed

llvm/include/llvm/Transforms/Scalar/StructurizeCFG.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ struct StructurizeCFGPass : PassInfoMixin<StructurizeCFGPass> {
2323
function_ref<StringRef(StringRef)> MapClassName2PassName);
2424

2525
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
26+
static bool isRequired() { return true; }
2627
};
2728
} // namespace llvm
2829

llvm/include/llvm/Transforms/Utils/LoopSimplify.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class ScalarEvolution;
5454
class LoopSimplifyPass : public PassInfoMixin<LoopSimplifyPass> {
5555
public:
5656
LLVM_ABI PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
57+
static bool isRequired() { return true; }
5758
};
5859

5960
/// Simplify each loop in a loop nest recursively.

llvm/lib/Target/AMDGPU/AMDGPU.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ class SILowerI1CopiesPass : public PassInfoMixin<SILowerI1CopiesPass> {
9191
SILowerI1CopiesPass() = default;
9292
PreservedAnalyses run(MachineFunction &MF,
9393
MachineFunctionAnalysisManager &MFAM);
94+
static bool isRequired() { return true; }
9495
};
9596

9697
void initializeAMDGPUDAGToDAGISelLegacyPass(PassRegistry &);
@@ -379,6 +380,7 @@ class SIModeRegisterPass : public PassInfoMixin<SIModeRegisterPass> {
379380
public:
380381
SIModeRegisterPass() {}
381382
PreservedAnalyses run(MachineFunction &F, MachineFunctionAnalysisManager &AM);
383+
static bool isRequired() { return true; }
382384
};
383385

384386
class SIMemoryLegalizerPass : public PassInfoMixin<SIMemoryLegalizerPass> {
@@ -487,6 +489,7 @@ class SIAnnotateControlFlowPass
487489
public:
488490
SIAnnotateControlFlowPass(const AMDGPUTargetMachine &TM) : TM(TM) {}
489491
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM);
492+
static bool isRequired() { return true; }
490493
};
491494

492495
void initializeSIAnnotateControlFlowLegacyPass(PassRegistry &);

llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.h

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

317317
PreservedAnalyses run(MachineFunction &MF,
318318
MachineFunctionAnalysisManager &MFAM);
319+
static bool isRequired() { return true; }
319320
};
320321

321322
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

0 commit comments

Comments
 (0)