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

A frame that represents the IRModule frame with functions and global variables. More...

#include <frame.h>

Inheritance diagram for tvm::script::ir_builder::ir::IRModuleFrameNode:
Collaboration diagram for tvm::script::ir_builder::ir::IRModuleFrameNode:

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("script.ir_builder.IRModuleFrame", IRModuleFrameNode, IRBuilderFrameNode)
 
void ExitWithScope () final
 The method called when exiting RAII scope. More...
 
- 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::IRBuilderFrameNode
static void RegisterReflection ()
 

Public Attributes

ffi::Map< ffi::String, GlobalVarglobal_var_map
 A map from string names to global variables that ensures global uniqueness. More...
 
ffi::Map< GlobalVar, BaseFuncfunctions
 A map from GlobalVar to all global functions. More...
 
ffi::Map< ffi::String, Any > attrs
 IRModule's attributes. More...
 
ffi::Map< ffi::String, ffi::Array< GlobalInfo > > global_infos
 IRModule's global_infos. 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 the IRModule frame with functions and global variables.

See also
IRModuleFrame

Member Function Documentation

◆ ExitWithScope()

void tvm::script::ir_builder::ir::IRModuleFrameNode::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::ir::IRModuleFrameNode::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::script::ir_builder::ir::IRModuleFrameNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "script.ir_builder.IRModuleFrame"  ,
IRModuleFrameNode  ,
IRBuilderFrameNode   
)

Member Data Documentation

◆ attrs

ffi::Map<ffi::String, Any> tvm::script::ir_builder::ir::IRModuleFrameNode::attrs

IRModule's attributes.

◆ functions

ffi::Map<GlobalVar, BaseFunc> tvm::script::ir_builder::ir::IRModuleFrameNode::functions

A map from GlobalVar to all global functions.

Note
Only defined functions are in the map, while declared functions are not included.

◆ global_infos

ffi::Map<ffi::String, ffi::Array<GlobalInfo> > tvm::script::ir_builder::ir::IRModuleFrameNode::global_infos

IRModule's global_infos.

◆ global_var_map

ffi::Map<ffi::String, GlobalVar> tvm::script::ir_builder::ir::IRModuleFrameNode::global_var_map

A map from string names to global variables that ensures global uniqueness.


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