[llvm-commits] CVS: llvm/include/llvm/Analysis/Dominators.h
Chris Lattner
clattner at apple.com
Sun Apr 8 18:00:39 PDT 2007
> --- llvm/include/llvm/Analysis/Dominators.h:1.67 Sun Apr 8
> 16:30:05 2007
> +++ llvm/include/llvm/Analysis/Dominators.h Sun Apr 8 19:52:49 2007
> @@ -27,6 +27,7 @@
> #define LLVM_ANALYSIS_DOMINATORS_H
>
> #include "llvm/Analysis/ET-Forest.h"
> +#include "llvm/Function.h"
> #include "llvm/Pass.h"
> #include <set>
Please move the method out-of-line so that you can avoid this #include.
> + bool isReachableFromEntry(BasicBlock* A) {
This should be const.
-Chris
> + return dominates(&A->getParent()->getEntryBlock(), A);
> + }
> +
> /// Return the nearest common dominator of A and B.
> BasicBlock *nearestCommonDominator(BasicBlock *A, BasicBlock *B)
> const {
> ETNode *NodeA = getNode(A);
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list