19 #ifndef TVM_SCRIPT_IR_BUILDER_IR_FRAME_H_
20 #define TVM_SCRIPT_IR_BUILDER_IR_FRAME_H_
22 #include <tvm/ffi/reflection/registry.h>
32 namespace ir_builder {
50 ffi::Map<ffi::String, Any>
attrs;
56 refl::ObjectDef<IRModuleFrameNode>()
77 TVM_FFI_ICHECK(data !=
nullptr);
Managed reference to an IRBuilderFrameNode.
Definition: base.h:104
A frame that represents the IRModule frame with functions and global variables.
Definition: frame.h:40
ffi::Map< GlobalVar, BaseFunc > functions
A map from GlobalVar to all global functions.
Definition: frame.h:48
ffi::Map< ffi::String, Any > attrs
IRModule's attributes.
Definition: frame.h:50
ffi::Map< ffi::String, ffi::Array< GlobalInfo > > global_infos
IRModule's global_infos.
Definition: frame.h:52
TVM_FFI_DECLARE_OBJECT_INFO_FINAL("script.ir_builder.IRModuleFrame", IRModuleFrameNode, IRBuilderFrameNode)
ffi::Map< ffi::String, GlobalVar > global_var_map
A map from string names to global variables that ensures global uniqueness.
Definition: frame.h:43
void ExitWithScope() final
The method called when exiting RAII scope.
static void RegisterReflection()
Definition: frame.h:54
Managed reference to IRModuleFrameNode.
Definition: frame.h:74
IRModuleFrame(ObjectPtr< IRModuleFrameNode > data)
Definition: frame.h:76
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(IRModuleFrame, IRBuilderFrame, IRModuleFrameNode)
IRModule that holds the functions and type definitions.
Definition: repr_printer.h:91
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition: analyzer.h:37