LLVM 22.0.0git
DXILTranslateMetadata.h
Go to the documentation of this file.
1//===- DXILTranslateMetadata.h - Pass to emit DXIL metadata -----*- C++ -*-===//
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#ifndef LLVM_TARGET_DIRECTX_DXILTRANSLATEMETADATA_H
10#define LLVM_TARGET_DIRECTX_DXILTRANSLATEMETADATA_H
11
12#include "llvm/IR/PassManager.h"
13#include "llvm/Pass.h"
14
15namespace llvm {
16
17/// A pass that transforms LLVM Metadata in the module to it's DXIL equivalent,
18/// then emits all recognized DXIL Metadata
19class DXILTranslateMetadata : public PassInfoMixin<DXILTranslateMetadata> {
20public:
22};
23
24/// Wrapper pass for the legacy pass manager.
25///
26/// This is required because the passes that will depend on this are codegen
27/// passes which run through the legacy pass manager.
29public:
30 static char ID; // Pass identification, replacement for typeid
32
33 StringRef getPassName() const override { return "DXIL Translate Metadata"; }
34
35 void getAnalysisUsage(AnalysisUsage &AU) const override;
36
37 bool runOnModule(Module &M) override;
38};
39
40} // namespace llvm
41
42#endif // LLVM_TARGET_DIRECTX_DXILTRANSLATEMETADATA_H
This header defines various interfaces for pass management in LLVM.
Represent the analysis usage information of a pass.
bool runOnModule(Module &M) override
runOnModule - Virtual method overriden by subclasses to process the module being operated on.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
StringRef getPassName() const override
getPassName - Return a nice clean name for a pass.
A pass that transforms LLVM Metadata in the module to it's DXIL equivalent, then emits all recognized...
PreservedAnalyses run(Module &M, ModuleAnalysisManager &)
ModulePass(char &pid)
Definition Pass.h:257
A Module instance is used to store all the information related to an LLVM module.
Definition Module.h:67
A set of analyses that are preserved following a run of a transformation pass.
Definition Analysis.h:112
StringRef - Represent a constant reference to a string, i.e.
Definition StringRef.h:55
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< Module > ModuleAnalysisManager
Convenience typedef for the Module analysis manager.
Definition MIRParser.h:39
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition PassManager.h:70