[llvm-branch-commits] [llvm] [DirectX] Register a few DXIL passes with the new PM (PR #104250)
Justin Bogner via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Aug 20 16:33:22 PDT 2024
https://github.com/bogner updated https://github.com/llvm/llvm-project/pull/104250
>From 6318763d8c0da2e850b6f924e6c5bfc96493b279 Mon Sep 17 00:00:00 2001
From: Justin Bogner <mail at justinbogner.com>
Date: Thu, 15 Aug 2024 01:09:08 +0300
Subject: [PATCH] Remove DXILResourceMDPrinterPass
Created using spr 1.3.5-bogner
---
llvm/lib/Target/DirectX/DXILResourceAnalysis.cpp | 11 -----------
llvm/lib/Target/DirectX/DXILResourceAnalysis.h | 13 -------------
2 files changed, 24 deletions(-)
diff --git a/llvm/lib/Target/DirectX/DXILResourceAnalysis.cpp b/llvm/lib/Target/DirectX/DXILResourceAnalysis.cpp
index 33e0119807bb8e..d423220bb902ed 100644
--- a/llvm/lib/Target/DirectX/DXILResourceAnalysis.cpp
+++ b/llvm/lib/Target/DirectX/DXILResourceAnalysis.cpp
@@ -27,13 +27,6 @@ dxil::Resources DXILResourceMDAnalysis::run(Module &M,
AnalysisKey DXILResourceMDAnalysis::Key;
-PreservedAnalyses DXILResourceMDPrinterPass::run(Module &M,
- ModuleAnalysisManager &AM) {
- dxil::Resources Res = AM.getResult<DXILResourceMDAnalysis>(M);
- Res.print(OS);
- return PreservedAnalyses::all();
-}
-
char DXILResourceMDWrapper::ID = 0;
INITIALIZE_PASS_BEGIN(DXILResourceMDWrapper, DEBUG_TYPE,
"DXIL resource Information", true, true)
@@ -46,7 +39,3 @@ bool DXILResourceMDWrapper::runOnModule(Module &M) {
}
DXILResourceMDWrapper::DXILResourceMDWrapper() : ModulePass(ID) {}
-
-void DXILResourceMDWrapper::print(raw_ostream &OS, const Module *) const {
- Resources.print(OS);
-}
diff --git a/llvm/lib/Target/DirectX/DXILResourceAnalysis.h b/llvm/lib/Target/DirectX/DXILResourceAnalysis.h
index 26d9237d51b49c..0ad97dc1992f4c 100644
--- a/llvm/lib/Target/DirectX/DXILResourceAnalysis.h
+++ b/llvm/lib/Target/DirectX/DXILResourceAnalysis.h
@@ -30,17 +30,6 @@ class DXILResourceMDAnalysis
dxil::Resources run(Module &M, ModuleAnalysisManager &AM);
};
-/// Printer pass for the \c DXILResourceMDAnalysis results.
-class DXILResourceMDPrinterPass
- : public PassInfoMixin<DXILResourceMDPrinterPass> {
- raw_ostream &OS;
-
-public:
- explicit DXILResourceMDPrinterPass(raw_ostream &OS) : OS(OS) {}
- PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
- static bool isRequired() { return true; }
-};
-
/// The legacy pass manager's analysis pass to compute DXIL resource
/// information.
class DXILResourceMDWrapper : public ModulePass {
@@ -60,8 +49,6 @@ class DXILResourceMDWrapper : public ModulePass {
void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.setPreservesAll();
}
-
- void print(raw_ostream &O, const Module *M = nullptr) const override;
};
} // namespace llvm
More information about the llvm-branch-commits
mailing list