Class IRModule#

Inheritance Relationships#

Base Type#

  • public ffi::ObjectRef

Class Documentation#

class IRModule : public ffi::ObjectRef#

Managed reference class to IRModuleObj.

See also

IRModuleObj

Public Types

using ContainerType = IRModuleObj#

Declare the container type.

Public Functions

explicit IRModule(ffi::Map<GlobalVar, BaseFunc> functions, DictAttrs attrs = DictAttrs(), ffi::Map<ffi::String, ffi::Array<GlobalInfo>> global_infos = {})#

constructor

Parameters:
  • functions – Functions in the module.

  • attrs – The module meta-data attributes.

  • global_infos – Global infos in the module.

inline IRModule()#

default constructor

inline explicit IRModule(ffi::ObjectPtr<IRModuleObj> n)#

Checked pointer construction required by ffi::RValueRef.

inline explicit IRModule(ffi::UnsafeInit tag)#

constructor with UnsafeInit

inline IRModuleObj *operator->() const#
Returns:

mutable pointers to the node.

inline IRModuleObj *CopyOnWrite()#

Public Static Functions

static IRModule FromExpr(const Expr &expr, const ffi::Map<GlobalVar, BaseFunc> &global_funcs = {})#

As for FromExprInContext, but assuming expr is bound to ‘main’ and no imports.