tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::tir::RampNode Class Reference

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>

Inheritance diagram for tvm::tir::RampNode:
Collaboration diagram for tvm::tir::RampNode:

Public Member Functions

 TVM_DECLARE_FINAL_OBJECT_INFO (RampNode, PrimExprNode)
 
- Public Member Functions inherited from tvm::PrimExprNode
 TVM_OBJECT_ENABLE_SCRIPT_PRINTER ()
 
 TVM_DECLARE_BASE_OBJECT_INFO (PrimExprNode, BaseExprNode)
 
- Public Member Functions inherited from tvm::BaseExprNode
 TVM_DECLARE_BASE_OBJECT_INFO (BaseExprNode, Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::PrimExprNode
static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::BaseExprNode
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...
 
- Public Attributes inherited from tvm::PrimExprNode
DataType dtype
 The runtime data type of the primitive expression. More...
 
- Public Attributes inherited from tvm::BaseExprNode
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 Public Attributes inherited from tvm::PrimExprNode
static constexpr const char * _type_key = "ir.PrimExpr"
 
static constexpr const uint32_t _type_child_slots = 40
 
- Static Public Attributes inherited from tvm::BaseExprNode
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
 

Detailed Description

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:

Member Function Documentation

◆ RegisterReflection()

static void tvm::tir::RampNode::RegisterReflection ( )
inlinestatic

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

tvm::tir::RampNode::TVM_DECLARE_FINAL_OBJECT_INFO ( RampNode  ,
PrimExprNode   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::tir::RampNode::_type_key = "tir.Ramp"
staticconstexpr

◆ base

PrimExpr tvm::tir::RampNode::base

The base value.

◆ lanes

PrimExpr tvm::tir::RampNode::lanes

Total number of lanes.

◆ stride

PrimExpr tvm::tir::RampNode::stride

The stride of each step.


The documentation for this class was generated from the following file: