24 #ifndef TVM_TARGET_TARGET_INFO_H_
25 #define TVM_TARGET_TARGET_INFO_H_
27 #include <tvm/ffi/reflection/registry.h>
54 refl::ObjectDef<MemoryInfoNode>()
61 static constexpr
const char*
_type_key =
"target.MemoryInfo";
Memory information of special memory region. Use MemoryInfo as its container type.
Definition: target_info.h:38
int64_t max_simd_bits
maximum number of bits to be used in simd op
Definition: target_info.h:45
int64_t unit_bits
The addressable unit.
Definition: target_info.h:41
static constexpr const char * _type_key
Definition: target_info.h:61
TVM_DECLARE_FINAL_OBJECT_INFO(MemoryInfoNode, Object)
static void RegisterReflection()
Definition: target_info.h:52
int64_t max_num_bits
Maximum number of bits supported in the memory.
Definition: target_info.h:43
PrimExpr head_address
head address of the buffer, if visible to CPU This address can be None.
Definition: target_info.h:50
Defines memory info.
Definition: target_info.h:67
TVM_DEFINE_OBJECT_REF_METHODS(MemoryInfo, ObjectRef, MemoryInfoNode)
Reference to PrimExprNode.
Definition: expr.h:129
Definition: repr_printer.h:91
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:37
MemoryInfo GetMemoryInfo(const std::string &scope)
get memory info given scope