Class RampObj#

Inheritance Relationships#

Base Type#

Class Documentation#

class RampObj : public tvm::ExprObj#

Construct a vector with lanes elements where its i-th element equals base + i * stride. This is useful to construct an index for a continuous vector load. Base and stride must be scalar int32, int64, uint32, or uint64. The stride is cast to the base type when their types differ. Other element types can be expressed by explicitly casting the resulting vector.

Examples:

  • ramp(0, 1, 3) = [0, 1, 2]

  • ramp(1, 2, 4) = [1, 3, 5, 7]

Public Functions

inline RampObj(PrimExpr base, PrimExpr stride, PrimExpr lanes)#
inline explicit RampObj(ffi::UnsafeInit tag)#

Public Members

PrimExpr base#

The base value.

PrimExpr stride#

The stride of each step.

PrimExpr lanes#

Total number of lanes.

Public Static Functions

static inline void RegisterReflection()#
static inline int32_t _GetOrAllocRuntimeTypeIndex()#
static inline int32_t RuntimeTypeIndex() noexcept#