Commit 0d8cc61
committed
[MLIR][mlir-opt] Add option to turn off verifier on parsing
The MLIR developer guide advocates only verifying local aspects
of an operation (see
https://mlir.llvm.org/getting_started/DeveloperGuide/#ir-verifier).
This likely implies that verifiers should be fast.
Sometimes, however, a developer may not wish to wait
for the verifier (imagine they did not follow the verifier
guidelines and chased use-def chains), or may wish to disable it.
Indeed, mlir-opt already contains the `--verify-each` flag which
turns off the verifier in passes, but not in parsing.
Add a command-line option,
`--mlir-very-unsafe-disable-verifier-on-parsing`, which
similarly turns off the verifier on parsing.1 parent 95b680e commit 0d8cc61
File tree
2 files changed
+17
-2
lines changed- mlir
- include/mlir/Tools/mlir-opt
- lib/Tools/mlir-opt
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
186 | 193 | | |
187 | 194 | | |
188 | 195 | | |
| |||
252 | 259 | | |
253 | 260 | | |
254 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
255 | 265 | | |
256 | 266 | | |
257 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
162 | 167 | | |
163 | 168 | | |
164 | 169 | | |
| |||
310 | 315 | | |
311 | 316 | | |
312 | 317 | | |
313 | | - | |
| 318 | + | |
314 | 319 | | |
315 | 320 | | |
316 | 321 | | |
| |||
377 | 382 | | |
378 | 383 | | |
379 | 384 | | |
380 | | - | |
| 385 | + | |
381 | 386 | | |
382 | 387 | | |
383 | 388 | | |
| |||
0 commit comments