Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MLIR][ODS] Check hasProperties when generating populateDefaultAttrs (l…
…lvm#78525) Currently ODS generates `populateDefaultAttrs` or `populateDefaultProperties` based on whether the dialect opted into usePropertiesForAttributes. But since individual ops might get opted into using properties (as long as it has one property), it should actually just check whether the op itself uses properties. Otherwise `populateDefaultAttrs` will overwrite existing attrs inside properties when creating an op. Understandably this becomes moot once everything switches over to using properties, but this fixes it for now. This PR makes ODS generate `populateDefaultProperties` as long as the op itself uses properties.
- Loading branch information