1//===-- SPIRV.h - Top-level interface for SPIR-V representation -*- 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_SPIRV_SPIRV_H
10#define LLVM_LIB_TARGET_SPIRV_SPIRV_H
11
12#include "MCTargetDesc/SPIRVMCTargetDesc.h"
13#include "llvm/CodeGen/MachineFunctionPass.h"
14#include "llvm/Target/TargetMachine.h"
15
16namespace llvm {
17class SPIRVTargetMachine;
18class SPIRVSubtarget;
19class InstructionSelector;
20class RegisterBankInfo;
21
22ModulePass *createSPIRVPrepareFunctionsPass(const SPIRVTargetMachine &TM);
23FunctionPass *createSPIRVStripConvergenceIntrinsicsPass();
24FunctionPass *createSPIRVRegularizerPass();
25FunctionPass *createSPIRVPreLegalizerPass();
26FunctionPass *createSPIRVPostLegalizerPass();
27ModulePass *createSPIRVEmitIntrinsicsPass(SPIRVTargetMachine *TM);
28InstructionSelector *
29createSPIRVInstructionSelector(const SPIRVTargetMachine &TM,
30 const SPIRVSubtarget &Subtarget,
31 const RegisterBankInfo &RBI);
32
33void initializeSPIRVModuleAnalysisPass(PassRegistry &);
34void initializeSPIRVConvergenceRegionAnalysisWrapperPassPass(PassRegistry &);
35void initializeSPIRVPreLegalizerPass(PassRegistry &);
36void initializeSPIRVPostLegalizerPass(PassRegistry &);
37void initializeSPIRVEmitIntrinsicsPass(PassRegistry &);
38} // namespace llvm
39
40#endif // LLVM_LIB_TARGET_SPIRV_SPIRV_H
41

source code of llvm/lib/Target/SPIRV/SPIRV.h