[llvm] [DirectX] Add missing Analysis usage to DXILResourceMDWrapper (PR #104244)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 14:27:46 PDT 2024
https://github.com/bogner created https://github.com/llvm/llvm-project/pull/104244
This analysis can't be used with other analyses if this isn't set.
>From 94a13b2a4bd23d0d236fed2f7cab165ca87449c1 Mon Sep 17 00:00:00 2001
From: Justin Bogner <mail at justinbogner.com>
Date: Thu, 15 Aug 2024 00:27:35 +0300
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.5-bogner
---
llvm/lib/Target/DirectX/DXILResourceAnalysis.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/llvm/lib/Target/DirectX/DXILResourceAnalysis.h b/llvm/lib/Target/DirectX/DXILResourceAnalysis.h
index 3a2b8a9fd39d59..26d9237d51b49c 100644
--- a/llvm/lib/Target/DirectX/DXILResourceAnalysis.h
+++ b/llvm/lib/Target/DirectX/DXILResourceAnalysis.h
@@ -57,6 +57,10 @@ class DXILResourceMDWrapper : public ModulePass {
/// Calculate the DXILResource for the module.
bool runOnModule(Module &M) override;
+ 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-commits
mailing list