aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-09-24 02:29:29 +0000
committerOwen Anderson <resistor@mac.com>2007-09-24 02:29:29 +0000
commit68099d58cbad1fc6de980b2b01b6f221b560d5d5 (patch)
tree64c23d8755eb5f95175f232cc776ef130e962631 /include
parent79653fcdc233476ad78bc232fb2c3764c89427f4 (diff)
downloadexternal_llvm-68099d58cbad1fc6de980b2b01b6f221b560d5d5.zip
external_llvm-68099d58cbad1fc6de980b2b01b6f221b560d5d5.tar.gz
external_llvm-68099d58cbad1fc6de980b2b01b6f221b560d5d5.tar.bz2
Merge significant portions of the DomTree and PostDomTree implementations.
The two remaining unmerged parts are DFSPass, and the Calculate(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/Dominators.h9
-rw-r--r--include/llvm/Analysis/PostDominators.h3
2 files changed, 5 insertions, 7 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h
index f4c31a5..b9c85b5 100644
--- a/include/llvm/Analysis/Dominators.h
+++ b/include/llvm/Analysis/Dominators.h
@@ -275,6 +275,11 @@ public:
virtual void dump();
protected:
+ friend void Compress(DominatorTreeBase& DT, BasicBlock *VIn);
+ friend BasicBlock *Eval(DominatorTreeBase& DT, BasicBlock *V);
+ friend void Link(DominatorTreeBase& DT, BasicBlock *V,
+ BasicBlock *W, InfoRec &WInfo);
+
/// updateDFSNumbers - Assign In and Out numbers to the nodes while walking
/// dominator tree in dfs order.
void updateDFSNumbers();
@@ -314,10 +319,6 @@ public:
private:
friend void DTcalculate(DominatorTree& DT, Function& F);
- friend void DTCompress(DominatorTree& DT, BasicBlock *VIn);
- friend BasicBlock *DTEval(DominatorTree& DT, BasicBlock *v);
- friend void DTLink(DominatorTree& DT, BasicBlock *V,
- BasicBlock *W, InfoRec &WInfo);
unsigned DFSPass(BasicBlock *V, unsigned N);
};
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h
index 06a42da..b2a37ff 100644
--- a/include/llvm/Analysis/PostDominators.h
+++ b/include/llvm/Analysis/PostDominators.h
@@ -39,9 +39,6 @@ struct PostDominatorTree : public DominatorTreeBase {
private:
unsigned DFSPass(BasicBlock *V, unsigned N);
friend void PDTcalculate(PostDominatorTree& PDT, Function &F);
- friend void PDTCompress(PostDominatorTree& PDT, BasicBlock *V,
- InfoRec &VInfo);
- friend BasicBlock *PDTEval(PostDominatorTree& PDT, BasicBlock *V);
friend void PDTLink(PostDominatorTree& PDT,BasicBlock *V,
BasicBlock *W, InfoRec &WInfo);
};