MLIR  19.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 39 of file PassCrashRecovery.cpp.

Constructor & Destructor Documentation

◆ RecoveryReproducerContext()

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

Definition at line 93 of file PassCrashRecovery.cpp.

◆ ~RecoveryReproducerContext()

RecoveryReproducerContext::~RecoveryReproducerContext ( )

Definition at line 103 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 143 of file PassCrashRecovery.cpp.

Referenced by ~RecoveryReproducerContext().

◆ enable()

void RecoveryReproducerContext::enable ( )

Enable a previously disabled reproducer context.

Definition at line 150 of file PassCrashRecovery.cpp.

◆ generate()

void RecoveryReproducerContext::generate ( std::string &  description)

Generate a reproducer with the current context.

Definition at line 138 of file PassCrashRecovery.cpp.

References appendReproducer().

Referenced by mlir::detail::PassCrashReproducerGenerator::finalize().


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