6
6
//
7
7
// ===----------------------------------------------------------------------===//
8
8
//
9
+ // Note: The 1:N dialect conversion is deprecated and will be removed soon.
10
+ // 1:N support has been added to the regular dialect conversion driver.
11
+ //
9
12
// This file provides utils for implementing (poor-man's) dialect conversion
10
13
// passes with 1:N type conversions.
11
14
//
@@ -119,6 +122,10 @@ class OneToNPatternRewriter : public PatternRewriter {
119
122
// / types must be the same as the result types of the op) and the new values
120
123
// / (i.e., the converted types must be the same as the types of the new
121
124
// / values).
125
+ // / FIXME: The 1:N dialect conversion is deprecated and will be removed soon.
126
+ // / 1:N support has been added to the regular dialect conversion driver.
127
+ LLVM_DEPRECATED (" Use replaceOpWithMultiple() instead" ,
128
+ " replaceOpWithMultiple" )
122
129
void replaceOp (Operation *op, ValueRange newValues,
123
130
const OneToNTypeMapping &resultMapping);
124
131
using PatternRewriter::replaceOp;
@@ -251,6 +258,10 @@ class OneToNOpConversionPattern : public OneToNConversionPattern {
251
258
// / or illegal types; the function simply applies the given patterns and does
252
259
// / not fail if some ops or types remain unconverted (i.e., the conversion is
253
260
// / only "partial").
261
+ // / FIXME: The 1:N dialect conversion is deprecated and will be removed soon.
262
+ // / 1:N support has been added to the regular dialect conversion driver.
263
+ LLVM_DEPRECATED (" Use applyPartialConversion() instead" ,
264
+ " applyPartialConversion" )
254
265
LogicalResult
255
266
applyPartialOneToNConversion(Operation *op, TypeConverter &typeConverter,
256
267
const FrozenRewritePatternSet &patterns);
@@ -259,6 +270,11 @@ applyPartialOneToNConversion(Operation *op, TypeConverter &typeConverter,
259
270
// / FunctionOpInterface op with the given type converter. This only supports
260
271
// / ops which use FunctionType to represent their type. This is intended to be
261
272
// / used with the 1:N dialect conversion.
273
+ // / FIXME: The 1:N dialect conversion is deprecated and will be removed soon.
274
+ // / 1:N support has been added to the regular dialect conversion driver.
275
+ LLVM_DEPRECATED (
276
+ " Use populateFunctionOpInterfaceTypeConversionPattern() instead" ,
277
+ " populateFunctionOpInterfaceTypeConversionPattern" )
262
278
void populateOneToNFunctionOpInterfaceTypeConversionPattern(
263
279
StringRef functionLikeOpName, const TypeConverter &converter,
264
280
RewritePatternSet &patterns);
0 commit comments