[Mlir-commits] [mlir] [mlir][IR] Make `replaceOp` / `replaceAllUsesWith` API consistent (PR #82629)
Matthias Springer
llvmlistbot at llvm.org
Thu Feb 22 07:28:09 PST 2024
================
@@ -1538,19 +1538,6 @@ ConversionPatternRewriter::ConversionPatternRewriter(MLIRContext *ctx)
ConversionPatternRewriter::~ConversionPatternRewriter() = default;
-void ConversionPatternRewriter::replaceOpWithIf(
- Operation *op, ValueRange newValues, bool *allUsesReplaced,
- llvm::unique_function<bool(OpOperand &) const> functor) {
- // TODO: To support this we will need to rework a bit of how replacements are
----------------
matthias-springer wrote:
Note: `replaceAllUsesWith` / `replaceUsesWithIf` is not supported by the dialect conversion either. I have a prototype that adds support for `replaceAllUsesWith`. At that point, I will override `replaceUsesWithIf` in the same way as `replaceOpWithIf` is at the moment (and put an `llvm_unrechable`).
https://github.com/llvm/llvm-project/pull/82629
More information about the Mlir-commits
mailing list