Skip to content

Commit 1933c8b

Browse files
committed
Add deprecation message
1 parent 386eb2d commit 1933c8b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mlir/include/mlir/Transforms/GreedyPatternRewriteDriver.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ applyPatternsGreedily(Region &region, const FrozenRewritePatternSet &patterns,
129129
GreedyRewriteConfig config = GreedyRewriteConfig(),
130130
bool *changed = nullptr);
131131
/// Same as `applyPatternsAndGreedily` above with folding.
132+
/// FIXME: Remove this once transition to above is complieted.
133+
LLVM_DEPRECATED("Use applyPatternsGreedily() instead", "applyPatternsGreedily")
132134
inline LogicalResult
133135
applyPatternsAndFoldGreedily(Region &region,
134136
const FrozenRewritePatternSet &patterns,
@@ -179,6 +181,8 @@ applyPatternsGreedily(Operation *op, const FrozenRewritePatternSet &patterns,
179181
return failure(failed);
180182
}
181183
/// Same as `applyPatternsGreedily` above with folding.
184+
/// FIXME: Remove this once transition to above is complieted.
185+
LLVM_DEPRECATED("Use applyPatternsGreedily() instead", "applyPatternsGreedily")
182186
inline LogicalResult
183187
applyPatternsAndFoldGreedily(Operation *op,
184188
const FrozenRewritePatternSet &patterns,
@@ -222,6 +226,8 @@ applyOpPatternsGreedily(ArrayRef<Operation *> ops,
222226
GreedyRewriteConfig config = GreedyRewriteConfig(),
223227
bool *changed = nullptr, bool *allErased = nullptr);
224228
/// Same as `applyOpPatternsGreedily` with folding.
229+
/// FIXME: Remove this once transition to above is complieted.
230+
LLVM_DEPRECATED("Use applyPatternsGreedily() instead", "applyPatternsGreedily")
225231
inline LogicalResult
226232
applyOpPatternsAndFold(ArrayRef<Operation *> ops,
227233
const FrozenRewritePatternSet &patterns,

0 commit comments

Comments
 (0)