[Mlir-commits] [mlir] [mlir][ods] Enable basic string interpolation in constraint summary. (PR #153603)

Jacques Pienaar llvmlistbot at llvm.org
Thu Nov 6 14:48:41 PST 2025


================
@@ -16,7 +16,7 @@ def AType : Type<ATypePred, "a type">;
 def OtherType : Type<ATypePred, "another type">;
 
 def AnAttrPred : CPred<"attrPred($_self, $_op)">;
-def AnAttr : Attr<AnAttrPred, "an attribute">;
+def AnAttr : Attr<AnAttrPred, "an attribute (got {{reformat($_self)}})">;
----------------
jpienaar wrote:

The tests here show that (both forms are used and CHECK'd in the constraints file), but I think you also wanted to see an interpolation one for both kinds. Added and removed the unit test.

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


More information about the Mlir-commits mailing list