MLIR
20.0.0git
|
This class contains all of the context for generating a recovery reproducer. More...
Public Member Functions | |
RecoveryReproducerContext (std::string passPipelineStr, Operation *op, 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 40 of file PassCrashRecovery.cpp.
RecoveryReproducerContext::RecoveryReproducerContext | ( | std::string | passPipelineStr, |
Operation * | op, | ||
ReproducerStreamFactory & | streamFactory, | ||
bool | verifyPasses | ||
) |
Definition at line 94 of file PassCrashRecovery.cpp.
References enable().
RecoveryReproducerContext::~RecoveryReproducerContext | ( | ) |
Definition at line 104 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 144 of file PassCrashRecovery.cpp.
Referenced by ~RecoveryReproducerContext().
void RecoveryReproducerContext::enable | ( | ) |
Enable a previously disabled reproducer context.
Definition at line 151 of file PassCrashRecovery.cpp.
Referenced by RecoveryReproducerContext().
void RecoveryReproducerContext::generate | ( | std::string & | description | ) |
Generate a reproducer with the current context.
Definition at line 139 of file PassCrashRecovery.cpp.
References appendReproducer().
Referenced by mlir::detail::PassCrashReproducerGenerator::finalize().