25 #ifndef TVM_IR_GLOBAL_INFO_H_
26 #define TVM_IR_GLOBAL_INFO_H_
28 #include <tvm/ffi/reflection/registry.h>
74 refl::ObjectDef<VDeviceNode>()
100 refl::ObjectDef<DummyGlobalInfoNode>();
A dummy global info sub-class for testing purpose.
Definition: global_info.h:96
static void RegisterReflection()
Definition: global_info.h:98
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("ir.DummyGlobalInfo", DummyGlobalInfoNode, GlobalInfoNode)
Managed reference to DummyGlobalInfoNode.
Definition: global_info.h:110
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE(DummyGlobalInfo, GlobalInfo, DummyGlobalInfoNode)
GlobalInfo are globally static object that are referred by the IR itself. Base node for all global in...
Definition: global_info.h:43
static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind
Definition: global_info.h:45
TVM_FFI_DECLARE_OBJECT_INFO("ir.GlobalInfo", GlobalInfoNode, Object)
Managed reference to GlobalInfoNode.
Definition: global_info.h:54
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE(GlobalInfo, ObjectRef, GlobalInfoNode)
Managed reference class to TargetNode.
Definition: target.h:192
A global info subclass for virtual devices.
Definition: global_info.h:62
Target target
The Target describing how to compile for the virtual device.
Definition: global_info.h:65
int vdevice_id
The device identifier for the virtual device. This enables us to differentiate between distinct devic...
Definition: global_info.h:69
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("ir.VDevice", VDeviceNode, GlobalInfoNode)
static void RegisterReflection()
Definition: global_info.h:72
MemoryScope memory_scope
Definition: global_info.h:70
Managed reference to VDeviceNode.
Definition: global_info.h:87
VDevice(Target tgt, int dev_id, MemoryScope mem_scope)
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE(VDevice, GlobalInfo, VDeviceNode)
Definition: repr_printer.h:91
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:37
ffi::String MemoryScope
Abstract label for an area of memory.
Definition: global_info.h:37
Compilation target object.