181ad6265SDimitry Andric //===-- SPIRV.h - Top-level interface for SPIR-V representation -*- C++ -*-===// 281ad6265SDimitry Andric // 381ad6265SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 481ad6265SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 581ad6265SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 681ad6265SDimitry Andric // 781ad6265SDimitry Andric //===----------------------------------------------------------------------===// 881ad6265SDimitry Andric 981ad6265SDimitry Andric #ifndef LLVM_LIB_TARGET_SPIRV_SPIRV_H 1081ad6265SDimitry Andric #define LLVM_LIB_TARGET_SPIRV_SPIRV_H 1181ad6265SDimitry Andric 1281ad6265SDimitry Andric #include "MCTargetDesc/SPIRVMCTargetDesc.h" 1381ad6265SDimitry Andric #include "llvm/CodeGen/MachineFunctionPass.h" 1481ad6265SDimitry Andric #include "llvm/Target/TargetMachine.h" 1581ad6265SDimitry Andric 1681ad6265SDimitry Andric namespace llvm { 1781ad6265SDimitry Andric class SPIRVTargetMachine; 1881ad6265SDimitry Andric class SPIRVSubtarget; 1981ad6265SDimitry Andric class InstructionSelector; 2081ad6265SDimitry Andric class RegisterBankInfo; 2181ad6265SDimitry Andric 225f757f3fSDimitry Andric ModulePass *createSPIRVPrepareFunctionsPass(const SPIRVTargetMachine &TM); 23*7a6dacacSDimitry Andric FunctionPass *createSPIRVStripConvergenceIntrinsicsPass(); 24bdd1243dSDimitry Andric FunctionPass *createSPIRVRegularizerPass(); 2581ad6265SDimitry Andric FunctionPass *createSPIRVPreLegalizerPass(); 2681ad6265SDimitry Andric FunctionPass *createSPIRVEmitIntrinsicsPass(SPIRVTargetMachine *TM); 2781ad6265SDimitry Andric InstructionSelector * 2881ad6265SDimitry Andric createSPIRVInstructionSelector(const SPIRVTargetMachine &TM, 2981ad6265SDimitry Andric const SPIRVSubtarget &Subtarget, 3081ad6265SDimitry Andric const RegisterBankInfo &RBI); 3181ad6265SDimitry Andric 3281ad6265SDimitry Andric void initializeSPIRVModuleAnalysisPass(PassRegistry &); 3381ad6265SDimitry Andric void initializeSPIRVPreLegalizerPass(PassRegistry &); 3481ad6265SDimitry Andric void initializeSPIRVEmitIntrinsicsPass(PassRegistry &); 3581ad6265SDimitry Andric } // namespace llvm 3681ad6265SDimitry Andric 3781ad6265SDimitry Andric #endif // LLVM_LIB_TARGET_SPIRV_SPIRV_H 38