aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/MemoryDependenceAnalysis.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-09 07:47:11 +0000
committerChris Lattner <sabre@nondot.org>2008-12-09 07:47:11 +0000
commit9863c3f507913f17de0fd707e27fde9dc35f6ca6 (patch)
tree5fb4faf5bd0621259350971770616851ecee5e4d /include/llvm/Analysis/MemoryDependenceAnalysis.h
parent77f86ad08775e0ed2a704ef09ffff3dbd6e04583 (diff)
downloadexternal_llvm-9863c3f507913f17de0fd707e27fde9dc35f6ca6.zip
external_llvm-9863c3f507913f17de0fd707e27fde9dc35f6ca6.tar.gz
external_llvm-9863c3f507913f17de0fd707e27fde9dc35f6ca6.tar.bz2
rename getNonLocalPointerDepInternal -> getNonLocalPointerDepFromBB
and split its inner loop out into a new GetNonLocalInfoForBlock function. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60751 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/MemoryDependenceAnalysis.h')
-rw-r--r--include/llvm/Analysis/MemoryDependenceAnalysis.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h
index da82d7a..f408423 100644
--- a/include/llvm/Analysis/MemoryDependenceAnalysis.h
+++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h
@@ -171,8 +171,6 @@ namespace llvm {
ReverseNonLocalPtrDepTy ReverseNonLocalPtrDeps;
-
-
/// PerInstNLInfo - This is the instruction we keep for each cached access
/// that we have for an instruction. The pointer is an owning pointer and
/// the bool indicates whether we have any dirty bits in the set.
@@ -253,10 +251,16 @@ namespace llvm {
MemDepResult getCallSiteDependencyFrom(CallSite C,
BasicBlock::iterator ScanIt,
BasicBlock *BB);
- void getNonLocalPointerDepInternal(Value *Pointer, uint64_t Size,
- bool isLoad, BasicBlock *BB,
- SmallVectorImpl<NonLocalDepEntry> &Result,
- SmallPtrSet<BasicBlock*, 64> &Visited);
+ void getNonLocalPointerDepFromBB(Value *Pointer, uint64_t Size,
+ bool isLoad, BasicBlock *BB,
+ SmallVectorImpl<NonLocalDepEntry> &Result,
+ SmallPtrSet<BasicBlock*, 64> &Visited);
+ MemDepResult GetNonLocalInfoForBlock(Value *Pointer, uint64_t PointeeSize,
+ bool isLoad, BasicBlock *BB,
+ NonLocalDepInfo *Cache,
+ unsigned NumSortedEntries);
+
+
void RemoveCachedNonLocalPointerDependencies(ValueIsLoadPair P);
/// verifyRemoved - Verify that the specified instruction does not occur