|
tvm
|
A for loop, with possible type annotations. More...
#include <stmt.h>
Public Member Functions | |
| bool | HasTrivialStep () const |
| Check it is a loop without nontrivial loop step. | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("tirx.For", ForNode, StmtNode) | |
Public Member Functions inherited from tvm::tirx::StmtNode | |
| StmtNode ()=default | |
| StmtNode (Span span) | |
| TVM_FFI_DECLARE_OBJECT_INFO ("tirx.Stmt", StmtNode, ffi::Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Static Public Member Functions inherited from tvm::tirx::StmtNode | |
| static void | RegisterReflection () |
Public Attributes | |
| PrimVar | loop_var |
| The loop variable. | |
| PrimExpr | min |
| The minimum value of iteration. | |
| PrimExpr | extent |
| The extent of the iteration. | |
| ForKind | kind |
| The kind of the for loop. | |
| Stmt | body |
| The body of the for loop. | |
| ffi::Optional< IterVar > | thread_binding |
| Only valid when kind == ForKind::kThreadBinding The context thread that this loop variable bounds to. | |
| ffi::Map< ffi::String, ffi::Any > | annotations |
| Additional annotations about the loop. | |
| ffi::Optional< PrimExpr > | step |
| The loop step. It is one if not specified. | |
Public Attributes inherited from tvm::tirx::StmtNode | |
| Span | span |
| Span that points to the original source code. Reserved debug information. | |
Additional Inherited Members | |
Static Public Attributes inherited from tvm::tirx::StmtNode | |
| static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
| static constexpr const uint32_t | _type_child_slots = 15 |
A for loop, with possible type annotations.
| bool tvm::tirx::ForNode::HasTrivialStep | ( | ) | const |
Check it is a loop without nontrivial loop step.
| ffi::Map<ffi::String, ffi::Any> tvm::tirx::ForNode::annotations |
Additional annotations about the loop.
These annotations can be used as auxiliary hint to future transformations. An annotation should not change the control flow semantics of the loop and can be ignored in most passes.
| Stmt tvm::tirx::ForNode::body |
The body of the for loop.
| PrimExpr tvm::tirx::ForNode::extent |
The extent of the iteration.
| ForKind tvm::tirx::ForNode::kind |
The kind of the for loop.
| PrimVar tvm::tirx::ForNode::loop_var |
The loop variable.
| PrimExpr tvm::tirx::ForNode::min |
The minimum value of iteration.
| ffi::Optional<PrimExpr> tvm::tirx::ForNode::step |
The loop step. It is one if not specified.
| ffi::Optional<IterVar> tvm::tirx::ForNode::thread_binding |
Only valid when kind == ForKind::kThreadBinding The context thread that this loop variable bounds to.