| 1 | //===-- NVPTXAsmPrinter.h - NVPTX LLVM assembly writer ----------*- 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_LIB_TARGET_NVPTX_NVPTXASMPRINTER_H |
| 10 | #define LLVM_LIB_TARGET_NVPTX_NVPTXASMPRINTER_H |
| 11 | |
| 12 | #include "llvm/CodeGen/MachineFunctionAnalysisManager.h" |
| 13 | #include "llvm/IR/PassManager.h" |
| 14 | |
| 15 | namespace llvm { |
| 16 | |
| 17 | class NVPTXAsmPrinterBeginPass |
| 18 | : public RequiredPassInfoMixin<NVPTXAsmPrinterBeginPass> { |
| 19 | public: |
| 20 | PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM); |
| 21 | }; |
| 22 | |
| 23 | class NVPTXAsmPrinterPass : public RequiredPassInfoMixin<NVPTXAsmPrinterPass> { |
| 24 | public: |
| 25 | PreservedAnalyses run(MachineFunction &MF, |
| 26 | MachineFunctionAnalysisManager &MFAM); |
| 27 | }; |
| 28 | |
| 29 | class NVPTXAsmPrinterEndPass |
| 30 | : public RequiredPassInfoMixin<NVPTXAsmPrinterEndPass> { |
| 31 | public: |
| 32 | PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM); |
| 33 | }; |
| 34 | |
| 35 | } // end namespace llvm |
| 36 | |
| 37 | #endif // LLVM_LIB_TARGET_NVPTX_NVPTXASMPRINTER_H |
| 38 |