llvm-project
e8785839 - [MLIR][ODS] Add strict property assembly format mode

Commit
29 days ago
[MLIR][ODS] Add strict property assembly format mode Introduce a dialect-level ODS flag for strict property handling in declarative assembly formats. It is disabled by default for now, preserving existing parser behavior unless a dialect opts in. Enable the mode immediately for dialects whose declarative assembly formats already satisfy these binding rules. When enabled, a property-backed op format must bind every inherent attribute and property directly or include prop-dict. Generated parsers for opted-in dialects also reject inherent attributes that arrive through attr-dict, preventing Operation::setAttrs from populating properties through that path. Add mlir-tblgen coverage and document default and strict dialect behavior. Assisted-by: Codex
Author
Parents
Loading