summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm-c/Transforms
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-08-23 10:27:02 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-08-23 10:27:02 +0000
commit37cd6cfba2e92fa89fbc4e8653edf1bb3229ba0d (patch)
treee6823002829472937c12857c88104b02b2d3b7a3 /llvm/include/llvm-c/Transforms
parent1f1b2756a467b8ab835109c4aae6a4e84cbd64c3 (diff)
downloadbcm5719-llvm-37cd6cfba2e92fa89fbc4e8653edf1bb3229ba0d.tar.gz
bcm5719-llvm-37cd6cfba2e92fa89fbc4e8653edf1bb3229ba0d.zip
Turn MipsOptimizeMathLibCalls into a target-independent scalar transform
...so that it can be used for z too. Most of the code is the same. The only real change is to use TargetTransformInfo to test when a sqrt instruction is available. The pass is opt-in because at the moment it only handles sqrt. llvm-svn: 189097
Diffstat (limited to 'llvm/include/llvm-c/Transforms')
-rw-r--r--llvm/include/llvm-c/Transforms/Scalar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm-c/Transforms/Scalar.h b/llvm/include/llvm-c/Transforms/Scalar.h
index a2c4d6116f0..2456c6c7261 100644
--- a/llvm/include/llvm-c/Transforms/Scalar.h
+++ b/llvm/include/llvm-c/Transforms/Scalar.h
@@ -74,6 +74,9 @@ void LLVMAddLoopUnswitchPass(LLVMPassManagerRef PM);
/** See llvm::createMemCpyOptPass function. */
void LLVMAddMemCpyOptPass(LLVMPassManagerRef PM);
+/** See llvm::createPartiallyInlineLibCallsPass function. */
+void LLVMAddPartiallyInlineLibCallsPass(LLVMPassManagerRef PM);
+
/** See llvm::createPromoteMemoryToRegisterPass function. */
void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM);
OpenPOWER on IntegriCloud