tvm_tirx.ir.GlobalVar#
- class tvm_tirx.ir.GlobalVar(name_hint, loc=UNKNOWN_LOC)#
Bases:
ExprA global variable in the IR.
GlobalVar is used to refer to the global functions stored in the IRModule.
Each construction creates a distinct reference, even when names match. Use
module.get_global_var(name)to retrieve the stored reference when constructing calls or replacing definitions.- Parameters:
name_hint (str) – The name of the variable.
loc (Location, optional) – The location of this node in the source code.
- property name_hint#