|
MLIR 22.0.0git
|
#include "Pass/PassDetail.h"
Classes | |
| struct | Impl |
Public Member Functions | |
| PassCrashReproducerGenerator (ReproducerStreamFactory &streamFactory, bool localReproducer) | |
| ~PassCrashReproducerGenerator () | |
| void | initialize (iterator_range< PassManager::pass_iterator > passes, Operation *op, bool pmFlagVerifyPasses) |
| Initialize the generator in preparation for reproducer generation. | |
| void | finalize (Operation *rootOp, LogicalResult executionResult) |
| Finalize the current run of the generator, generating any necessary reproducers if the provided execution result is a failure. | |
| void | prepareReproducerFor (Pass *pass, Operation *op) |
| Prepare a new reproducer for the given pass, operating on op. | |
| void | prepareReproducerFor (iterator_range< PassManager::pass_iterator > passes, Operation *op) |
| Prepare a new reproducer for the given passes, operating on op. | |
| void | removeLastReproducerFor (Pass *pass, Operation *op) |
| Remove the last recorded reproducer anchored at the given pass and operation. | |
Definition at line 99 of file PassDetail.h.
| PassCrashReproducerGenerator::PassCrashReproducerGenerator | ( | ReproducerStreamFactory & | streamFactory, |
| bool | localReproducer ) |
Definition at line 204 of file PassCrashRecovery.cpp.
|
default |
Finalize the current run of the generator, generating any necessary reproducers if the provided execution result is a failure.
Definition at line 235 of file PassCrashRecovery.cpp.
References diag(), mlir::emitError(), formatPassOpReproducerMessage(), mlir::detail::RecoveryReproducerContext::generate(), and mlir::Operation::getLoc().
| void PassCrashReproducerGenerator::initialize | ( | iterator_range< PassManager::pass_iterator > | passes, |
| Operation * | op, | ||
| bool | pmFlagVerifyPasses ) |
Initialize the generator in preparation for reproducer generation.
The generator should be reinitialized before each run of the pass manager.
Definition at line 209 of file PassCrashRecovery.cpp.
References mlir::Operation::getContext(), mlir::MLIRContext::isMultithreadingEnabled(), and prepareReproducerFor().
| void PassCrashReproducerGenerator::prepareReproducerFor | ( | iterator_range< PassManager::pass_iterator > | passes, |
| Operation * | op ) |
Prepare a new reproducer for the given passes, operating on op.
Definition at line 323 of file PassCrashRecovery.cpp.
References mlir::Pass::printAsTextualPipeline().
Prepare a new reproducer for the given pass, operating on op.
Definition at line 290 of file PassCrashRecovery.cpp.
References mlir::Operation::getName(), mlir::Operation::getParentOp(), and mlir::Pass::printAsTextualPipeline().
Referenced by initialize().
Remove the last recorded reproducer anchored at the given pass and operation.
Definition at line 334 of file PassCrashRecovery.cpp.