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