tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::prim::RampObj Class Reference

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. More...

#include <vector_expr.h>

Inheritance diagram for tvm::prim::RampObj:
Collaboration diagram for tvm::prim::RampObj:

Public Member Functions

 RampObj (PrimExpr base, PrimExpr stride, PrimExpr lanes)
 
 RampObj (ffi::UnsafeInit tag)
 
 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("prim.Ramp", RampObj, ExprObj)
 
- Public Member Functions inherited from tvm::ExprObj
 TVM_FFI_DECLARE_OBJECT_INFO ("ir.Expr", ExprObj, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::ExprObj
static void RegisterReflection ()
 

Public Attributes

PrimExpr base
 The base value.
 
PrimExpr stride
 The stride of each step.
 
PrimExpr lanes
 Total number of lanes.
 
- Public Attributes inherited from tvm::ExprObj
Location loc = UnknownLoc()
 Location that points to the original source code. Reserved debug information.
 
Type ty = MissingType()
 The deduced or annotated type of the expression.
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::ExprObj
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 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:

Constructor & Destructor Documentation

◆ RampObj() [1/2]

tvm::prim::RampObj::RampObj ( PrimExpr  base,
PrimExpr  stride,
PrimExpr  lanes 
)
inline

◆ RampObj() [2/2]

tvm::prim::RampObj::RampObj ( ffi::UnsafeInit  tag)
inlineexplicit

Member Function Documentation

◆ RegisterReflection()

static void tvm::prim::RampObj::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::prim::RampObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "prim.Ramp"  ,
RampObj  ,
ExprObj   
)

Member Data Documentation

◆ base

PrimExpr tvm::prim::RampObj::base

The base value.

◆ lanes

PrimExpr tvm::prim::RampObj::lanes

Total number of lanes.

◆ stride

PrimExpr tvm::prim::RampObj::stride

The stride of each step.


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