tvm
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::script::ir_builder::tir::AttrFrameNode Class Reference

A frame that represents attribute node. More...

#include <frame.h>

Inheritance diagram for tvm::script::ir_builder::tir::AttrFrameNode:
Collaboration diagram for tvm::script::ir_builder::tir::AttrFrameNode:

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("script.ir_builder.tir.AttrFrame", AttrFrameNode, TIRFrameNode)
 
void ExitWithScope () final
 The method called when exiting RAII scope. More...
 
- Public Member Functions inherited from tvm::script::ir_builder::tir::TIRFrameNode
 TVM_FFI_DECLARE_OBJECT_INFO ("script.ir_builder.tir.TIRFrame", TIRFrameNode, IRBuilderFrameNode)
 
- Public Member Functions inherited from tvm::script::ir_builder::IRBuilderFrameNode
 TVM_FFI_DECLARE_OBJECT_INFO ("script.ir_builder.IRBuilderFrame", IRBuilderFrameNode, runtime::Object)
 
virtual ~IRBuilderFrameNode ()=default
 Default destructor. More...
 
virtual void EnterWithScope ()
 The method called when entering RAII scope. More...
 
void AddCallback (ffi::TypedFunction< void()> callback)
 Add a callback method invoked when exiting the RAII scope. More...
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::script::ir_builder::tir::TIRFrameNode
static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::script::ir_builder::IRBuilderFrameNode
static void RegisterReflection ()
 

Public Attributes

Any node
 The node to annotate the attribute. More...
 
ffi::String attr_key
 Attribute type key. More...
 
PrimExpr value
 The value of the attribute. More...
 
- Public Attributes inherited from tvm::script::ir_builder::tir::TIRFrameNode
ffi::Array< tvm::tir::Stmtstmts
 The Stmt within in this frame. More...
 
- Public Attributes inherited from tvm::script::ir_builder::IRBuilderFrameNode
std::vector< ffi::TypedFunction< void()> > callbacks
 A list of callbacks used when exiting the frame. More...
 

Additional Inherited Members

- Static Public Attributes inherited from tvm::script::ir_builder::IRBuilderFrameNode
static constexpr const bool _type_mutable = true
 

Detailed Description

A frame that represents attribute node.

See also
AttrFrame

Member Function Documentation

◆ ExitWithScope()

void tvm::script::ir_builder::tir::AttrFrameNode::ExitWithScope ( )
finalvirtual

The method called when exiting RAII scope.

See also
tvm::support::With

Reimplemented from tvm::script::ir_builder::IRBuilderFrameNode.

◆ RegisterReflection()

static void tvm::script::ir_builder::tir::AttrFrameNode::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::script::ir_builder::tir::AttrFrameNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "script.ir_builder.tir.AttrFrame"  ,
AttrFrameNode  ,
TIRFrameNode   
)

Member Data Documentation

◆ attr_key

ffi::String tvm::script::ir_builder::tir::AttrFrameNode::attr_key

Attribute type key.

◆ node

Any tvm::script::ir_builder::tir::AttrFrameNode::node

The node to annotate the attribute.

◆ value

PrimExpr tvm::script::ir_builder::tir::AttrFrameNode::value

The value of the attribute.


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