|
tvm
|
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>
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 |
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:
|
inlineexplicit |
|
inlinestatic |
| PrimExpr tvm::prim::RampObj::base |
The base value.
| PrimExpr tvm::prim::RampObj::lanes |
Total number of lanes.
| PrimExpr tvm::prim::RampObj::stride |
The stride of each step.