tvm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-tvm] kumasento commented on a change in pull request #4847: Return empty CSourceModule when no lowered_funcs exists in Relay mod
Date Wed, 11 Mar 2020 10:48:43 GMT
kumasento commented on a change in pull request #4847: Return empty CSourceModule when no lowered_funcs
exists in Relay mod
URL: https://github.com/apache/incubator-tvm/pull/4847#discussion_r390886368
 
 

 ##########
 File path: src/target/llvm/llvm_module.cc
 ##########
 @@ -356,6 +356,26 @@ TVM_REGISTER_GLOBAL("codegen.build_llvm")
     *rv = runtime::Module(n);
   });
 
+TVM_REGISTER_GLOBAL("codegen.LLVMModuleCreate")
+.set_body([](TVMArgs args, TVMRetValue *rv) {
+  auto n = make_object<LLVMModuleNode>();
+  auto target = args[0].operator std::string();
+  auto module_name = args[1].operator std::string();
+
+  // create a default data layout
 
 Review comment:
   Thanks @FrozenGene I've updated the comments based on your comments :)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message