mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Macros | Functions
InterpreterOperator.cpp File Reference
#include "backend/InterpreterOperator.hpp"
Include dependency graph for InterpreterOperator.cpp:

Go to the source code of this file.

Macros

#define REGISTER(CLASS)   phys_opt.register_operator<interpreter::CLASS>();
 
#define ACCEPT(CLASS)
 
#define DECLARE(CLASS)
 

Functions

 M_INTERPRETER_MATCH_LIST (ACCEPT) namespace
 

Macro Definition Documentation

◆ ACCEPT

#define ACCEPT (   CLASS)
Value:
void CLASS::accept(MatchBaseVisitor &v) { v(*this); } \
void CLASS::accept(ConstMatchBaseVisitor &v) const { v(*this); }

Definition at line 15 of file InterpreterOperator.cpp.

◆ DECLARE

#define DECLARE (   CLASS)
Value:
void operator()(Const<CLASS> &M) override { \
if constexpr (PreOrder) try { callback_(M); } catch (visit_skip_subtree) { return; } \
super::operator()(M); \
if constexpr (not PreOrder) callback_(M); \
}
Exception class which can be thrown to skip recursion of the subtree in pre-order visitors.
Definition: Visitor.hpp:18

◆ REGISTER

#define REGISTER (   CLASS)    phys_opt.register_operator<interpreter::CLASS>();

Function Documentation

◆ M_INTERPRETER_MATCH_LIST()

M_INTERPRETER_MATCH_LIST ( ACCEPT  )

Definition at line 18 of file InterpreterOperator.cpp.

References DECLARE, and M_INTERPRETER_MATCH_LIST.