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>
33 namespace ir_builder {
51 ffi::Map<ffi::String, Any>
attrs;
57 refl::ObjectDef<IRModuleFrameNode>()
78 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:41
ffi::Map< GlobalVar, BaseFunc > functions
A map from GlobalVar to all global functions.
Definition: frame.h:49
ffi::Map< ffi::String, Any > attrs
IRModule's attributes.
Definition: frame.h:51
ffi::Map< ffi::String, ffi::Array< GlobalInfo > > global_infos
IRModule's global_infos.
Definition: frame.h:53
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:44
void ExitWithScope() final
The method called when exiting RAII scope.
static void RegisterReflection()
Definition: frame.h:55
Managed reference to IRModuleFrameNode.
Definition: frame.h:75
IRModuleFrame(ObjectPtr< IRModuleFrameNode > data)
Definition: frame.h:77
TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE(IRModuleFrame, IRBuilderFrame, IRModuleFrameNode)
IRModule that holds the functions and type definitions.
Definition: repr_printer.h:91
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:37
Definitions and helper macros for IR/AST nodes.