Adding IPSCCP and Internalize passes to the C-bindings
authorWesley Peck <peckw@wesleypeck.com>
Fri, 9 Apr 2010 20:43:20 +0000 (20:43 +0000)
committerWesley Peck <peckw@wesleypeck.com>
Fri, 9 Apr 2010 20:43:20 +0000 (20:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100893 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/Transforms/IPO.h
lib/Transforms/IPO/IPO.cpp

index 0a94315f62b2a3b9bef468a5ebbf3ea94c6249b6..d16e858bca39b5ee53406f059981d02f66da251a 100644 (file)
@@ -54,6 +54,12 @@ void LLVMAddLowerSetJmpPass(LLVMPassManagerRef PM);
 /** See llvm::createPruneEHPass function. */
 void LLVMAddPruneEHPass(LLVMPassManagerRef PM);
 
+/** See llvm::createIPSCCPPass function. */
+void LLVMAddIPSCCPPass(LLVMPassManagerRef PM);
+
+/** See llvm::createInternalizePass function. */
+void LLVMAddInternalizePass(LLVMPassManagerRef, unsigned AllButMain);
+
 // FIXME: Remove in LLVM 3.0.
 void LLVMAddRaiseAllocationsPass(LLVMPassManagerRef PM);
 
index 83e8624fe09df2ea624423195160873f928453f6..340b70eb026895cca8a3629d525dce3a04fe9672 100644 (file)
@@ -62,6 +62,15 @@ void LLVMAddPruneEHPass(LLVMPassManagerRef PM) {
   unwrap(PM)->add(createPruneEHPass());
 }
 
+void LLVMAddIPSCCPPass(LLVMPassManagerRef PM) {
+  unwrap(PM)->add(createIPSCCPPass());
+}
+
+void LLVMAddInternalizePass(LLVMPassManagerRef PM, unsigned AllButMain) {
+  unwrap(PM)->add(createInternalizePass(AllButMain != 0));
+}
+
+
 void LLVMAddRaiseAllocationsPass(LLVMPassManagerRef PM) {
   // FIXME: Remove in LLVM 3.0.
 }