MLIR
18.0.0git
|
#include "Pass/PassDetail.h"
Classes | |
struct | Impl |
Public Member Functions | |
PassCrashReproducerGenerator (PassManager::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. More... | |
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. More... | |
void | prepareReproducerFor (Pass *pass, Operation *op) |
Prepare a new reproducer for the given pass, operating on op . More... | |
void | prepareReproducerFor (iterator_range< PassManager::pass_iterator > passes, Operation *op) |
Prepare a new reproducer for the given passes, operating on op . More... | |
void | removeLastReproducerFor (Pass *pass, Operation *op) |
Remove the last recorded reproducer anchored at the given pass and operation. More... | |
Definition at line 119 of file PassDetail.h.
PassCrashReproducerGenerator::PassCrashReproducerGenerator | ( | PassManager::ReproducerStreamFactory & | streamFactory, |
bool | localReproducer | ||
) |
Definition at line 200 of file PassCrashRecovery.cpp.
|
default |
void PassCrashReproducerGenerator::finalize | ( | Operation * | rootOp, |
LogicalResult | executionResult | ||
) |
Finalize the current run of the generator, generating any necessary reproducers if the provided execution result is a failure.
Definition at line 231 of file PassCrashRecovery.cpp.
References diag(), mlir::emitError(), formatPassOpReproducerMessage(), mlir::detail::RecoveryReproducerContext::generate(), mlir::Operation::getLoc(), and mlir::succeeded().
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 205 of file PassCrashRecovery.cpp.
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 319 of file PassCrashRecovery.cpp.
Prepare a new reproducer for the given pass, operating on op
.
Definition at line 286 of file PassCrashRecovery.cpp.
Remove the last recorded reproducer anchored at the given pass and operation.
Definition at line 330 of file PassCrashRecovery.cpp.