aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-09-09 18:37:31 +0000
committerDan Gohman <gohman@apple.com>2010-09-09 18:37:31 +0000
commitc8ddbdabb697b20b948c1a56af6062f26691532a (patch)
tree5d824f38bab1ab4ea837b4fbac39c8023cffc53e /include
parente744541788298d0ef129aa2d38e9aef865218311 (diff)
downloadexternal_llvm-c8ddbdabb697b20b948c1a56af6062f26691532a.zip
external_llvm-c8ddbdabb697b20b948c1a56af6062f26691532a.tar.gz
external_llvm-c8ddbdabb697b20b948c1a56af6062f26691532a.tar.bz2
Extend the getDependence query with support for PHI translation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/AliasAnalysis.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/Analysis/AliasAnalysis.h b/include/llvm/Analysis/AliasAnalysis.h
index c74f9e1..a03e0c8 100644
--- a/include/llvm/Analysis/AliasAnalysis.h
+++ b/include/llvm/Analysis/AliasAnalysis.h
@@ -340,17 +340,20 @@ public:
/// WARNING: This is an experimental interface.
DependenceResult getDependence(const Instruction *First,
const Instruction *Second) {
- return getDependence(First, Default, Second, Default);
+ return getDependence(First, 0, Default, Second, 0, Default);
}
/// getDependence - Determine the dependence relationship between the
/// instructions. This does not include "register" dependencies; it just
/// considers memory references and other side effects. This overload
- /// accepts additional flags to refine the query.
+ /// has additional parameters to allow phi-translated addresses to be
+ /// specified, and additional flags to refine the query.
/// WARNING: This is an experimental interface.
virtual DependenceResult getDependence(const Instruction *First,
+ const Value *FirstPHITranslatedAddr,
DependenceQueryFlags FirstFlags,
const Instruction *Second,
+ const Value *SecondPHITranslatedAddr,
DependenceQueryFlags SecondFlags);
//===--------------------------------------------------------------------===//
@@ -403,8 +406,10 @@ protected:
/// getDependenceViaModRefInfo - Helper function for implementing getDependence
/// in implementations which already have getModRefInfo implementations.
DependenceResult getDependenceViaModRefInfo(const Instruction *First,
+ const Value *FirstPHITranslatedAddr,
DependenceQueryFlags FirstFlags,
const Instruction *Second,
+ const Value *SecondPHITranslatedAddr,
DependenceQueryFlags SecondFlags);
};