MLIR
16.0.0git
|
#include "mlir/Pass/Pass.h"
#include "PassDetail.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/Dialect.h"
#include "mlir/IR/OpDefinition.h"
#include "mlir/IR/Threading.h"
#include "mlir/IR/Verifier.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::OpPassManagerImpl |
struct | mlir::detail::PassInstrumentorImpl |
Namespaces | |
mlir | |
Include the generated interface declarations. | |
mlir::detail | |
Functions | |
static void | printAsTextualPipeline (ArrayRef< std::unique_ptr< Pass >> passes, raw_ostream &os) |
Prints out the given passes as the textual representation of a pipeline. More... | |
static void | registerDialectsForPipeline (const OpPassManager &pm, DialectRegistry &dialects) |
static OpPassManager * | findPassManagerWithAnchor (MutableArrayRef< OpPassManager > mgrs, StringRef name) |
Find an operation pass manager with the given anchor name, or nullptr if one does not exist. More... | |
static OpPassManager * | findPassManagerFor (MutableArrayRef< OpPassManager > mgrs, OperationName name, MLIRContext &context) |
Find an operation pass manager that can operate on an operation of the given type, or nullptr if one does not exist. More... | |
static bool | hasSizeMismatch (ArrayRef< OpPassManager > lhs, ArrayRef< OpPassManager > rhs) |
Utility functor that checks if the two ranges of pass managers have a size mismatch. More... | |
|
static |
Find an operation pass manager that can operate on an operation of the given type, or nullptr if one does not exist.
Definition at line 555 of file Pass.cpp.
References mlir::detail::OpPassManagerImpl::canScheduleOn(), and mlir::OpPassManager::getImpl().
Referenced by mlir::detail::OpToOpPassAdaptor::runOnOperation().
|
static |
Find an operation pass manager with the given anchor name, or nullptr if one does not exist.
Definition at line 547 of file Pass.cpp.
References mlir::OpPassManager::getOpAnchorName().
|
static |
|
static |
Prints out the given passes as the textual representation of a pipeline.
Definition at line 360 of file Pass.cpp.
Referenced by mlir::OpPassManager::getAnyOpAnchorName(), and mlir::Pass::ListOption< DataType, OptionParser >::ListOption().
|
static |
Definition at line 382 of file Pass.cpp.
References mlir::OpPassManager::getPasses().
Referenced by mlir::OpPassManager::getDependentDialects().