| 1 | //===----------------------------------------------------------------------===// |
|---|---|
| 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_LANAI_LANAIASMPRINTER_H |
| 10 | #define LLVM_LIB_TARGET_LANAI_LANAIASMPRINTER_H |
| 11 | |
| 12 | #include "llvm/CodeGen/MachineFunctionAnalysisManager.h" |
| 13 | #include "llvm/IR/Analysis.h" |
| 14 | #include "llvm/IR/Module.h" |
| 15 | #include "llvm/IR/PassManager.h" |
| 16 | |
| 17 | namespace llvm { |
| 18 | |
| 19 | class LanaiAsmPrinterBeginPass |
| 20 | : public RequiredPassInfoMixin<LanaiAsmPrinterBeginPass> { |
| 21 | public: |
| 22 | PreservedAnalyses run(Module &M, ModuleAnalysisManager &MFAM); |
| 23 | }; |
| 24 | |
| 25 | class LanaiAsmPrinterPass : public RequiredPassInfoMixin<LanaiAsmPrinterPass> { |
| 26 | public: |
| 27 | PreservedAnalyses run(MachineFunction &MF, |
| 28 | MachineFunctionAnalysisManager &MFAM); |
| 29 | }; |
| 30 | |
| 31 | class LanaiAsmPrinterEndPass |
| 32 | : public RequiredPassInfoMixin<LanaiAsmPrinterEndPass> { |
| 33 | public: |
| 34 | PreservedAnalyses run(Module &M, ModuleAnalysisManager &MFAM); |
| 35 | }; |
| 36 | |
| 37 | } // namespace llvm |
| 38 | |
| 39 | #endif // LLVM_LIB_TARGET_LANAI_LANAIASMPRINTER_H |
| 40 |