[Mlir-commits] [mlir] [mlir][Transforms] Dialect conversion: Add flag to dump materialization kind (PR #119532)

Matthias Springer llvmlistbot at llvm.org
Mon Aug 18 01:51:02 PDT 2025


================
@@ -29,6 +29,12 @@ using namespace mlir::detail;
 
 #define DEBUG_TYPE "dialect-conversion"
 
+/// Debugging flag. If set to "true", the materialization kind is attached as
+/// an attribute to builtin.unrealized_conversion_cast ops. This flag takes
+/// effect only if ConversionConfig::buildMaterialization = false. (Otherwise,
+/// the annotated ops are replaced with materializations.)
+static const bool kDumpMaterializationKind = false;
----------------
matthias-springer wrote:

Changed into a `ConversionConfig` flag. This flag could be useful in downstream projects, where you cannot change this flag easily.

https://github.com/llvm/llvm-project/pull/119532


More information about the Mlir-commits mailing list