24#ifndef TVM_RELAX_GLOBAL_INFO_H_
25#define TVM_RELAX_GLOBAL_INFO_H_
38using runtime::MemoryScope;
54 namespace refl = tvm::ffi::reflection;
55 refl::ObjectDef<VDeviceObj>()
80 namespace refl = tvm::ffi::reflection;
81 refl::ObjectDef<DummyGlobalInfoObj>();
93 explicit DummyGlobalInfo(ffi::UnsafeInit tag, ffi::ObjectPtr<DummyGlobalInfoObj> n)
Base for globally static objects referred to by the IR.
GlobalInfo are globally static object that are referred by the IR itself. Base node for all global in...
Definition global_info.h:36
Managed reference to GlobalInfoObj.
Definition global_info.h:47
A dummy global info sub-class for testing purpose.
Definition global_info.h:77
static void RegisterReflection()
Definition global_info.h:79
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.DummyGlobalInfo", DummyGlobalInfoObj, GlobalInfoObj)
Managed reference to DummyGlobalInfoObj.
Definition global_info.h:91
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(DummyGlobalInfo, GlobalInfo, DummyGlobalInfoObj)
DummyGlobalInfo(ffi::UnsafeInit tag, ffi::ObjectPtr< DummyGlobalInfoObj > n)
Definition global_info.h:93
A global info subclass for virtual devices.
Definition global_info.h:43
static void RegisterReflection()
Definition global_info.h:53
int vdevice_id
The device identifier for the virtual device. This enables us to differentiate between distinct devic...
Definition global_info.h:50
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("relax.VDevice", VDeviceObj, GlobalInfoObj)
MemoryScope memory_scope
Definition global_info.h:51
ffi::Optional< Target > target
The Target describing how to compile for the virtual device.
Definition global_info.h:46
Managed reference to VDeviceObj.
Definition global_info.h:68
VDevice(ffi::Optional< Target > tgt, int dev_id, MemoryScope mem_scope)
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(VDevice, GlobalInfo, VDeviceObj)
A registered memory space, independent of backend allocation policy.
Definition memory_scope.h:65
Parent compiler symbol visibility.
Memory scopes and allocation properties for runtime storage.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analysis.h:41
Compilation target object.