xref: /llvm-project/llvm/include/llvm/Transforms/Utils/DXILUpgrade.h (revision 71e3642619dd9d6f61b91eaf13298ef24d667d53)
1 //===- DXILUpgrade.h - Upgrade DXIL metadata to LLVM constructs -*- 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_TRANSFORMS_UTILS_DXILUPGRADE_H
10 #define LLVM_TRANSFORMS_UTILS_DXILUPGRADE_H
11 
12 #include "llvm/IR/PassManager.h"
13 
14 namespace llvm {
15 
16 /// Upgrade DXIL-style metadata into their LLVM representations
17 class DXILUpgradePass : public PassInfoMixin<DXILUpgradePass> {
18 public:
19   PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
20 };
21 
22 } // namespace llvm
23 
24 #endif // LLVM_TRANSFORMS_UTILS_DXILUPGRADE_H
25