You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/04/19 21:52:17 UTC
[GitHub] [tvm] alanmacd commented on a diff in pull request #11044: [microTVM] Add support for host-driven AoT Executor
alanmacd commented on code in PR #11044:
URL: https://github.com/apache/tvm/pull/11044#discussion_r853516218
##########
src/target/source/source_module.cc:
##########
@@ -771,11 +771,41 @@ class MetadataSerializer : public AttrVisitor {
std::vector<bool> is_defining_struct_;
};
+namespace {
+runtime::Module CreateAotMetadataModule(runtime::metadata::Metadata aot_metadata) {
+ MetadataSerializer serializer;
+ serializer.CodegenMetadata(aot_metadata);
+ std::stringstream lookup_func;
+ lookup_func << "#ifdef __cplusplus\n"
+ << "extern \"C\"\n"
+ << "#endif\n";
+
+ lookup_func << "TVM_DLL int32_t " << ::tvm::runtime::symbol::tvm_get_c_metadata
Review Comment:
add TODO:
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org