MLIR  16.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 isOperation () const
 
StringRef getNativeCodeTemplate () const
 
int getNumReturnsOfNativeCode () const
 
void print (raw_ostream &os) const
 

Friends

class SymbolInfoMap
 

Detailed Description

Definition at line 140 of file Pattern.h.

Constructor & Destructor Documentation

◆ DagNode()

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

Definition at line 142 of file Pattern.h.

Member Function Documentation

◆ getArgAsLeaf()

DagLeaf DagNode::getArgAsLeaf ( unsigned  index) const

Definition at line 167 of file Pattern.cpp.

References mlir::tblgen::DagLeaf::DagLeaf().

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

◆ getArgAsNestedDag()

DagNode DagNode::getArgAsNestedDag ( unsigned  index) const

Definition at line 163 of file Pattern.cpp.

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

◆ getArgName()

StringRef DagNode::getArgName ( unsigned  index) const

Definition at line 172 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 121 of file Pattern.cpp.

References mlir::tblgen::DagLeaf::isNativeCodeCall().

◆ getNumArgs()

int DagNode::getNumArgs ( ) const

Definition at line 157 of file Pattern.cpp.

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

◆ getNumOps()

int DagNode::getNumOps ( ) const

Definition at line 146 of file Pattern.cpp.

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

◆ getNumReturnsOfNativeCode()

int DagNode::getNumReturnsOfNativeCode ( ) const

◆ getSymbol()

llvm::StringRef DagNode::getSymbol ( ) const

Definition at line 135 of file Pattern.cpp.

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

◆ isEither()

bool DagNode::isEither ( ) const

Definition at line 191 of file Pattern.cpp.

◆ isLocationDirective()

bool DagNode::isLocationDirective ( ) const

Definition at line 181 of file Pattern.cpp.

◆ isNativeCodeCall()

bool DagNode::isNativeCodeCall ( ) const

Definition at line 110 of file Pattern.cpp.

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

◆ isNestedDagArg()

bool DagNode::isNestedDagArg ( unsigned  index) const

Definition at line 159 of file Pattern.cpp.

◆ isOperation()

bool DagNode::isOperation ( ) const

◆ isReplaceWithValue()

bool DagNode::isReplaceWithValue ( ) const

Definition at line 176 of file Pattern.cpp.

◆ isReturnTypeDirective()

bool DagNode::isReturnTypeDirective ( ) const

Definition at line 186 of file Pattern.cpp.

◆ operator bool()

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

Definition at line 146 of file Pattern.h.

References print().

◆ print()

void DagNode::print ( raw_ostream &  os) const

Definition at line 196 of file Pattern.cpp.

Friends And Related Function Documentation

◆ SymbolInfoMap

friend class SymbolInfoMap
friend

Definition at line 207 of file Pattern.h.


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