-mlir-print-ir-module-scope option cannot be used without disabling multithread for pass manager. For the usability, we can throw a validation error in mlir-opt instead of assertion failure.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Pass/PassManagerOptions.cpp | ||
---|---|---|
147–148 | The error message doesn't really match the check, "IR printing" is much more general than just module scope. |
Comment Actions
LGTM modulo one comment
mlir/lib/Pass/PassManagerOptions.cpp | ||
---|---|---|
147–148 | I suspect we should print the error through the context so it is emitted as diagnostic instead of using directly llvm::errs(). |
The error message doesn't really match the check, "IR printing" is much more general than just module scope.