Commit 4488f49
Matteo Franciolini
[mlir][bytecode] Add bytecode writer config API to skip serialization of resources (llvm#71991)
When serializing to bytecode, users can select the option to elide
resources from the bytecode file. This will instruct the bytecode writer
to serialize only the key and resource kind, while skipping
serialization of the data buffer. At parsing, the IR is built in memory
with valid (but empty) resource handlers.1 parent 08e8dac commit 4488f49
File tree
5 files changed
+57
-6
lines changed- mlir
- include/mlir
- Bytecode
- Tools/mlir-opt
- lib
- Bytecode/Writer
- Tools/mlir-opt
- test/Bytecode
5 files changed
+57
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
155 | 158 | | |
156 | 159 | | |
157 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| |||
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
188 | 194 | | |
189 | 195 | | |
190 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
92 | 101 | | |
93 | 102 | | |
94 | 103 | | |
| |||
1170 | 1179 | | |
1171 | 1180 | | |
1172 | 1181 | | |
1173 | | - | |
| 1182 | + | |
1174 | 1183 | | |
1175 | | - | |
| 1184 | + | |
1176 | 1185 | | |
1177 | 1186 | | |
1178 | 1187 | | |
1179 | 1188 | | |
1180 | | - | |
| 1189 | + | |
| 1190 | + | |
1181 | 1191 | | |
1182 | 1192 | | |
1183 | 1193 | | |
1184 | | - | |
| 1194 | + | |
| 1195 | + | |
1185 | 1196 | | |
1186 | 1197 | | |
1187 | 1198 | | |
1188 | | - | |
| 1199 | + | |
| 1200 | + | |
1189 | 1201 | | |
1190 | 1202 | | |
1191 | 1203 | | |
1192 | 1204 | | |
1193 | 1205 | | |
1194 | 1206 | | |
1195 | 1207 | | |
| 1208 | + | |
1196 | 1209 | | |
1197 | 1210 | | |
1198 | 1211 | | |
| |||
1225 | 1238 | | |
1226 | 1239 | | |
1227 | 1240 | | |
1228 | | - | |
| 1241 | + | |
| 1242 | + | |
1229 | 1243 | | |
1230 | 1244 | | |
1231 | 1245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
| |||
385 | 390 | | |
386 | 391 | | |
387 | 392 | | |
| 393 | + | |
| 394 | + | |
388 | 395 | | |
389 | 396 | | |
390 | 397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments