mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Factor the calculation details for PostDomTree out of PostDominators.cpp and
into a separate header file. Next step: merging PostDominatorCalculation.h with DominatorCalculation.h. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42251 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -29,7 +29,7 @@ struct PostDominatorTree : public DominatorTreeBase {
|
||||
|
||||
virtual bool runOnFunction(Function &F) {
|
||||
reset(); // Reset from the last time we were run...
|
||||
calculate(F);
|
||||
PDTcalculate(*this, F);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -37,11 +37,13 @@ struct PostDominatorTree : public DominatorTreeBase {
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
private:
|
||||
void calculate(Function &F);
|
||||
unsigned DFSPass(BasicBlock *V, unsigned N);
|
||||
void Compress(BasicBlock *V, InfoRec &VInfo);
|
||||
BasicBlock *Eval(BasicBlock *V);
|
||||
void Link(BasicBlock *V, BasicBlock *W, InfoRec &WInfo);
|
||||
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);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user