aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-22 15:03:27 +0000
committerDan Gohman <gohman@apple.com>2009-06-22 15:03:27 +0000
commit9e62bb045dc728b995d2d30ba85b3e84693bd5bd (patch)
treec76609130e9598d6c1dc76ffd5b44d4340d59ae3 /include
parent6419491714485fe43685ea97dcc7ef83a872cbe8 (diff)
downloadexternal_llvm-9e62bb045dc728b995d2d30ba85b3e84693bd5bd.zip
external_llvm-9e62bb045dc728b995d2d30ba85b3e84693bd5bd.tar.gz
external_llvm-9e62bb045dc728b995d2d30ba85b3e84693bd5bd.tar.bz2
Add a getUMinFromMismatchedTypes helper function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73883 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/ScalarEvolution.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h
index 8d5136c..d73c30f 100644
--- a/include/llvm/Analysis/ScalarEvolution.h
+++ b/include/llvm/Analysis/ScalarEvolution.h
@@ -553,6 +553,12 @@ namespace llvm {
SCEVHandle getUMaxFromMismatchedTypes(const SCEVHandle &LHS,
const SCEVHandle &RHS);
+ /// getUMinFromMismatchedTypes - Promote the operands to the wider of
+ /// the types using zero-extension, and then perform a umin operation
+ /// with them.
+ SCEVHandle getUMinFromMismatchedTypes(const SCEVHandle &LHS,
+ const SCEVHandle &RHS);
+
/// hasSCEV - Return true if the SCEV for this value has already been
/// computed.
bool hasSCEV(Value *V) const;