summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-09 05:26:48 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-09 05:26:48 +0000
commit8a49d049e17b1e0916aa4c1b662444b4b6da3405 (patch)
tree6cde3597c9ab27b3380b895394bf15457dbf371c /llvm/include
parent5894fe430aa6195ea6e26b57ab817588349efcd0 (diff)
downloadbcm5719-llvm-8a49d049e17b1e0916aa4c1b662444b4b6da3405.tar.gz
bcm5719-llvm-8a49d049e17b1e0916aa4c1b662444b4b6da3405.zip
Add a hook to turn on the internalize pass through the LTO interface.
llvm-svn: 154306
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm-c/lto.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h
index f822b475249..c0f4c6b30c8 100644
--- a/llvm/include/llvm-c/lto.h
+++ b/llvm/include/llvm-c/lto.h
@@ -251,6 +251,12 @@ lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
int nargs);
/**
+ * Enables the internalize pass during LTO optimizations.
+ */
+extern void
+lto_codegen_whole_program_optimization(lto_code_gen_t cg);
+
+/**
* Adds to a list of all global symbols that must exist in the final
* generated code. If a function is not listed, it might be
* inlined into every usage and optimized away.
@@ -258,7 +264,6 @@ lto_codegen_set_assembler_args(lto_code_gen_t cg, const char **args,
extern void
lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
-
/**
* Writes a new object file at the specified path that contains the
* merged contents of all modules added so far.
@@ -267,7 +272,6 @@ lto_codegen_add_must_preserve_symbol(lto_code_gen_t cg, const char* symbol);
extern bool
lto_codegen_write_merged_modules(lto_code_gen_t cg, const char* path);
-
/**
* Generates code for all added modules into one native object file.
* On success returns a pointer to a generated mach-o/ELF buffer and
OpenPOWER on IntegriCloud