[llvm-commits] [llvm] r136083 - in /llvm/trunk: include/llvm-c/Transforms/IPO.h lib/Transforms/IPO/IPO.cpp
Rafael Espindola
rafael.espindola at gmail.com
Tue Jul 26 08:23:23 PDT 2011
Author: rafael
Date: Tue Jul 26 10:23:23 2011
New Revision: 136083
URL: http://llvm.org/viewvc/llvm-project?rev=136083&view=rev
Log:
Add LLVMAddAlwaysInlinerPass to the C API.
Modified:
llvm/trunk/include/llvm-c/Transforms/IPO.h
llvm/trunk/lib/Transforms/IPO/IPO.cpp
Modified: llvm/trunk/include/llvm-c/Transforms/IPO.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Transforms/IPO.h?rev=136083&r1=136082&r2=136083&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/Transforms/IPO.h (original)
+++ llvm/trunk/include/llvm-c/Transforms/IPO.h Tue Jul 26 10:23:23 2011
@@ -36,6 +36,9 @@
/** See llvm::createFunctionInliningPass function. */
void LLVMAddFunctionInliningPass(LLVMPassManagerRef PM);
+/** See llvm::createAlwaysInlinerPass function. */
+void LLVMAddAlwaysInlinerPass(LLVMPassManagerRef PM);
+
/** See llvm::createGlobalDCEPass function. */
void LLVMAddGlobalDCEPass(LLVMPassManagerRef PM);
Modified: llvm/trunk/lib/Transforms/IPO/IPO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/IPO.cpp?rev=136083&r1=136082&r2=136083&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/IPO.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/IPO.cpp Tue Jul 26 10:23:23 2011
@@ -70,6 +70,10 @@
unwrap(PM)->add(createFunctionInliningPass());
}
+void LLVMAddAlwaysInlinerPass(LLVMPassManagerRef PM) {
+ unwrap(PM)->add(llvm::createAlwaysInlinerPass());
+}
+
void LLVMAddGlobalDCEPass(LLVMPassManagerRef PM) {
unwrap(PM)->add(createGlobalDCEPass());
}
More information about the llvm-commits
mailing list