tvm
Public Member Functions | List of all members
tvm::relay::PatternVisitor Class Reference

A simple visitor wrapper around PatternFunctor. More...

#include <pattern_functor.h>

Inheritance diagram for tvm::relay::PatternVisitor:
Collaboration diagram for tvm::relay::PatternVisitor:

Public Member Functions

void VisitPattern_ (const PatternWildcardNode *op) override
 
void VisitPattern_ (const PatternVarNode *op) override
 
void VisitPattern_ (const PatternConstructorNode *op) override
 
void VisitPattern_ (const PatternTupleNode *op) override
 
virtual void VisitType (const Type &t)
 
virtual void VisitVar (const Var &v)
 
virtual void VisitConstructor (const Constructor &c)
 

Detailed Description

A simple visitor wrapper around PatternFunctor.

Exposes two visitors with default traversal strategies, one which doesn't compute a result but can mutate internal state, and another which functionally builds a new pattern.

Member Function Documentation

◆ VisitConstructor()

virtual void tvm::relay::PatternVisitor::VisitConstructor ( const Constructor c)
virtual

◆ VisitPattern_() [1/4]

void tvm::relay::PatternVisitor::VisitPattern_ ( const PatternConstructorNode op)
override

◆ VisitPattern_() [2/4]

void tvm::relay::PatternVisitor::VisitPattern_ ( const PatternTupleNode op)
override

◆ VisitPattern_() [3/4]

void tvm::relay::PatternVisitor::VisitPattern_ ( const PatternVarNode op)
override

◆ VisitPattern_() [4/4]

void tvm::relay::PatternVisitor::VisitPattern_ ( const PatternWildcardNode op)
override

◆ VisitType()

virtual void tvm::relay::PatternVisitor::VisitType ( const Type t)
virtual

◆ VisitVar()

virtual void tvm::relay::PatternVisitor::VisitVar ( const Var v)
virtual

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