forked from OSchip/llvm-project
parent
c91e1ff50d
commit
2a4c5b050e
|
@ -18,7 +18,6 @@
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
|
|
||||||
/// PostDominatorSet Class - Concrete subclass of DominatorSetBase that is used
|
/// PostDominatorSet Class - Concrete subclass of DominatorSetBase that is used
|
||||||
/// to compute the post-dominator set. Because there can be multiple exit nodes
|
/// to compute the post-dominator set. Because there can be multiple exit nodes
|
||||||
/// in an LLVM function, we calculate post dominators with a special null block
|
/// in an LLVM function, we calculate post dominators with a special null block
|
||||||
|
@ -31,19 +30,17 @@ struct PostDominatorSet : public DominatorSetBase {
|
||||||
|
|
||||||
virtual bool runOnFunction(Function &F);
|
virtual bool runOnFunction(Function &F);
|
||||||
|
|
||||||
// getAnalysisUsage - This pass does not modify the function at all.
|
/// getAnalysisUsage - This pass does not modify the function at all.
|
||||||
//
|
///
|
||||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
AU.setPreservesAll();
|
AU.setPreservesAll();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/// ImmediatePostDominators Class - Concrete subclass of ImmediateDominatorsBase
|
||||||
//===-------------------------------------
|
/// that is used to compute the immediate post-dominators.
|
||||||
// ImmediatePostDominators Class - Concrete subclass of ImmediateDominatorsBase
|
///
|
||||||
// that is used to compute the immediate post-dominators.
|
|
||||||
//
|
|
||||||
struct ImmediatePostDominators : public ImmediateDominatorsBase {
|
struct ImmediatePostDominators : public ImmediateDominatorsBase {
|
||||||
ImmediatePostDominators() : ImmediateDominatorsBase(true) {}
|
ImmediatePostDominators() : ImmediateDominatorsBase(true) {}
|
||||||
|
|
||||||
|
@ -64,10 +61,9 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//===-------------------------------------
|
/// PostDominatorTree Class - Concrete subclass of DominatorTree that is used to
|
||||||
// PostDominatorTree Class - Concrete subclass of DominatorTree that is used to
|
/// compute the a post-dominator tree.
|
||||||
// compute the a post-dominator tree.
|
///
|
||||||
//
|
|
||||||
struct PostDominatorTree : public DominatorTreeBase {
|
struct PostDominatorTree : public DominatorTreeBase {
|
||||||
PostDominatorTree() : DominatorTreeBase(true) {}
|
PostDominatorTree() : DominatorTreeBase(true) {}
|
||||||
|
|
||||||
|
@ -88,10 +84,9 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//===-------------------------------------
|
/// PostDominanceFrontier Class - Concrete subclass of DominanceFrontier that is
|
||||||
// PostDominanceFrontier Class - Concrete subclass of DominanceFrontier that is
|
/// used to compute the a post-dominance frontier.
|
||||||
// used to compute the a post-dominance frontier.
|
///
|
||||||
//
|
|
||||||
struct PostDominanceFrontier : public DominanceFrontierBase {
|
struct PostDominanceFrontier : public DominanceFrontierBase {
|
||||||
PostDominanceFrontier() : DominanceFrontierBase(true) {}
|
PostDominanceFrontier() : DominanceFrontierBase(true) {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue