[Mlir-commits] [mlir] [mlir][Pass] Enable the option for reproducer generation without crashing (PR #75421)
Puyan Lotfi
llvmlistbot at llvm.org
Thu Dec 21 01:16:20 PST 2023
plotfi wrote:
> > @joker-eph Ah, do you mean then to invoke something like RecoveryReproducerContext::generate() from the runtime?
>
> Yes exactly!
>
> If we need to extract the implementation of `RecoveryReproducerContext::generate()` as a more easily reusable API, that's an OK refactoring of course.
Work in progress, but I have refactored the bits that append the reproducer info without having to do it from inside of the pass manager. The reproducers can be appended like so:
```
for (auto &pass : pm.getPasses())
makeReproducer(&pass, op.get(), "reproducer.mlir");
```
https://github.com/llvm/llvm-project/pull/75421
More information about the Mlir-commits
mailing list