Commit 7e5fbe8
committed
[mlir] Fix TableGen emission for ops without properties
The current condition to emit `setPropertiesFromParsedAttr` is not strict enough
since we emit the method even when we do not have properties at all. Similarly
we should not emit `parseProperties` and `printProperties` if we don't have
properties.1 parent 9d0616c commit 7e5fbe8
File tree
3 files changed
+21
-7
lines changed- mlir
- test
- IR
- lib/Dialect/Test
- tools/mlir-tblgen
3 files changed
+21
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3006 | 3006 | | |
3007 | 3007 | | |
3008 | 3008 | | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
| 3012 | + | |
| 3013 | + | |
3009 | 3014 | | |
3010 | 3015 | | |
3011 | 3016 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | | - | |
1279 | | - | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
1280 | 1281 | | |
1281 | 1282 | | |
1282 | 1283 | | |
| |||
1621 | 1622 | | |
1622 | 1623 | | |
1623 | 1624 | | |
1624 | | - | |
1625 | | - | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
1626 | 1629 | | |
1627 | 1630 | | |
1628 | 1631 | | |
| |||
2047 | 2050 | | |
2048 | 2051 | | |
2049 | 2052 | | |
2050 | | - | |
2051 | | - | |
2052 | | - | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
2053 | 2058 | | |
2054 | 2059 | | |
2055 | 2060 | | |
| |||
0 commit comments