put typedvalues initialization into cpp

Signed-off-by: Jinjie Liu <jjliu@baai.ac.cn>
This commit is contained in:
2026-01-30 01:38:58 +08:00
parent bdc9c03b75
commit a953cbe7cc
10 changed files with 92 additions and 47 deletions
+2 -3
View File
@@ -2,8 +2,7 @@
#define TRITON_TVM_FFI_TYPE_H_
#include <cstdint>
#include <tvm/ffi/object.h>
#include <tvm/ffi/string.h>
#include <tvm/ffi/tvm_ffi.h>
#include <type_traits>
namespace triton_tvm_ffi {
@@ -35,7 +34,7 @@ enum class Type : int64_t {
};
const char *TypeToString(Type type);
tvm::ffi::Optional<Type> StringToType(tvm::ffi::String str);
tvm::ffi::Optional<Type> StringToType(const tvm::ffi::String &name);
template <Type T> struct type_to_ctype;
#define DEFINE_TYPE_TO_CTYPE(type, str, ctype) \