tvm
Classes | Namespaces | Macros
expr_functor.h File Reference

Functors for tirx expressions. More...

#include <tvm/node/functor.h>
#include <tvm/tirx/expr.h>
#include <utility>
Include dependency graph for expr_functor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tvm::tirx::ExprFunctor< R(const PrimExpr &n, Args...)>
 
class  tvm::tirx::ExprVisitor
 ExprVisitor. More...
 
class  tvm::tirx::ExprMutator
 ExprMutator that mutates expressions. More...
 

Namespaces

 tvm
 An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
 
 tvm::tirx
 

Macros

#define EXPR_FUNCTOR_DEFAULT
 
#define IR_EXPR_FUNCTOR_DISPATCH(OP)
 

Detailed Description

Functors for tirx expressions.

Macro Definition Documentation

◆ EXPR_FUNCTOR_DEFAULT

#define EXPR_FUNCTOR_DEFAULT
Value:
{ \
return VisitExprDefault_(op, std::forward<Args>(args)...); \
}

◆ IR_EXPR_FUNCTOR_DISPATCH

#define IR_EXPR_FUNCTOR_DISPATCH (   OP)
Value:
vtable.template set_dispatch<OP>([](const ObjectRef& n, TSelf* self, Args... args) { \
return self->VisitExpr_(static_cast<const OP*>(n.get()), std::forward<Args>(args)...); \
});