[REFACTOR][FFI] Make more clear naming for C API Type codes. (#4715)
authorTianqi Chen <tqchen@users.noreply.github.com>
Thu, 16 Jan 2020 03:44:39 +0000 (19:44 -0800)
committerGitHub <noreply@github.com>
Thu, 16 Jan 2020 03:44:39 +0000 (19:44 -0800)
commit0ec27f4bcfc770cb553b5faf58f47204b3467ac9
treec8332d9d3b2c11ec06ade9283f305d001c381d19
parent49d31443c4b65c814a3da6decc363a881c05b372
[REFACTOR][FFI] Make more clear naming for C API Type codes. (#4715)

This PR introduces more clear naming prefix for C API type codes
to avoid conflict with other packages.

We also removed TVMArray and TVMType to directly use DLTensor and DLDataType.
81 files changed:
apps/extension/src/tvm_ext.cc
golang/src/ndarray.go
golang/src/value.go
include/tvm/expr_operator.h
include/tvm/ir/attrs.h
include/tvm/packed_func_ext.h
include/tvm/runtime/c_runtime_api.h
include/tvm/runtime/data_type.h
include/tvm/runtime/device_api.h
include/tvm/runtime/packed_func.h
include/tvm/runtime/util.h
jvm/native/src/main/native/jni_helper_func.h
jvm/native/src/main/native/org_apache_tvm_native_c_api.cc
python/tvm/_ffi/_ctypes/function.py
python/tvm/_ffi/_cython/base.pxi
python/tvm/_ffi/_cython/function.pxi
python/tvm/_ffi/_cython/object.pxi
python/tvm/_ffi/runtime_ctypes.py
rust/runtime/src/graph.rs
src/api/api_base.cc
src/api/api_lang.cc
src/codegen/codegen_c.cc
src/codegen/codegen_c_host.cc
src/codegen/datatype/registry.cc
src/codegen/datatype/registry.h
src/codegen/llvm/codegen_cpu.cc
src/codegen/stackvm/codegen_stackvm.cc
src/ir/attrs.cc
src/ir/op.cc
src/node/reflection.cc
src/node/serialization.cc
src/pass/lower_tvm_builtin.cc
src/pass/make_api.cc
src/relay/ir/doc.cc
src/relay/ir/pretty_printer.cc
src/relay/op/tensor/transform.cc
src/runtime/c_runtime_api.cc
src/runtime/contrib/cudnn/conv_forward.cc
src/runtime/contrib/example_ext_runtime/example_ext_runtime.cc
src/runtime/contrib/nnpack/convolution.cc
src/runtime/contrib/sort/sort.cc
src/runtime/cpu_device_api.cc
src/runtime/cuda/cuda_device_api.cc
src/runtime/file_util.cc
src/runtime/graph/debug/graph_runtime_debug.cc
src/runtime/graph/graph_runtime.cc
src/runtime/library_module.cc
src/runtime/meta_data.h
src/runtime/metal/metal_common.h
src/runtime/metal/metal_device_api.mm
src/runtime/micro/micro_device_api.cc
src/runtime/micro/micro_session.cc
src/runtime/micro/micro_session.h
src/runtime/micro/standalone/utvm_graph_runtime.cc
src/runtime/opencl/opencl_common.h
src/runtime/opencl/opencl_device_api.cc
src/runtime/opencl/opencl_module.cc
src/runtime/opengl/opengl_common.h
src/runtime/opengl/opengl_device_api.cc
src/runtime/opengl/opengl_module.cc
src/runtime/pack_args.h
src/runtime/rocm/rocm_device_api.cc
src/runtime/rpc/rpc_device_api.cc
src/runtime/rpc/rpc_module.cc
src/runtime/rpc/rpc_session.cc
src/runtime/rpc/rpc_session.h
src/runtime/sgx/trusted/runtime.cc
src/runtime/sgx/untrusted/sgx_module.cc
src/runtime/stackvm/stackvm.cc
src/runtime/stackvm/stackvm.h
src/runtime/vm/memory_manager.h
src/runtime/vm/naive_allocator.h
src/runtime/vm/pooled_allocator.h
src/runtime/vm/vm.cc
src/runtime/vulkan/vulkan.cc
src/runtime/workspace_pool.cc
tests/cpp/packed_func_test.cc
tests/python/unittest/test_runtime_extension.py
topi/src/topi.cc
vta/src/device_api.cc
web/tvm_runtime.js