MLIR  19.0.0git
Public Member Functions | Friends | List of all members
mlir::tblgen::DagNode Class Reference

#include "mlir/TableGen/Pattern.h"

Public Member Functions

 DagNode (const llvm::DagInit *node)
 
 operator bool () const
 
StringRef getSymbol () const
 
OperatorgetDialectOp (RecordOperatorMap *mapper) const
 
int getNumOps () const
 
int getNumArgs () const
 
bool isNestedDagArg (unsigned index) const
 
DagNode getArgAsNestedDag (unsigned index) const
 
DagLeaf getArgAsLeaf (unsigned index) const
 
StringRef getArgName (unsigned index) const
 
bool isReplaceWithValue () const
 
bool isLocationDirective () const
 
bool isReturnTypeDirective () const
 
bool isNativeCodeCall () const
 
bool isEither () const
 
bool isVariadic () const
 
bool isOperation () const
 
StringRef getNativeCodeTemplate () const
 
int getNumReturnsOfNativeCode () const
 
void print (raw_ostream &os) const
 

Friends

class SymbolInfoMap
 

Detailed Description

Definition at line 141 of file Pattern.h.

Constructor & Destructor Documentation

◆ DagNode()

mlir::tblgen::DagNode::DagNode ( const llvm::DagInit *  node)
inlineexplicit

Definition at line 143 of file Pattern.h.

Referenced by getArgAsNestedDag().

Member Function Documentation

◆ getArgAsLeaf()

DagLeaf DagNode::getArgAsLeaf ( unsigned  index) const

Definition at line 168 of file Pattern.cpp.

References isNestedDagArg().

Referenced by mlir::tblgen::Pattern::collectBoundSymbols().

◆ getArgAsNestedDag()

DagNode DagNode::getArgAsNestedDag ( unsigned  index) const

Definition at line 164 of file Pattern.cpp.

References DagNode().

Referenced by mlir::tblgen::Pattern::collectBoundSymbols(), and getNumOps().

◆ getArgName()

StringRef DagNode::getArgName ( unsigned  index) const

Definition at line 173 of file Pattern.cpp.

Referenced by mlir::tblgen::Pattern::collectBoundSymbols().

◆ getDialectOp()

Operator & DagNode::getDialectOp ( RecordOperatorMap mapper) const

◆ getNativeCodeTemplate()

llvm::StringRef DagNode::getNativeCodeTemplate ( ) const

Definition at line 122 of file Pattern.cpp.

References isNativeCodeCall().

◆ getNumArgs()

int DagNode::getNumArgs ( ) const

Definition at line 158 of file Pattern.cpp.

Referenced by mlir::tblgen::Pattern::collectBoundSymbols(), and getNumOps().

◆ getNumOps()

int DagNode::getNumOps ( ) const

Definition at line 147 of file Pattern.cpp.

References getArgAsNestedDag(), getNumArgs(), and isOperation().

◆ getNumReturnsOfNativeCode()

int DagNode::getNumReturnsOfNativeCode ( ) const

Definition at line 129 of file Pattern.cpp.

References isNativeCodeCall().

Referenced by mlir::tblgen::Pattern::collectBoundSymbols().

◆ getSymbol()

llvm::StringRef DagNode::getSymbol ( ) const

Definition at line 136 of file Pattern.cpp.

Referenced by mlir::tblgen::Pattern::collectBoundSymbols().

◆ isEither()

bool DagNode::isEither ( ) const

Definition at line 192 of file Pattern.cpp.

Referenced by isOperation().

◆ isLocationDirective()

bool DagNode::isLocationDirective ( ) const

Definition at line 182 of file Pattern.cpp.

Referenced by isOperation().

◆ isNativeCodeCall()

bool DagNode::isNativeCodeCall ( ) const

◆ isNestedDagArg()

bool DagNode::isNestedDagArg ( unsigned  index) const

Definition at line 160 of file Pattern.cpp.

Referenced by getArgAsLeaf().

◆ isOperation()

bool DagNode::isOperation ( ) const

◆ isReplaceWithValue()

bool DagNode::isReplaceWithValue ( ) const

Definition at line 177 of file Pattern.cpp.

Referenced by isOperation().

◆ isReturnTypeDirective()

bool DagNode::isReturnTypeDirective ( ) const

Definition at line 187 of file Pattern.cpp.

Referenced by isOperation().

◆ isVariadic()

bool DagNode::isVariadic ( ) const

Definition at line 197 of file Pattern.cpp.

Referenced by isOperation().

◆ operator bool()

mlir::tblgen::DagNode::operator bool ( ) const
inline

Definition at line 147 of file Pattern.h.

◆ print()

void DagNode::print ( raw_ostream &  os) const

Definition at line 202 of file Pattern.cpp.

Friends And Related Function Documentation

◆ SymbolInfoMap

friend class SymbolInfoMap
friend

Definition at line 211 of file Pattern.h.


The documentation for this class was generated from the following files: