[all-commits] [llvm/llvm-project] 83c135: [mlir] Dialect conversion: Print note when replace...

Matthias Springer via All-commits all-commits at lists.llvm.org
Fri Oct 3 07:39:22 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 83c135cad3bec97947e1635b6d8de9ec883041dd
      https://github.com/llvm/llvm-project/commit/83c135cad3bec97947e1635b6d8de9ec883041dd
  Author: Matthias Springer <me at m-sp.org>
  Date:   2025-10-03 (Fri, 03 Oct 2025)

  Changed paths:
    M mlir/lib/Transforms/Utils/DialectConversion.cpp

  Log Message:
  -----------
  [mlir] Dialect conversion: Print note when replacement types do not match legalized types (#161802)

When running with `-debug`, print a note when the replacement types
(during a `ConversionPatternRewriter::replaceOp`) do not match the
legalized types of the current type converter. That's not an API
violation, but it could indicate a bug in user code.

Example output:
```
[dialect-conversion:1]     ** Replace : 'test.multiple_1_to_n_replacement'(0x56b745f99470)
[dialect-conversion:1]        Note: Replacing op result of type f16 with value(s) of type (f16, f16), but the legalized type(s) is/are (f16)
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list