#include "llvm/Analysis/DXILMetadataAnalysis.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/InitializePasses.h"
#include "llvm/Support/ErrorHandling.h"
#define DEBUG_TYPE …
usingnamespacellvm;
usingnamespacedxil;
static ModuleMetadataInfo collectMetadataInfo(Module &M) { … }
void ModuleMetadataInfo::print(raw_ostream &OS) const { … }
AnalysisKey DXILMetadataAnalysis::Key;
llvm::dxil::ModuleMetadataInfo
DXILMetadataAnalysis::run(Module &M, ModuleAnalysisManager &AM) { … }
PreservedAnalyses
DXILMetadataAnalysisPrinterPass::run(Module &M, ModuleAnalysisManager &AM) { … }
DXILMetadataAnalysisWrapperPass::DXILMetadataAnalysisWrapperPass()
: … { … }
DXILMetadataAnalysisWrapperPass::~DXILMetadataAnalysisWrapperPass() = default;
void DXILMetadataAnalysisWrapperPass::getAnalysisUsage(
AnalysisUsage &AU) const { … }
bool DXILMetadataAnalysisWrapperPass::runOnModule(Module &M) { … }
void DXILMetadataAnalysisWrapperPass::releaseMemory() { … }
void DXILMetadataAnalysisWrapperPass::print(raw_ostream &OS,
const Module *) const { … }
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
LLVM_DUMP_METHOD
void DXILMetadataAnalysisWrapperPass::dump() const { print(dbgs(), nullptr); }
#endif
INITIALIZE_PASS(…)
char DXILMetadataAnalysisWrapperPass::ID = …;