MLIR  20.0.0git
ArithToSPIRV.h
Go to the documentation of this file.
1 //===- ArithToSPIRV.h - Convert Arith to SPIRV dialect -----*- 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_ARITHTOSPIRV_ARITHTOSPIRV_H
10 #define MLIR_CONVERSION_ARITHTOSPIRV_ARITHTOSPIRV_H
11 
12 #include "mlir/Pass/Pass.h"
13 #include <memory>
14 
15 namespace mlir {
16 
17 class SPIRVTypeConverter;
18 class RewritePatternSet;
19 class Pass;
20 
21 #define GEN_PASS_DECL_CONVERTARITHTOSPIRV
22 #include "mlir/Conversion/Passes.h.inc"
23 
24 namespace arith {
25 void populateArithToSPIRVPatterns(const SPIRVTypeConverter &typeConverter,
26  RewritePatternSet &patterns);
27 
28 std::unique_ptr<OperationPass<>> createConvertArithToSPIRVPass();
29 } // namespace arith
30 } // namespace mlir
31 
32 #endif // MLIR_CONVERSION_ARITHTOSPIRV_ARITHTOSPIRV_H
void populateArithToSPIRVPatterns(const SPIRVTypeConverter &typeConverter, RewritePatternSet &patterns)
std::unique_ptr< OperationPass<> > createConvertArithToSPIRVPass()
Include the generated interface declarations.