[llvm] [DirectX] Introduce the DXILResourceAccess pass (PR #116726)

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 12:59:17 PST 2024


================
@@ -1348,5 +1350,6 @@ PreservedAnalyses ScalarizerPass::run(Function &F, FunctionAnalysisManager &AM)
   bool Changed = Impl.visit(F);
   PreservedAnalyses PA;
   PA.preserve<DominatorTreeAnalysis>();
+  PA.preserve<DXILResourceAnalysis>();
----------------
farzonl wrote:

I'm not sure if this line and line 355 are ok. If there was never a `DXILResourceWrapperPass` initialized before this pass then there should be nothing to preserve right?  If not Is there any other way to do this? We've done a bunch of abstraction to keep the DirectX specific out of this pass.

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


More information about the llvm-commits mailing list