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::AllocateNode::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::AllocateNode::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::AllocateNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
tvm::tir::AllocateNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"tir.Allocate" |
, |
|
|
AllocateNode |
, |
|
|
StmtNode |
|
|
) |
| |
◆ annotations
ffi::Map<ffi::String, ffi::Any> tvm::tir::AllocateNode::annotations |
Additional annotations about the allocation.
These annotations can be used as auxiliary hint to future transformations.
◆ body
Stmt tvm::tir::AllocateNode::body |
◆ buffer_var
Var tvm::tir::AllocateNode::buffer_var |
◆ condition
PrimExpr tvm::tir::AllocateNode::condition |
Only allocate buffer when condition is satisfied.
◆ dtype
◆ extents
ffi::Array<PrimExpr> tvm::tir::AllocateNode::extents |
The extents of the buffer.
The documentation for this class was generated from the following file: