aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-07-25 19:57:03 +0000
committerOwen Anderson <resistor@mac.com>2007-07-25 19:57:03 +0000
commit0cd320362e91852c8f7f2c8c4841498aab7f92fa (patch)
tree7174037d9f9bcdea411053350575427b91a13fd8 /include
parent7e9e10bd46dc4fd6d7de3ed1cbe28b3a058736fc (diff)
downloadexternal_llvm-0cd320362e91852c8f7f2c8c4841498aab7f92fa.zip
external_llvm-0cd320362e91852c8f7f2c8c4841498aab7f92fa.tar.gz
external_llvm-0cd320362e91852c8f7f2c8c4841498aab7f92fa.tar.bz2
Add basic support for performing whole-function RLE.
Note: This has not yet been thoroughly tested. Use at your own risk. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/MemoryDependenceAnalysis.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h
index 8f4fca0..4428bb6 100644
--- a/include/llvm/Analysis/MemoryDependenceAnalysis.h
+++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h
@@ -38,7 +38,8 @@ class MemoryDependenceAnalysis : public FunctionPass {
Instruction* getCallSiteDependency(CallSite C, Instruction* start,
bool local = true);
- SmallPtrSet<Instruction*, 4> nonLocalHelper(Instruction* query, BasicBlock* block);
+ bool nonLocalHelper(Instruction* query, BasicBlock* block,
+ DenseMap<BasicBlock*, Value*>& resp);
public:
static Instruction* NonLocal;
@@ -67,7 +68,8 @@ class MemoryDependenceAnalysis : public FunctionPass {
Instruction* getDependency(Instruction* query, Instruction* start = 0,
BasicBlock* block = 0);
- SmallPtrSet<Instruction*, 4> getNonLocalDependency(Instruction* query);
+ bool getNonLocalDependency(Instruction* query,
+ DenseMap<BasicBlock*, Value*>& resp);
/// removeInstruction - Remove an instruction from the dependence analysis,
/// updating the dependence of instructions that previously depended on it.