24 #ifndef TVM_TARGET_TARGET_INFO_H_
25 #define TVM_TARGET_TARGET_INFO_H_
58 static constexpr
const char*
_type_key =
"MemoryInfo";
Visitor class to get the attributes of an AST/IR node. The content is going to be called for each fie...
Definition: reflection.h:52
Memory information of special memory region. Use MemoryInfo as its container type.
Definition: target_info.h:37
int64_t max_simd_bits
maximum number of bits to be used in simd op
Definition: target_info.h:44
int64_t unit_bits
The addressable unit.
Definition: target_info.h:40
static constexpr const char * _type_key
Definition: target_info.h:58
TVM_DECLARE_FINAL_OBJECT_INFO(MemoryInfoNode, Object)
void VisitAttrs(AttrVisitor *v)
Definition: target_info.h:51
int64_t max_num_bits
Maximum number of bits supported in the memory.
Definition: target_info.h:42
PrimExpr head_address
head address of the buffer, if visible to CPU This address can be None.
Definition: target_info.h:49
Defines memory info.
Definition: target_info.h:63
TVM_DEFINE_OBJECT_REF_METHODS(MemoryInfo, ObjectRef, MemoryInfoNode)
Reference to PrimExprNode.
Definition: expr.h:115
Base class of all object reference.
Definition: object.h:519
base class of all object containers.
Definition: object.h:171
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
MemoryInfo GetMemoryInfo(const std::string &scope)
get memory info given scope