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>
50 ffi::Map<ffi::String, Any>
attrs;
55 namespace refl = tvm::ffi::reflection;
56 refl::ObjectDef<IRModuleFrameNode>()
RAII wrapper function to enter and exit a context object similar to python's with syntax.
Definition with_context.h:59
Managed reference to an IRBuilderFrameNode.
Definition base.h:103
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(ffi::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.
An object that builds and maintains block scope and StmtSref mapping for Dependence analysis.
Definition analyzer.h:40