LLVM 20.0.0git
DXILResourceAnalysis.cpp
Go to the documentation of this file.
1//===- DXILResourceAnalysis.cpp - DXIL Resource analysis-------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8///
9/// \file This file contains Analysis for information about DXIL resources.
10///
11//===----------------------------------------------------------------------===//
12
14#include "DirectX.h"
15#include "llvm/IR/PassManager.h"
16
17using namespace llvm;
18
19#define DEBUG_TYPE "dxil-resource-analysis"
20
24 R.collect(M);
25 return R;
26}
27
28AnalysisKey DXILResourceMDAnalysis::Key;
29
32 "DXIL resource Information", true, true)
34 "DXIL resource Information", true, true)
35
36bool DXILResourceMDWrapper::runOnModule(Module &M) {
37 Resources.collect(M);
38 return false;
39}
40
basic Basic Alias true
#define DEBUG_TYPE
Natural Loop Information
Definition: LoopInfo.cpp:1209
This header defines various interfaces for pass management in LLVM.
#define INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)
Definition: PassSupport.h:57
#define INITIALIZE_PASS_BEGIN(passName, arg, name, cfg, analysis)
Definition: PassSupport.h:52
A container for analyses that lazily runs them and caches their results.
Definition: PassManager.h:253
dxil::Resources run(Module &M, ModuleAnalysisManager &AM)
The legacy pass manager's analysis pass to compute DXIL resource information.
ModulePass class - This class is used to implement unstructured interprocedural optimizations and ana...
Definition: Pass.h:251
A Module instance is used to store all the information related to an LLVM module.
Definition: Module.h:65
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
A special type used by analysis passes to provide an address that identifies that particular analysis...
Definition: Analysis.h:28