Commit 4538a15
committed
[mlir][tosa] Add specification versioning to target environment
This commit adds a new "specification_version" field to the TOSA
target environment attribute. This allows a user to specify which
version of the TOSA specification they would like to target during
lowering.
A leading example in the validation pass has also been added. This
addition adds a version to each profile compliance entry to track
which version of the specification the entry was added. This allows
a backwards compatibility check to be implemented between the target
version and the profile compliance entry version.
For now a default version of "1.0" is assumed. "1.1.draft" is added
to denote an in-development version of the specification targeting
the next release.
Change-Id: I6549e05bd4fe975d12ea31e8acc783233db661711 parent 16ad97e commit 4538a15
File tree
11 files changed
+835
-487
lines changed- mlir
- include/mlir/Dialect/Tosa
- IR
- Transforms
- lib/Dialect/Tosa
- IR
- Transforms
- test/Dialect/Tosa
11 files changed
+835
-487
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
53 | 88 | | |
54 | 89 | | |
55 | 90 | | |
56 | 91 | | |
57 | 92 | | |
58 | 93 | | |
59 | | - | |
| 94 | + | |
| 95 | + | |
60 | 96 | | |
61 | | - | |
| 97 | + | |
62 | 98 | | |
63 | 99 | | |
64 | 100 | | |
65 | 101 | | |
66 | 102 | | |
67 | | - | |
68 | | - | |
| 103 | + | |
| 104 | + | |
69 | 105 | | |
70 | 106 | | |
71 | 107 | | |
72 | 108 | | |
73 | | - | |
74 | | - | |
| 109 | + | |
75 | 110 | | |
76 | 111 | | |
77 | 112 | | |
| |||
105 | 140 | | |
106 | 141 | | |
107 | 142 | | |
| 143 | + | |
108 | 144 | | |
109 | 145 | | |
110 | 146 | | |
| |||
0 commit comments