summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-04-24 00:39:29 +0000
committerCraig Topper <craig.topper@intel.com>2018-04-24 00:39:29 +0000
commit1bcb258ba319c380b206c2ab7d9f8baaffcb2058 (patch)
treea37e3d3620a9977e669b37d8fb1bcf486189fee6 /llvm/include/llvm-c
parent8e807bf3fa4157ef16b314c1b0d0e5ddc2c3de88 (diff)
downloadbcm5719-llvm-1bcb258ba319c380b206c2ab7d9f8baaffcb2058.tar.gz
bcm5719-llvm-1bcb258ba319c380b206c2ab7d9f8baaffcb2058.zip
[AggressiveInstCombine] Add aggressive inst combiner to the LLVM C API.
I just tried to copy what was done for regular InstCombine. Hopefully I didn't miss anything. llvm-svn: 330668
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r--llvm/include/llvm-c/Initialization.h1
-rw-r--r--llvm/include/llvm-c/Transforms/Scalar.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Initialization.h b/llvm/include/llvm-c/Initialization.h
index 90c8396f7ad..e45eafb139f 100644
--- a/llvm/include/llvm-c/Initialization.h
+++ b/llvm/include/llvm-c/Initialization.h
@@ -37,6 +37,7 @@ void LLVMInitializeScalarOpts(LLVMPassRegistryRef R);
void LLVMInitializeObjCARCOpts(LLVMPassRegistryRef R);
void LLVMInitializeVectorization(LLVMPassRegistryRef R);
void LLVMInitializeInstCombine(LLVMPassRegistryRef R);
+void LLVMInitializeAggressiveInstCombiner(LLVMPassRegistryRef R);
void LLVMInitializeIPO(LLVMPassRegistryRef R);
void LLVMInitializeInstrumentation(LLVMPassRegistryRef R);
void LLVMInitializeAnalysis(LLVMPassRegistryRef R);
diff --git a/llvm/include/llvm-c/Transforms/Scalar.h b/llvm/include/llvm-c/Transforms/Scalar.h
index c828813cbff..88fff2a8ad4 100644
--- a/llvm/include/llvm-c/Transforms/Scalar.h
+++ b/llvm/include/llvm-c/Transforms/Scalar.h
@@ -35,6 +35,9 @@ extern "C" {
/** See llvm::createAggressiveDCEPass function. */
void LLVMAddAggressiveDCEPass(LLVMPassManagerRef PM);
+/** See llvm::createAggressiveInstCombinerPass function. */
+void LLVMAddAggressiveInstCombinerPass(LLVMPassManagerRef PM);
+
/** See llvm::createBitTrackingDCEPass function. */
void LLVMAddBitTrackingDCEPass(LLVMPassManagerRef PM);
OpenPOWER on IntegriCloud