tvm
|
Construct a vector with lanes elements where its i-th element equals base + i * stride. This is useful to construct a index for a continuous vector load. More...
#include <expr.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (RampNode, PrimExprNode) | |
![]() | |
TVM_OBJECT_ENABLE_SCRIPT_PRINTER () | |
TVM_DECLARE_BASE_OBJECT_INFO (PrimExprNode, BaseExprNode) | |
![]() | |
TVM_DECLARE_BASE_OBJECT_INFO (BaseExprNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
PrimExpr | base |
The base value. More... | |
PrimExpr | stride |
The stride of each step. More... | |
PrimExpr | lanes |
Total number of lanes. More... | |
![]() | |
DataType | dtype |
The runtime data type of the primitive expression. More... | |
![]() | |
Span | span |
Span that points to the original source code. Reserved debug information. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "tir.Ramp" |
![]() | |
static constexpr const char * | _type_key = "ir.PrimExpr" |
static constexpr const uint32_t | _type_child_slots = 40 |
![]() | |
static constexpr const char * | _type_key = "ir.BaseExpr" |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
static constexpr const uint32_t | _type_child_slots = 64 |
Construct a vector with lanes elements where its i-th element equals base + i * stride. This is useful to construct a index for a continuous vector load.
Examples:
|
inlinestatic |
tvm::tir::RampNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | RampNode | , |
PrimExprNode | |||
) |
|
staticconstexpr |
PrimExpr tvm::tir::RampNode::base |
The base value.
PrimExpr tvm::tir::RampNode::lanes |
Total number of lanes.
PrimExpr tvm::tir::RampNode::stride |
The stride of each step.