[Mlir-commits] [mlir] [MLIR][ODS] Add strict property assembly format mode (PR #196269)
Mehdi Amini
llvmlistbot at llvm.org
Fri May 8 01:23:17 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 it is controlling the generator, however we have a history of doing so on a per-dialect basis with this kind of option. For example a precent is "usePropertiesForInherentAttributes".
We can manage this as a tblgen command line option if you prefer, but I find it less convenient for people to update Cmake/Bazel than their dialect definition. Also I don't think there is a precedent for this? Any other similar option?
https://github.com/llvm/llvm-project/pull/196269
More information about the Mlir-commits
mailing list