[RUNTIME][REFACTOR] Use object protocol to support runtime::Module (#4289)
authorTianqi Chen <tqchen@users.noreply.github.com>
Mon, 11 Nov 2019 18:09:29 +0000 (10:09 -0800)
committerGitHub <noreply@github.com>
Mon, 11 Nov 2019 18:09:29 +0000 (10:09 -0800)
commitf823c577215d1b87191e598f6b1d3fef182452e6
tree2f3591193dcac964b442c5bc43dcd9c68a30210f
parentaeb5f130bc96bc260f20898f40e14a739a183576
[RUNTIME][REFACTOR] Use object protocol to support runtime::Module (#4289)

Previously runtime::Module was supported using shared_ptr.
This PR refactors the codebase to use the Object protocol.

It will open doors to allow easier interpolation between
Object containers and module in the future.
58 files changed:
apps/android_deploy/app/src/main/jni/tvm_runtime.h
apps/android_rpc/app/src/main/jni/tvm_runtime.h
apps/bundle_deploy/runtime.cc
apps/howto_deploy/tvm_runtime_pack.cc
apps/ios_rpc/tvmrpc/TVMRuntime.mm
golang/src/tvm_runtime_pack.cc
include/tvm/runtime/module.h
include/tvm/runtime/object.h
include/tvm/runtime/packed_func.h
include/tvm/runtime/vm.h
python/tvm/relay/backend/vm.py
src/codegen/llvm/llvm_module.cc
src/codegen/source_module.cc
src/relay/backend/build_module.cc
src/relay/backend/graph_runtime_codegen.cc
src/relay/backend/vm/compiler.cc
src/relay/backend/vm/compiler.h
src/relay/backend/vm/profiler/compiler.cc
src/runtime/c_runtime_api.cc
src/runtime/cuda/cuda_module.cc
src/runtime/cuda/cuda_module.h
src/runtime/dso_module.cc
src/runtime/graph/debug/graph_runtime_debug.cc
src/runtime/graph/graph_runtime.cc
src/runtime/graph/graph_runtime.h
src/runtime/metal/metal_module.mm
src/runtime/micro/micro_device_api.cc
src/runtime/micro/micro_module.cc
src/runtime/micro/micro_session.cc
src/runtime/micro/micro_session.h
src/runtime/micro/tcl_socket.h
src/runtime/module.cc
src/runtime/module_util.cc
src/runtime/module_util.h
src/runtime/object.cc
src/runtime/object_internal.h [new file with mode: 0644]
src/runtime/opencl/aocl/aocl_common.h
src/runtime/opencl/aocl/aocl_device_api.cc
src/runtime/opencl/aocl/aocl_module.h
src/runtime/opencl/opencl_common.h
src/runtime/opencl/opencl_module.cc
src/runtime/opencl/opencl_module.h
src/runtime/opengl/opengl_module.cc
src/runtime/opengl/opengl_module.h
src/runtime/rocm/rocm_module.cc
src/runtime/rpc/rpc_module.cc
src/runtime/rpc/rpc_session.cc
src/runtime/rpc/rpc_session.h
src/runtime/stackvm/stackvm.cc
src/runtime/stackvm/stackvm_module.cc
src/runtime/system_lib_module.cc
src/runtime/vm/executable.cc
src/runtime/vm/profiler/vm.cc
src/runtime/vm/profiler/vm.h
src/runtime/vm/vm.cc
src/runtime/vulkan/vulkan.cc
vta/src/dpi/module.cc
web/web_runtime.cc