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 {
57 refl::ObjectDef<IRModuleFrameNode>()
64 static constexpr
const char*
_type_key =
"script.ir_builder.IRModuleFrame";
Managed reference to an IRBuilderFrameNode.
Definition: base.h:103
A frame that represents the IRModule frame with functions and global variables.
Definition: frame.h:41
Map< String, Array< GlobalInfo > > global_infos
IRModule's global_infos.
Definition: frame.h:53
TVM_DECLARE_FINAL_OBJECT_INFO(IRModuleFrameNode, IRBuilderFrameNode)
Map< GlobalVar, BaseFunc > functions
A map from GlobalVar to all global functions.
Definition: frame.h:49
Map< String, GlobalVar > global_var_map
A map from string names to global variables that ensures global uniqueness.
Definition: frame.h:44
static constexpr const char * _type_key
Definition: frame.h:64
Map< String, Any > attrs
IRModule's attributes.
Definition: frame.h:51
void ExitWithScope() final
The method called when exiting RAII scope.
static void RegisterReflection()
Definition: frame.h:55
Managed reference to IRModuleFrameNode.
Definition: frame.h:76
TVM_DEFINE_MUTABLE_NOTNULLABLE_OBJECT_REF_METHODS(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.