[Mlir-commits] [mlir] [MLIR][ODS] Add strict property assembly format mode (PR #196269)

Mehdi Amini llvmlistbot at llvm.org
Mon May 11 03:40:35 PDT 2026


================
@@ -55,6 +55,12 @@ class Dialect {
   // dialect declaration.
   code extraClassDeclaration = "";
 
+  // If this dialect should require declarative parsers for property-backed
+  // operations to bind every inherent attribute and property directly in the
+  // custom assembly format, or otherwise cover them with `prop-dict`. This
+  // stricter mode is disabled by default for now.
+  bit useStrictPropertiesInAssemblyFormat = 0;
----------------
joker-eph wrote:

> Yes, on-deprecated and asmformat-error-is-fatal.

These are not similar to me: they don't affect the generated code, while here this is changing the actual resulting C++ for the dialect.

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


More information about the Mlir-commits mailing list