Allocate a buffer that can be used in body.
More...
#include <stmt.h>
Allocate a buffer that can be used in body.
◆ ConstantAllocationSize() [1/2]
int64_t tvm::tir::AllocateConstNode::ConstantAllocationSize |
( |
| ) |
const |
|
inline |
If the buffer size is constant, return the size. Otherwise return 0.
- Returns
- The result.
◆ ConstantAllocationSize() [2/2]
static int64_t tvm::tir::AllocateConstNode::ConstantAllocationSize |
( |
const ffi::Array< PrimExpr > & |
extents | ) |
|
|
static |
If the buffer size is constant, return the size. Otherwise return 0.
- Parameters
-
extents | The extents of the buffer. |
- Returns
- The result.
◆ RegisterReflection()
static void tvm::tir::AllocateConstNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
◆ annotations
ffi::Map<ffi::String, ffi::Any> tvm::tir::AllocateConstNode::annotations |
Additional annotations about the allocation.
These annotations can be used as auxiliary hint to future transformations.
◆ body
Stmt tvm::tir::AllocateConstNode::body |
◆ buffer_var
Var tvm::tir::AllocateConstNode::buffer_var |
◆ data
The optional data associated to the constant.
◆ dtype
DataType tvm::tir::AllocateConstNode::dtype |
◆ extents
ffi::Array<PrimExpr> tvm::tir::AllocateConstNode::extents |
The extents of the buffer.
◆ irmod_storage_idx
ffi::Optional<Integer> tvm::tir::AllocateConstNode::irmod_storage_idx |
If the PrimFunc containing the Stmt is added to IRModule, this is an optional index to indicate the index within "constants" attribute, that is a ffi::Array<Tensor> of IRModule.
The documentation for this class was generated from the following file: