17#ifndef _MIR_VISITOR_H_
18#define _MIR_VISITOR_H_
26#define HANDLE_OP(OpType, OpClass) class OpClass;
40#define HANDLE_OP(OpType, OpClass) virtual void visit(ops::OpClass &) = 0;
53#define HANDLE_OP(OpType, OpClass) void visit(ops::OpClass &) override;
Interface for visitors Use in MIR component if you want to enforce to implement visits for all operat...
virtual ~IVisitor()=default
Base visitor with empty fallback function.
virtual void visit_fallback(Operation &)