|
| | BufferVar (ffi::String name, BufferType type, Span span=Span()) |
| | Construct a fresh buffer variable from an explicit BufferType.
|
| |
| | BufferVar (Var var) |
| | Create a checked buffer view over an existing ordinary Var.
|
| |
| Var | var () const |
| | Return the ordinary variable view over the same identity.
|
| |
| BufferType | type () const |
| | Return the buffer type carried by the ordinary variable.
|
| |
| const ffi::String & | name () const |
| | Return the buffer's diagnostic name.
|
| |
| const Span & | span () const |
| | Return the source span carried by the ordinary Var.
|
| |
| Expr | data () const |
| | Project the physical pointer established by the definition site.
|
| |
| BufferVar | MakeStrideView () const |
| | Return a new buffer that is equivalent with current one but always add stride field.
|
| |
| BufferVar | MakeSlice (ffi::Array< PrimExpr > begins, ffi::Array< PrimExpr > extents) const |
| | Make a new symbolic buffer representing a slice of the buffer.
|
| |
| Expr | access_ptr (int access_mask, PointerType ptr_type=PointerType::VoidPointerTy(), int content_lanes=1, PrimExpr offset=IntImm::Int32(0), ffi::Optional< PrimExpr > input_extent=std::nullopt) const |
| | Get access ptr to the entire buffer.
|
| |
| PrimExpr | vload (ffi::Array< PrimExpr > begin, PrimType dtype) const |
| | Create an Expr that does a vector load at begin index.
|
| |
| Stmt | vstore (ffi::Array< PrimExpr > begin, PrimExpr value) const |
| | Create a Stmt that does a vector store at begin index.
|
| |
| BufferVar | GetFlattenedBuffer () const |
| | Get a flattened version of the buffer.
|
| |
| ffi::Array< PrimExpr > | OffsetOf (ffi::Array< PrimExpr > index) const |
| | Determine the offset in the buffer of the given index.
|
| |
| PrimExpr | OffsetOf_p (const ffi::Array< PrimExpr > &indices) const |
| | Get the buffer_offset op for the given index.
|
| |
| ffi::String | scope () const |
| | Return the storage scope associated with this buffer.
|
| |
| BufferVar | with_allocated_addr (ffi::Array< PrimExpr > allocated_addr) const |
| | Return a new buffer with the allocated address.
|
| |
| bool | IsScalar (bool alloc_or_decl=true) const |
| | Return true if the buffer is a scalar.
|
| |
| BufferVar | with_dtype (PrimType dtype) const |
| | Return a new buffer with the dtype.
|
| |
| PrimType | ElementType () const |
| |
| PointerType | DataPointerType () const |
| |
| | BufferVar ()=default |
| |
| | BufferVar (ffi::ObjectPtr< VarNode > n) |
| |
| | BufferVar (ffi::UnsafeInit tag) |
| |
| | TVM_FFI_DEFINE_DEFAULT_COPY_MOVE_AND_ASSIGN (BufferVar) |
| |
| const BufferTypeNode * | operator-> () const |
| |
| const VarNode * | get () const |
| |
| | Var (ffi::String name, ffi::Optional< Type > ty_annotation, Span span=Span()) |
| |
| Var | CopyWithName (const ffi::String &name) const |
| | Return a fresh ordinary Var with the same type and a new name.
|
| |
| Var | CopyWithSuffix (const ffi::String &suffix) const |
| | Return a fresh ordinary Var with a suffix appended to its name.
|
| |
| Var | CopyWithDType (PrimType dtype) const |
| | Return a fresh ordinary Var with a new primitive type.
|
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (Var, Expr, VarNode) |
| |
| bool | operator== (const Expr &other) const =delete |
| |
| bool | operator!= (const Expr &other) const =delete |
| |
| bool | operator< (const Expr &other) const =delete |
| |
| | TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE (Expr, ffi::ObjectRef, ExprNode) |
| |
Checked zero-state view over an ordinary VarNode with BufferType.
BufferVar does not introduce a runtime object or a second identity. It safely widens to Var, and get() returns the underlying VarNode used by identity-sensitive maps. operator-> exposes the immutable BufferType access contract for concise compiler-side metadata access.