MLIR  20.0.0git
IndexToSPIRV.h
Go to the documentation of this file.
1 //===- IndexToSPIRV.h - Index to SPIRV dialect conversion -------*- 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 MLIR_CONVERSION_INDEXTOSPIRV_INDEXTOSPIRV_H
10 #define MLIR_CONVERSION_INDEXTOSPIRV_INDEXTOSPIRV_H
11 
12 #include "mlir/Pass/Pass.h"
13 #include <memory>
14 
15 namespace mlir {
16 class RewritePatternSet;
17 class SPIRVTypeConverter;
18 class Pass;
19 
20 #define GEN_PASS_DECL_CONVERTINDEXTOSPIRVPASS
21 #include "mlir/Conversion/Passes.h.inc"
22 
23 namespace index {
24 void populateIndexToSPIRVPatterns(const SPIRVTypeConverter &converter,
25  RewritePatternSet &patterns);
26 std::unique_ptr<OperationPass<>> createConvertIndexToSPIRVPass();
27 } // namespace index
28 } // namespace mlir
29 
30 #endif // MLIR_CONVERSION_INDEXTOSPIRV_INDEXTOSPIRV_H
std::unique_ptr< OperationPass<> > createConvertIndexToSPIRVPass()
void populateIndexToSPIRVPatterns(const SPIRVTypeConverter &converter, RewritePatternSet &patterns)
Include the generated interface declarations.