[Mlir-commits] [mlir] [mlir][memref] Enforce consistent reinterpret_cast metadata (PR #217338)

ioana ghiban llvmlistbot at llvm.org
Wed Sep 2 09:09:49 PDT 2026


================
@@ -2108,15 +2093,18 @@ LogicalResult ReinterpretCastOp::verify() {
                                      "result")))
     return failure();
 
+  auto printDynamicOrValue = [](int64_t value) {
+    return ShapedType::isDynamic(value) ? std::string("dynamic")
+                                        : std::to_string(value);
+  };
----------------
ioghiban wrote:

Thank you for the suggestion! I streamed the dynamic markers and integer values directly into diagnostics instead of materialising `std::string` objects. PTAL.

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


More information about the Mlir-commits mailing list