diff options
author | Puyan Lotfi <34139736+plotfi@users.noreply.github.com> | 2024-01-03 12:36:43 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 12:36:43 -0500 |
commit | 03e29a49d9827532499234e3e460e2b5b29a11a7 (patch) | |
tree | 0a369ea8500bf1a641857f3c702e888046126de3 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 76cb0bb7a4540ca7f09b779cc9c3f8694a1ebbd4 (diff) | |
download | llvm-03e29a49d9827532499234e3e460e2b5b29a11a7.zip llvm-03e29a49d9827532499234e3e460e2b5b29a11a7.tar.gz llvm-03e29a49d9827532499234e3e460e2b5b29a11a7.tar.bz2 |
[mlir][Pass] Enable the option for reproducer generation without crashing (#75421)
This PR adds API `makeReproducer` and cl::opt flag
`--mlir-generate-reproducer=<filename>` in order to allow for mlir
reproducer dumps even when the pipeline doesn't crash.
This PR also decouples the code that handles generation of an MLIR
reproducer from the crash recovery portion. The purpose is to allow for
generating reproducers outside of the context of a compiler crash.
This will be useful for frameworks and runtimes that use MLIR where it
is needed to reproduce the pipeline behavior for reasons outside of
diagnosing crashes. An example is for diagnosing performance issues
using offline tools, where being able to dump the reproducer from a
runtime compiler would be helpful.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions