summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-05-08 20:26:55 +0000
committerDan Gohman <gohman@apple.com>2009-05-08 20:26:55 +0000
commitee750d142dbf8616193c66e718ef86520163d297 (patch)
tree34e953caf7d85a1a2031fa72df83b04716eb84b1 /llvm/include
parent85f4028f2e9ddf04e96bfc0faf321ffc53502674 (diff)
downloadbcm5719-llvm-ee750d142dbf8616193c66e718ef86520163d297.tar.gz
bcm5719-llvm-ee750d142dbf8616193c66e718ef86520163d297.zip
Factor out the code for creating SCEVs for GEPs into a
separate function. llvm-svn: 71252
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/ScalarEvolution.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h
index fb22fd47b3a..96490229f48 100644
--- a/llvm/include/llvm/Analysis/ScalarEvolution.h
+++ b/llvm/include/llvm/Analysis/ScalarEvolution.h
@@ -279,6 +279,10 @@ namespace llvm {
/// SCEVs.
SCEVHandle createNodeForPHI(PHINode *PN);
+ /// createNodeForGEP - Provide the special handling we need to analyze GEP
+ /// SCEVs.
+ SCEVHandle createNodeForGEP(GetElementPtrInst *GEP);
+
/// ReplaceSymbolicValueWithConcrete - This looks up the computed SCEV value
/// for the specified instruction and replaces any references to the
/// symbolic value SymName with the specified value. This is used during
OpenPOWER on IntegriCloud