LLVM  16.0.0git
SPIRV.h
Go to the documentation of this file.
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 
15 
16 namespace llvm {
17 class SPIRVTargetMachine;
18 class SPIRVSubtarget;
19 class InstructionSelector;
20 class RegisterBankInfo;
21 
23 FunctionPass *createSPIRVRegularizerPass();
24 FunctionPass *createSPIRVPreLegalizerPass();
25 FunctionPass *createSPIRVEmitIntrinsicsPass(SPIRVTargetMachine *TM);
26 InstructionSelector *
27 createSPIRVInstructionSelector(const SPIRVTargetMachine &TM,
28  const SPIRVSubtarget &Subtarget,
29  const RegisterBankInfo &RBI);
30 
31 void initializeSPIRVModuleAnalysisPass(PassRegistry &);
32 void initializeSPIRVPreLegalizerPass(PassRegistry &);
33 void initializeSPIRVEmitIntrinsicsPass(PassRegistry &);
34 } // namespace llvm
35 
36 #endif // LLVM_LIB_TARGET_SPIRV_SPIRV_H
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
SPIRVMCTargetDesc.h
llvm::initializeSPIRVModuleAnalysisPass
void initializeSPIRVModuleAnalysisPass(PassRegistry &)
TargetMachine.h
llvm::createSPIRVPrepareFunctionsPass
ModulePass * createSPIRVPrepareFunctionsPass()
Definition: SPIRVPrepareFunctions.cpp:353
llvm::createSPIRVRegularizerPass
FunctionPass * createSPIRVRegularizerPass()
Definition: SPIRVRegularizer.cpp:259
MachineFunctionPass.h
llvm::initializeSPIRVPreLegalizerPass
void initializeSPIRVPreLegalizerPass(PassRegistry &)
llvm::createSPIRVEmitIntrinsicsPass
FunctionPass * createSPIRVEmitIntrinsicsPass(SPIRVTargetMachine *TM)
Definition: SPIRVEmitIntrinsics.cpp:473
llvm::initializeSPIRVEmitIntrinsicsPass
void initializeSPIRVEmitIntrinsicsPass(PassRegistry &)
llvm::createSPIRVPreLegalizerPass
FunctionPass * createSPIRVPreLegalizerPass()
llvm::createSPIRVInstructionSelector
InstructionSelector * createSPIRVInstructionSelector(const SPIRVTargetMachine &TM, const SPIRVSubtarget &Subtarget, const RegisterBankInfo &RBI)
Definition: SPIRVInstructionSelector.cpp:1533
TM
const char LLVMTargetMachineRef TM
Definition: PassBuilderBindings.cpp:47