tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::tir::AttrStmtNode Class Reference

Define certain auxiliary attribute for the body to be a symbolic value. This provide auxiliary information for IR passes that transforms body. More...

#include <stmt.h>

Inheritance diagram for tvm::tir::AttrStmtNode:
Collaboration diagram for tvm::tir::AttrStmtNode:

Public Member Functions

 TVM_DECLARE_FINAL_OBJECT_INFO (AttrStmtNode, StmtNode)
 
- Public Member Functions inherited from tvm::tir::StmtNode
 StmtNode ()=default
 
 StmtNode (Span span)
 
 TVM_OBJECT_ENABLE_SCRIPT_PRINTER ()
 
 TVM_DECLARE_BASE_OBJECT_INFO (StmtNode, Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::tir::StmtNode
static void RegisterReflection ()
 

Public Attributes

ffi::Any node
 this is attribute about certain node More...
 
String attr_key
 the type key of the attribute More...
 
PrimExpr value
 The attribute value, value is well defined at current scope. More...
 
Stmt body
 The body statement to be executed. More...
 
- Public Attributes inherited from tvm::tir::StmtNode
Span span
 Span that points to the original source code. Reserved debug information. More...
 

Static Public Attributes

static constexpr const char * _type_key = "tir.AttrStmt"
 
- Static Public Attributes inherited from tvm::tir::StmtNode
static constexpr const char * _type_key = "tir.Stmt"
 
static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 
static constexpr const uint32_t _type_child_slots = 15
 

Detailed Description

Define certain auxiliary attribute for the body to be a symbolic value. This provide auxiliary information for IR passes that transforms body.

In terms of effect, this is equivalent to Block(Evaluate(value), body).

Examples of possible usage:

Member Function Documentation

◆ RegisterReflection()

static void tvm::tir::AttrStmtNode::RegisterReflection ( )
inlinestatic

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

tvm::tir::AttrStmtNode::TVM_DECLARE_FINAL_OBJECT_INFO ( AttrStmtNode  ,
StmtNode   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::tir::AttrStmtNode::_type_key = "tir.AttrStmt"
staticconstexpr

◆ attr_key

String tvm::tir::AttrStmtNode::attr_key

the type key of the attribute

◆ body

Stmt tvm::tir::AttrStmtNode::body

The body statement to be executed.

◆ node

ffi::Any tvm::tir::AttrStmtNode::node

this is attribute about certain node

◆ value

PrimExpr tvm::tir::AttrStmtNode::value

The attribute value, value is well defined at current scope.


The documentation for this class was generated from the following file: