Krzysztof Drewniak f3e55944a9
[mlir][ODS] Switch declarative rewrite rules to properties structs (#124876)
Now that we have collective builders that take
`const [RelevantOp]::Properties &` arguments, we don't need to serialize
all the attributes that'll be set during an output pattern into a
dictionary attribute. Similarly, we can use the properties struct to get
the attributes instead of needing to go through the big if statement in
getAttrOfType<>().

This also enables us to have declarative rewrite rules that match
non-attribute properties in a future PR.

This commit also adds a basic test for the generated matchers since
there didn't seem to already be one.
2025-03-11 10:21:33 -05:00
..