MLIR  20.0.0git
Public Member Functions | List of all members
mlir::detail::RecoveryReproducerContext Struct Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RecoveryReproducerContext()

RecoveryReproducerContext::RecoveryReproducerContext ( std::string  passPipelineStr,
Operation op,
ReproducerStreamFactory streamFactory,
bool  verifyPasses 
)

Definition at line 94 of file PassCrashRecovery.cpp.

References enable().

◆ ~RecoveryReproducerContext()

RecoveryReproducerContext::~RecoveryReproducerContext ( )

Definition at line 104 of file PassCrashRecovery.cpp.

References disable(), and mlir::Operation::erase().

Member Function Documentation

◆ disable()

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().

◆ enable()

void RecoveryReproducerContext::enable ( )

Enable a previously disabled reproducer context.

Definition at line 151 of file PassCrashRecovery.cpp.

Referenced by RecoveryReproducerContext().

◆ generate()

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().


The documentation for this struct was generated from the following file: