MLIR  20.0.0git
ControlFlowToSPIRVPass.h
Go to the documentation of this file.
1 //===- ControlFlowToSPIRVPass.h - ControlFLow to SPIR-V Passes --*- 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 // Provides passes to convert ControlFlow dialect to SPIR-V dialect.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_CONVERSION_CONTROLFLOWTOSPIRV_CONTROLFLOWTOSPIRVPASS_H
14 #define MLIR_CONVERSION_CONTROLFLOWTOSPIRV_CONTROLFLOWTOSPIRVPASS_H
15 
16 #include "mlir/Pass/Pass.h"
17 
18 namespace mlir {
19 class ModuleOp;
20 
21 #define GEN_PASS_DECL_CONVERTCONTROLFLOWTOSPIRV
22 #include "mlir/Conversion/Passes.h.inc"
23 
24 /// Creates a pass to convert ControlFlow ops to SPIR-V ops.
25 std::unique_ptr<OperationPass<>> createConvertControlFlowToSPIRVPass();
26 
27 } // namespace mlir
28 
29 #endif // MLIR_CONVERSION_CONTROLFLOWTOSPIRV_CONTROLFLOWTOSPIRVPASS_H
Include the generated interface declarations.
std::unique_ptr< OperationPass<> > createConvertControlFlowToSPIRVPass()
Creates a pass to convert ControlFlow ops to SPIR-V ops.