ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Operation.cpp File Reference
#include "mir/Operation.h"
#include "mir/Visitor.h"
#include "mir/OpDefs.h"
#include <algorithm>
#include "mir/Operations.inc"

Go to the source code of this file.

Namespaces

namespace  mir
 

Macros

#define HANDLE_OP(OpType, OpClass)
 
#define HANDLE_OP(OpType, OpClass)
 

Functions

const std::string & mir::getTypeName (Operation::Type type)
 

Macro Definition Documentation

◆ HANDLE_OP [1/2]

#define HANDLE_OP (   OpType,
  OpClass 
)
Value:
case Type::OpType: \
v->visit(dynamic_cast<ops::OpClass &>(*this)); \
break;

◆ HANDLE_OP [2/2]

#define HANDLE_OP (   OpType,
  OpClass 
)
Value:
case Operation::Type::OpType: \
{ \
static const std::string name(#OpType); \
return name; \
}