MLIR
18.0.0git
|
This class contains all of the context for generating a recovery reproducer. More...
Public Member Functions | |
RecoveryReproducerContext (std::string passPipelineStr, Operation *op, PassManager::ReproducerStreamFactory &streamFactory, bool verifyPasses) | |
~RecoveryReproducerContext () | |
void | generate (std::string &description) |
Generate a reproducer with the current context. More... | |
void | disable () |
Disable this reproducer context. More... | |
void | enable () |
Enable a previously disabled reproducer context. More... | |
This class contains all of the context for generating a recovery reproducer.
Each recovery context is registered globally to allow for generating reproducers when a signal is raised, such as a segfault.
Definition at line 39 of file PassCrashRecovery.cpp.
RecoveryReproducerContext::RecoveryReproducerContext | ( | std::string | passPipelineStr, |
Operation * | op, | ||
PassManager::ReproducerStreamFactory & | streamFactory, | ||
bool | verifyPasses | ||
) |
Definition at line 93 of file PassCrashRecovery.cpp.
RecoveryReproducerContext::~RecoveryReproducerContext | ( | ) |
Definition at line 103 of file PassCrashRecovery.cpp.
References disable(), and mlir::Operation::erase().
void RecoveryReproducerContext::disable | ( | ) |
Disable this reproducer context.
This prevents the context from generating a reproducer in the result of a crash.
Definition at line 136 of file PassCrashRecovery.cpp.
Referenced by ~RecoveryReproducerContext().
void RecoveryReproducerContext::enable | ( | ) |
Enable a previously disabled reproducer context.
Definition at line 143 of file PassCrashRecovery.cpp.
void RecoveryReproducerContext::generate | ( | std::string & | description | ) |
Generate a reproducer with the current context.
Definition at line 109 of file PassCrashRecovery.cpp.
References mlir::Operation::getName(), and mlir::OperationName::getStringRef().
Referenced by mlir::detail::PassCrashReproducerGenerator::finalize().