Commit 44b3cf4
authored
add prop-dict support for custom directive for mlir-tblgen (#77061)
According to
https://mlir.llvm.org/docs/DefiningDialects/Operations/#custom-directives,
custom directive supports attr-dict
> attr-dict Directive: NamedAttrList &
But it doesn't support prop-dict which is introduced into MLIR recently.
It's useful to have tblgen support prop-dict like attr-dict. This PR
enable tblgen to support prop-dict
```bash
error: only variables and types may be used as parameters to a custom directive
... custom<Print>(prop-dict)
```
Co-authored-by: Fung Xie <[email protected]>1 parent 567941b commit 44b3cf4
File tree
3 files changed
+19
-3
lines changed- mlir
- test/mlir-tblgen
- tools/mlir-tblgen
3 files changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
45 | 53 | | |
46 | 54 | | |
47 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
| 898 | + | |
| 899 | + | |
898 | 900 | | |
899 | 901 | | |
900 | 902 | | |
| |||
1854 | 1856 | | |
1855 | 1857 | | |
1856 | 1858 | | |
| 1859 | + | |
| 1860 | + | |
| 1861 | + | |
1857 | 1862 | | |
1858 | 1863 | | |
1859 | 1864 | | |
| |||
3138 | 3143 | | |
3139 | 3144 | | |
3140 | 3145 | | |
3141 | | - | |
3142 | | - | |
3143 | | - | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
3144 | 3149 | | |
3145 | 3150 | | |
3146 | 3151 | | |
| |||
0 commit comments