MLIR  20.0.0git
OneToNFuncConversions.h
Go to the documentation of this file.
1 //===- OneToNTypeFuncConversions.h - 1:N type conv. for Func ----*- C++ -*-===//
2 //
3 // Licensed 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_DIALECT_FUNC_TRANSFORMS_ONETONTYPEFUNCCONVERSIONS_H
10 #define MLIR_DIALECT_FUNC_TRANSFORMS_ONETONTYPEFUNCCONVERSIONS_H
11 
12 namespace mlir {
13 class TypeConverter;
14 class RewritePatternSet;
15 } // namespace mlir
16 
17 namespace mlir {
18 
19 // Populates the provided pattern set with patterns that do 1:N type conversions
20 // on func ops. This is intended to be used with `applyPartialOneToNConversion`.
21 void populateFuncTypeConversionPatterns(const TypeConverter &typeConverter,
22  RewritePatternSet &patterns);
23 
24 } // namespace mlir
25 
26 #endif // MLIR_DIALECT_FUNC_TRANSFORMS_ONETONTYPEFUNCCONVERSIONS_H
Include the generated interface declarations.
void populateFuncTypeConversionPatterns(const TypeConverter &typeConverter, RewritePatternSet &patterns)
const FrozenRewritePatternSet & patterns