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

Unified Diff: llvm/tools/lto/LTOCodeGenerator.h

Issue 10808021: Change LLVM bitcode linking to use tree reduction to scale better (Closed)
Patch Set: stuff 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 | « llvm/tools/llc/llc.cpp ('k') | llvm/tools/lto/LTOCodeGenerator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: llvm/tools/lto/LTOCodeGenerator.h
===================================================================
--- a/llvm/tools/lto/LTOCodeGenerator.h
+++ b/llvm/tools/lto/LTOCodeGenerator.h
@@ -19,6 +19,7 @@
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm-c/lto.h"
#include <string>
+#include <vector>
namespace llvm {
class LLVMContext;
@@ -40,6 +41,12 @@
~LTOCodeGenerator();
bool addModule(struct LTOModule*, std::string &errMsg);
+ // @LOCALMOD-BEGIN
+ // Alternative methods of adding modules, which delay merging modules until
+ // all modules are available.
+ bool gatherModuleForLinking(struct LTOModule*);
+ bool linkGatheredModulesAndDispose(std::string &errMsg);
+ // @LOCALMOD-END
bool setDebugInfo(lto_debug_model, std::string &errMsg);
bool setCodePICModel(lto_codegen_model, std::string &errMsg);
@@ -87,6 +94,9 @@
std::vector<char*> _codegenOptions;
std::string _mCpu;
std::string _nativeObjectPath;
+
+ // @LOCALMOD
+ std::vector<LTOModule*> _gatheredModules;
};
#endif // LTO_CODE_GENERATOR_H
« no previous file with comments | « llvm/tools/llc/llc.cpp ('k') | llvm/tools/lto/LTOCodeGenerator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698