Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(304)

Unified Diff: llvm/include/llvm-c/lto.h

Issue 10808021: Change LLVM bitcode linking to use tree reduction to scale better (Closed)
Patch Set: Added comments Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | llvm/tools/gold/gold-plugin.cpp » ('j') | llvm/tools/gold/gold-plugin.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: llvm/include/llvm-c/lto.h
===================================================================
--- a/llvm/include/llvm-c/lto.h
+++ b/llvm/include/llvm-c/lto.h
@@ -259,7 +259,26 @@
extern bool
lto_codegen_add_module(lto_code_gen_t cg, lto_module_t mod);
+/* @LOCALMOD-BEGIN */
+/**
+ * Add an object module to the set of modules for which code will be generated.
+ * This does not merge the module immediately, unlike lto_codegen_add_module.
+ * It will hold onto the module until the user calls
+ * lto_codegen_link_gathered_modules_and_dispose(). The lto_module_t
+ * should now by owned by the lto_code_gen_t, and will be freed when
+ * the link is done.
+ */
+extern bool
+lto_codegen_gather_module_for_link(lto_code_gen_t cg, lto_module_t mod);
+/**
+ * Merges modules that are part of the set of modules gathered by
+ * lto_codegen_gather_module_for_link(), and the also destroys the modules
+ * as lto_module_dispose() would.
+ */
+extern bool
+lto_codegen_link_gathered_modules_and_dispose(lto_code_gen_t cg);
+/* @LOCALMOD-END*/
/**
* Sets if debug info should be generated.
« no previous file with comments | « no previous file | llvm/tools/gold/gold-plugin.cpp » ('j') | llvm/tools/gold/gold-plugin.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698