MLIR 22.0.0git
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 163 of file Pattern.h.

Constructor & Destructor Documentation

◆ DagNode()

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

Definition at line 165 of file Pattern.h.

Referenced by getArgAsNestedDag().

Member Function Documentation

◆ getArgAsLeaf()

DagLeaf DagNode::getArgAsLeaf ( unsigned index) const

Definition at line 197 of file Pattern.cpp.

References isNestedDagArg().

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

◆ getArgAsNestedDag()

DagNode DagNode::getArgAsNestedDag ( unsigned index) const

Definition at line 193 of file Pattern.cpp.

References DagNode().

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

◆ getArgName()

StringRef DagNode::getArgName ( unsigned index) const

Definition at line 202 of file Pattern.cpp.

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

◆ getDialectOp()

Operator & DagNode::getDialectOp ( RecordOperatorMap * mapper) const

◆ getNativeCodeTemplate()

StringRef DagNode::getNativeCodeTemplate ( ) const

Definition at line 152 of file Pattern.cpp.

References isNativeCodeCall().

◆ getNumArgs()

int DagNode::getNumArgs ( ) const

Definition at line 187 of file Pattern.cpp.

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

◆ getNumOps()

int DagNode::getNumOps ( ) const

Definition at line 176 of file Pattern.cpp.

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

◆ getNumReturnsOfNativeCode()

int DagNode::getNumReturnsOfNativeCode ( ) const

Definition at line 159 of file Pattern.cpp.

References isNativeCodeCall().

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

◆ getSymbol()

StringRef DagNode::getSymbol ( ) const

Definition at line 166 of file Pattern.cpp.

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

◆ isEither()

bool DagNode::isEither ( ) const

Definition at line 221 of file Pattern.cpp.

Referenced by isOperation().

◆ isLocationDirective()

bool DagNode::isLocationDirective ( ) const

Definition at line 211 of file Pattern.cpp.

Referenced by isOperation().

◆ isNativeCodeCall()

bool DagNode::isNativeCodeCall ( ) const

◆ isNestedDagArg()

bool DagNode::isNestedDagArg ( unsigned index) const

Definition at line 189 of file Pattern.cpp.

Referenced by getArgAsLeaf().

◆ isOperation()

◆ isReplaceWithValue()

bool DagNode::isReplaceWithValue ( ) const

Definition at line 206 of file Pattern.cpp.

Referenced by isOperation().

◆ isReturnTypeDirective()

bool DagNode::isReturnTypeDirective ( ) const

Definition at line 216 of file Pattern.cpp.

Referenced by isOperation().

◆ isVariadic()

bool DagNode::isVariadic ( ) const

Definition at line 226 of file Pattern.cpp.

Referenced by isOperation().

◆ operator bool()

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

Definition at line 169 of file Pattern.h.

◆ print()

void DagNode::print ( raw_ostream & os) const

Definition at line 231 of file Pattern.cpp.

◆ SymbolInfoMap

friend class SymbolInfoMap
friend

Definition at line 233 of file Pattern.h.

References SymbolInfoMap.

Referenced by SymbolInfoMap.


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