yongwww commented on code in PR #14189: URL: https://github.com/apache/tvm/pull/14189#discussion_r1128817136
########## include/tvm/script/ir_builder/relax/ir.h: ########## @@ -69,6 +69,23 @@ TVM_DLL void FuncRetStructInfo(const tvm::relax::StructInfo& ret_sinfo); */ TVM_DLL void FuncRetValue(const tvm::relax::Expr& value); +/*! + * \brief Add a Relax function or a TIR PrimFunc to the IRModuleFrame. + * \param func The function to be added. + * \param func_name_hint The name hint of the function to be added. + * \note If the function to be added already exists, return its + * GlobalVar directly. + * \return The global var bound to the added function. + */ +TVM_DLL GlobalVar AddFunction(const BaseFunc& func, String func_name_hint); Review Comment: ohhh, fixed, thanks for the suggestion!!! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
