MLIR  19.0.0git
Classes | Namespaces | Functions
PassCrashRecovery.cpp File Reference
#include "PassDetail.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/Dialect.h"
#include "mlir/IR/SymbolTable.h"
#include "mlir/IR/Verifier.h"
#include "mlir/Parser/Parser.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Support/FileUtilities.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/CrashRecoveryContext.h"
#include "llvm/Support/Mutex.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/Threading.h"
#include "llvm/Support/ToolOutputFile.h"

Go to the source code of this file.

Classes

struct  mlir::detail::RecoveryReproducerContext
 This class contains all of the context for generating a recovery reproducer. More...
 
struct  mlir::detail::PassCrashReproducerGenerator::Impl
 

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::detail
 Detect if any of the given parameter types has a sub-element handler.
 

Functions

static void appendReproducer (std::string &description, Operation *op, const ReproducerStreamFactory &factory, const std::string &pipelineElements, bool disableThreads, bool verifyPasses)
 
static void formatPassOpReproducerMessage (Diagnostic &os, std::pair< Pass *, Operation * > passOpPair)
 
static ReproducerStreamFactory makeReproducerStreamFactory (StringRef outputFile)
 
void printAsTextualPipeline (raw_ostream &os, StringRef anchorName, const llvm::iterator_range< OpPassManager::pass_iterator > &passes)
 Prints out the passes of the pass manager as the textual representation of pipelines. More...
 

Function Documentation

◆ appendReproducer()

static void appendReproducer ( std::string &  description,
Operation op,
const ReproducerStreamFactory factory,
const std::string &  pipelineElements,
bool  disableThreads,
bool  verifyPasses 
)
static

◆ formatPassOpReproducerMessage()

static void formatPassOpReproducerMessage ( Diagnostic os,
std::pair< Pass *, Operation * >  passOpPair 
)
static

◆ makeReproducerStreamFactory()

static ReproducerStreamFactory makeReproducerStreamFactory ( StringRef  outputFile)
static

◆ printAsTextualPipeline()

void printAsTextualPipeline ( raw_ostream &  os,
StringRef  anchorName,
const llvm::iterator_range< OpPassManager::pass_iterator > &  passes 
)

Prints out the passes of the pass manager as the textual representation of pipelines.

Definition at line 393 of file Pass.cpp.

References mlir::Pass::printAsTextualPipeline().