Function tvm::tirx::FindEntryFunc

Function tvm::tirx::FindEntryFunc#

Function Documentation#

const FunctionObj *tvm::tirx::FindEntryFunc(const IRModule &mod, GlobalVar *result_g_var)#

Find the entry function of the given IRModule, i.e, functions marked by tirx::attr::kIsEntryFunc.name, whose name is main or being the only Function.

Parameters:
  • mod – The IRModule to find the entry function.

  • result_g_var – The result GlobalVar of the entry function.

Returns:

The entry function.