My Project
|
#include <PassManager.h>
Public Types | |
using | pass_iterator = llvm::pointee_iterator< std::vector< std::unique_ptr< Pass > >::iterator > |
Iterator over the passes in this pass manager. More... | |
Public Member Functions | |
OpPassManager (OpPassManager &&rhs) | |
OpPassManager (const OpPassManager &rhs) | |
~OpPassManager () | |
OpPassManager & | operator= (const OpPassManager &rhs) |
pass_iterator | begin () |
pass_iterator | end () |
iterator_range< pass_iterator > | getPasses () |
LogicalResult | run (Operation *op, AnalysisManager am) |
Run the held passes over the given operation. More... | |
OpPassManager & | nest (const OperationName &nestedName) |
OpPassManager & | nest (StringRef nestedName) |
template<typename OpT > | |
OpPassManager & | nest () |
void | addPass (std::unique_ptr< Pass > pass) |
template<typename OpT > | |
void | addNestedPass (std::unique_ptr< Pass > pass) |
size_t | size () const |
Returns the number of passes held by this manager. More... | |
MLIRContext * | getContext () const |
Return an instance of the context. More... | |
const OperationName & | getOpName () const |
Return the operation name that this pass manager operates on. More... | |
detail::OpPassManagerImpl & | getImpl () |
Returns the internal implementation instance. More... | |
void | printAsTextualPipeline (raw_ostream &os) |
void | mergeStatisticsInto (OpPassManager &other) |
Merge the pass statistics of this class into 'other'. More... | |
Friends | |
class | PassManager |
Allow access to the constructor. More... | |
This class represents a pass manager that runs passes on a specific operation type. This class is not constructed directly, but nested within other OpPassManagers or the top-level PassManager.
using mlir::OpPassManager::pass_iterator = llvm::pointee_iterator<std::vector<std::unique_ptr<Pass> >::iterator> |
Iterator over the passes in this pass manager.
OpPassManager::OpPassManager | ( | OpPassManager && | rhs | ) |
OpPassManager::OpPassManager | ( | const OpPassManager & | rhs | ) |
OpPassManager::~OpPassManager | ( | ) |
|
inline |
Add the given pass to a nested pass manager for the given operation kind OpT
.
void OpPassManager::addPass | ( | std::unique_ptr< Pass > | pass | ) |
Add the given pass to this pass manager. If this pass has a concrete operation type, it must be the same type as this pass manager.
OpPassManager::pass_iterator OpPassManager::begin | ( | ) |
OpPassManager::pass_iterator OpPassManager::end | ( | ) |
MLIRContext * OpPassManager::getContext | ( | ) | const |
Return an instance of the context.
OpPassManagerImpl & OpPassManager::getImpl | ( | ) |
Returns the internal implementation instance.
const OperationName & OpPassManager::getOpName | ( | ) | const |
Return the operation name that this pass manager operates on.
|
inline |
void OpPassManager::mergeStatisticsInto | ( | OpPassManager & | other | ) |
Merge the pass statistics of this class into 'other'.
OpPassManager & OpPassManager::nest | ( | const OperationName & | nestedName | ) |
Nest a new operation pass manager for the given operation kind under this pass manager.
Create an adaptor for this pass. If multi-threading is disabled, then create a synchronous adaptor.
OpPassManager & OpPassManager::nest | ( | StringRef | nestedName | ) |
|
inline |
OpPassManager & OpPassManager::operator= | ( | const OpPassManager & | rhs | ) |
void OpPassManager::printAsTextualPipeline | ( | raw_ostream & | os | ) |
Prints out the passes of the pass manager as the textual representation of pipelines. Note: The quality of the string representation depends entirely on the the correctness of per-pass overrides of Pass::printAsTextualPipeline.
Prints out the passes of the pass manager as the textual representation of pipelines.
LogicalResult OpPassManager::run | ( | Operation * | op, |
AnalysisManager | am | ||
) |
Run the held passes over the given operation.
Run all of the passes in this manager over the current operation.
size_t OpPassManager::size | ( | ) | const |
Returns the number of passes held by this manager.
|
friend |
Allow access to the constructor.