aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-30 18:41:10 +0000
committerChris Lattner <sabre@nondot.org>2004-03-30 18:41:10 +0000
commit18bdbc3dda73081193fa1070021558ea0c79691d (patch)
tree979e944eae16675bff62a9b60834c55d47043b4f /include/llvm/Transforms
parentfc33d30446843009b0eadf63c0bfca35ae2baac6 (diff)
downloadexternal_llvm-18bdbc3dda73081193fa1070021558ea0c79691d.zip
external_llvm-18bdbc3dda73081193fa1070021558ea0c79691d.tar.gz
external_llvm-18bdbc3dda73081193fa1070021558ea0c79691d.tar.bz2
Add a simple select instruction lowering pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12540 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/Scalar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h
index 59ff8f2..8b0a1d7 100644
--- a/include/llvm/Transforms/Scalar.h
+++ b/include/llvm/Transforms/Scalar.h
@@ -254,6 +254,12 @@ FunctionPass *createLowerAllocationsPass();
//
FunctionPass *createLowerSwitchPass();
+//===----------------------------------------------------------------------===//
+// This pass converts SelectInst instructions into conditional branch and PHI
+// instructions. If the OnlyFP flag is set to true, then only floating point
+// select instructions are lowered.
+//
+FunctionPass *createLowerSelectPass(bool OnlyFP = false);
//===----------------------------------------------------------------------===//
// This pass converts 'invoke' instructions calls, and 'unwind' instructions