MLIR
20.0.0git
|
A SuccessNode denotes that a given high level pattern has successfully been matched. More...
#include "Conversion/PDLToPDLInterp/PredicateTree.h"
Public Member Functions | |
SuccessNode (pdl::PatternOp pattern, Value root, std::unique_ptr< MatcherNode > failureNode) | |
pdl::PatternOp | getPattern () const |
Return the high level pattern operation that is matched with this node. More... | |
Value | getRoot () const |
Return the chosen root of the pattern. More... | |
Public Member Functions inherited from mlir::pdl_to_pdl_interp::MatcherNode | |
virtual | ~MatcherNode ()=default |
Position * | getPosition () const |
Returns the position on which the question predicate should be checked. More... | |
Qualifier * | getQuestion () const |
Returns the predicate checked on this node. More... | |
std::unique_ptr< MatcherNode > & | getFailureNode () |
Returns the node that should be visited if this, or a subsequent node fails. More... | |
void | setFailureNode (std::unique_ptr< MatcherNode > node) |
Sets the node that should be visited if this, or a subsequent node fails. More... | |
TypeID | getMatcherTypeID () const |
Returns the unique type ID of this matcher instance. More... | |
Static Public Member Functions | |
static bool | classof (const MatcherNode *node) |
Returns if the given matcher node is an instance of this class, used to support type casting. More... | |
Static Public Member Functions inherited from mlir::pdl_to_pdl_interp::MatcherNode | |
static std::unique_ptr< MatcherNode > | generateMatcherTree (ModuleOp module, PredicateBuilder &builder, DenseMap< Value, Position * > &valueToPosition) |
Given a module containing PDL pattern operations, generate a matcher tree using the patterns within the given module and return the root matcher node. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from mlir::pdl_to_pdl_interp::MatcherNode | |
MatcherNode (TypeID matcherTypeID, Position *position=nullptr, Qualifier *question=nullptr, std::unique_ptr< MatcherNode > failureNode=nullptr) | |
A SuccessNode denotes that a given high level pattern has successfully been matched.
This does not terminate the matcher, as there may be multiple successful matches.
Definition at line 154 of file PredicateTree.h.
|
explicit |
Definition at line 1060 of file PredicateTree.cpp.
|
inlinestatic |
Returns if the given matcher node is an instance of this class, used to support type casting.
Definition at line 160 of file PredicateTree.h.
References mlir::pdl_to_pdl_interp::MatcherNode::getMatcherTypeID().
|
inline |
Return the high level pattern operation that is matched with this node.
Definition at line 165 of file PredicateTree.h.
|
inline |
Return the chosen root of the pattern.
Definition at line 168 of file PredicateTree.h.