26 #ifndef TVM_IR_INSTRUMENT_H_ 27 #define TVM_IR_INSTRUMENT_H_ 44 namespace instrument {
110 virtual void EnterPassContext()
const = 0;
113 virtual void ExitPassContext()
const = 0;
141 static constexpr
const char* _type_key =
"instrument.PassInstrument";
157 #endif // TVM_IR_INSTRUMENT_H_ void VisitAttrs(AttrVisitor *v)
Definition: instrument.h:139
Managed reference class for PassInstrumentNode.
Definition: instrument.h:149
Runtime String container types.
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
base class of all object containers.
Definition: object.h:167
String name
Name of this pass instrument object.
Definition: instrument.h:105
Visitor class to get the attributes of an AST/IR node. The content is going to be called for each fie...
Definition: reflection.h:52
virtual ~PassInstrumentNode()
Definition: instrument.h:107
Reference to string objects.
Definition: string.h:98
#define TVM_DEFINE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:713
Base class of all object reference.
Definition: object.h:511
Managed reference class to IRModuleNode.
Definition: module.h:348
tvm::PrimExpr mod(const tvm::PrimExpr &a, const tvm::PrimExpr &b)
Definition: broadcast.h:290
Reflection and serialization of compiler IR/AST nodes.
#define TVM_DECLARE_BASE_OBJECT_INFO(TypeName, ParentType)
helper macro to declare a base object type that can be inherited.
Definition: object.h:648
IRModuleFrame IRModule()
The IRModule declaration statement.
PassInstrumentNode forms an instrument implementation. It provides API for users to register callback...
Definition: instrument.h:102