[Mlir-commits] [mlir] [mlir][Transforms] Dialect conversion: Add flag to dump materialization kind (PR #119532)
Mehdi Amini
llvmlistbot at llvm.org
Mon Aug 18 02:20:18 PDT 2025
================
@@ -1300,6 +1300,12 @@ struct ConversionConfig {
/// The folding mode to use during conversion.
DialectConversionFoldingMode foldingMode =
DialectConversionFoldingMode::BeforePatterns;
+
+ /// If set to "true", the materialization kind ("source" or "target") will be
+ /// attached to "builtin.unrealized_conversion_cast" ops. This flag is useful
+ /// for debugging, to find out what kind of materialization rule may be
+ /// missing.
+ bool dumpMaterializationKind = false;
----------------
joker-eph wrote:
```suggestion
bool attachDebugMaterializationKind = false;
```
I would use something else than "dump" because it makes it collide with the "usual" dump behavior which isn't "attach some piece of debug to the IR".
https://github.com/llvm/llvm-project/pull/119532
More information about the Mlir-commits
mailing list