A block is a basic schedule unit in TIR.
More...
#include <stmt.h>
|
| ffi::Array< IterVar > | iter_vars |
| | The variables of the block.
|
| |
| ffi::Array< BufferRegion > | reads |
| | The read buffer regions of the block.
|
| |
| ffi::Array< BufferRegion > | writes |
| | The write buffer regions of the block.
|
| |
| ffi::String | name_hint |
| | The name_hint of the block.
|
| |
| ffi::Array< BufferVar > | alloc_buffers |
| | The buffer allocated in the block.
|
| |
| ffi::Array< MatchBufferRegion > | match_buffers |
| | The match buffer regions.
|
| |
| ffi::Map< ffi::String, ffi::Any > | annotations |
| | The annotation of the block.
|
| |
| ffi::Optional< Stmt > | init |
| | The init statement is executed during the first iteration of reduction loops in a reduction block. The optional init field allows us to represent initialization and reduction update in a single block and transform them collectively. We also provide primitives to decompose the init into a separate block during scheduling. Init field is std::nullopt if there is no reduction iter_vars.
|
| |
| Stmt | body |
| | The body of the block.
|
| |
| Span | span |
| | Span that points to the original source code. Reserved debug information.
|
| |
A block is a basic schedule unit in TIR.
- Note
- SBlock's body is parameterized by iter vars.
...
RAII wrapper function to enter and exit a context object similar to python's with syntax.
Definition with_context.h:59
ffi::Array< BufferRegion > writes
The write buffer regions of the block.
Definition stmt.h:840
◆ RegisterReflection()
| static void tvm::tirx::SBlockNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
| tvm::tirx::SBlockNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL |
( |
"tirx.SBlock" |
, |
|
|
SBlockNode |
, |
|
|
StmtNode |
|
|
) |
| |
◆ alloc_buffers
| ffi::Array<BufferVar> tvm::tirx::SBlockNode::alloc_buffers |
The buffer allocated in the block.
◆ annotations
| ffi::Map<ffi::String, ffi::Any> tvm::tirx::SBlockNode::annotations |
The annotation of the block.
◆ body
| Stmt tvm::tirx::SBlockNode::body |
◆ init
| ffi::Optional<Stmt> tvm::tirx::SBlockNode::init |
The init statement is executed during the first iteration of reduction loops in a reduction block. The optional init field allows us to represent initialization and reduction update in a single block and transform them collectively. We also provide primitives to decompose the init into a separate block during scheduling. Init field is std::nullopt if there is no reduction iter_vars.
◆ iter_vars
| ffi::Array<IterVar> tvm::tirx::SBlockNode::iter_vars |
The variables of the block.
◆ match_buffers
The match buffer regions.
◆ name_hint
| ffi::String tvm::tirx::SBlockNode::name_hint |
The name_hint of the block.
◆ reads
The read buffer regions of the block.
◆ writes
The write buffer regions of the block.
The documentation for this class was generated from the following file: