[llvm] [DirectX] Add Range Overlap validation (PR #152229)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 18:51:19 PDT 2025
================
@@ -125,10 +291,13 @@ class DXILPostOptimizationValidationLegacy : public ModulePass {
void getAnalysisUsage(llvm::AnalysisUsage &AU) const override {
AU.addRequired<DXILResourceWrapperPass>();
AU.addRequired<DXILResourceBindingWrapperPass>();
+ AU.addRequired<DXILMetadataAnalysisWrapperPass>();
+ AU.addRequired<RootSignatureAnalysisWrapper>();
AU.addPreserved<DXILResourceWrapperPass>();
AU.addPreserved<DXILResourceBindingWrapperPass>();
AU.addPreserved<DXILMetadataAnalysisWrapperPass>();
AU.addPreserved<ShaderFlagsAnalysisWrapper>();
+ AU.addPreserved<RootSignatureAnalysisWrapper>();
----------------
joaosaffran wrote:
`addRequired` adds another analysis as a dependency for you current analysis, this way the pass manager can run the required ones before your analysis.
`addPreserved` tells the pass manager to preserve the result of another pass. This is most useful in cases where the pass changes the IR, and you don't want to invalidate another analysis.
https://github.com/llvm/llvm-project/pull/152229
More information about the llvm-commits
mailing list