My Project
|
#include <Pass.h>
Classes | |
struct | ListOption |
struct | Option |
This class represents a specific pass option, with a provided data type. More... | |
class | Statistic |
Public Member Functions | |
virtual | ~Pass ()=default |
const PassID * | getPassID () const |
Returns the unique identifier that corresponds to this pass. More... | |
const PassInfo * | lookupPassInfo () const |
Returns the pass info for this pass. More... | |
virtual StringRef | getName ()=0 |
Returns the derived pass name. More... | |
Optional< StringRef > | getOpName () const |
LogicalResult | initializeOptions (StringRef options) |
Attempt to initialize the options of this pass from the given string. More... | |
void | printAsTextualPipeline (raw_ostream &os) |
ArrayRef< Statistic * > | getStatistics () const |
Returns the main statistics for this pass instance. More... | |
MutableArrayRef< Statistic * > | getStatistics () |
Static Public Member Functions | |
static const PassInfo * | lookupPassInfo (const PassID *passID) |
Returns the pass info for the specified pass class or null if unknown. More... | |
template<typename PassT > | |
static const PassInfo * | lookupPassInfo () |
Protected Member Functions | |
Pass (const PassID *passID, Optional< StringRef > opName=llvm::None) | |
detail::PassExecutionState & | getPassState () |
Returns the current pass state. More... | |
MLIRContext & | getContext () |
Return the MLIR context for the current function being transformed. More... | |
virtual void | runOnOperation ()=0 |
The polymorphic API that runs the pass over the currently held operation. More... | |
virtual std::unique_ptr< Pass > | clone () const =0 |
A clone method to create a copy of this pass. More... | |
Operation * | getOperation () |
Return the current operation being transformed. More... | |
AnalysisManager | getAnalysisManager () |
Returns the current analysis manager. More... | |
void | copyOptionValuesFrom (const Pass *other) |
Friends | |
class | OpPassManager |
Allow access to 'clone' and 'run'. More... | |
The abstract base pass class. This class contains information describing the derived pass object, e.g its kind and abstract PassInfo.
|
virtualdefault |
|
inlineexplicitprotected |
|
protectedpure virtual |
A clone method to create a copy of this pass.
Implemented in mlir::detail::PassModel< T, OpPassBase< FuncOp > >, mlir::detail::PassModel< VerifierPass, OpPassBase< void > >, mlir::detail::PassModel< T, OpPassBase< ModuleOp > >, mlir::detail::PassModel< PassT, Pass >, mlir::detail::PassModel< OpToOpPassAdaptor, OpPassBase< void > >, mlir::detail::PassModel< OpToOpPassAdaptorParallel, OpPassBase< void > >, and mlir::detail::PassModel< PassT, OpPassBase< OpT > >.
|
protected |
Copy the option values from 'other', which is another instance of this pass.
|
inlineprotected |
Returns the current analysis manager.
|
inlineprotected |
Return the MLIR context for the current function being transformed.
|
pure virtual |
Returns the derived pass name.
Implemented in mlir::detail::PassModel< T, OpPassBase< FuncOp > >, mlir::detail::PassModel< VerifierPass, OpPassBase< void > >, mlir::detail::PassModel< T, OpPassBase< ModuleOp > >, mlir::detail::PassModel< PassT, Pass >, mlir::detail::PassModel< OpToOpPassAdaptor, OpPassBase< void > >, mlir::detail::PassModel< OpToOpPassAdaptorParallel, OpPassBase< void > >, and mlir::detail::PassModel< PassT, OpPassBase< OpT > >.
|
inlineprotected |
Return the current operation being transformed.
|
inline |
Returns the name of the operation that this pass operates on, or None if this is a generic OperationPass.
|
inline |
Returns the unique identifier that corresponds to this pass.
|
inlineprotected |
Returns the current pass state.
Returns the main statistics for this pass instance.
|
inline |
LogicalResult Pass::initializeOptions | ( | StringRef | options | ) |
Attempt to initialize the options of this pass from the given string.
Returns the pass info for the specified pass class or null if unknown.
|
inlinestatic |
|
inline |
Returns the pass info for this pass.
void Pass::printAsTextualPipeline | ( | raw_ostream & | os | ) |
Prints out the pass in the textual representation of pipelines. If this is an adaptor pass, print with the op_name(sub_pass,...) format.
|
protectedpure virtual |
The polymorphic API that runs the pass over the currently held operation.
Implemented in mlir::ModulePass< T >, mlir::FunctionPass< T >, mlir::detail::OpToOpPassAdaptorParallel, and mlir::detail::OpToOpPassAdaptor.
|
friend |
Allow access to 'clone' and 'run'.