diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-05 19:16:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-05 19:16:38 +0000 |
commit | 54ab2e9326993d9db0e393d3285a5c0a72af2c51 (patch) | |
tree | 172aeeae7c0fe20b9f21b639c0abf5e06556e8fc /include/llvm/CodeGen/MachineDominators.h | |
parent | 2952c86c6077337f3f01ca137a1996990c9fd2ee (diff) |
Add an isReachableFromEntry to MachineDominators, following the one
in Dominators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineDominators.h')
-rw-r--r-- | include/llvm/CodeGen/MachineDominators.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineDominators.h b/include/llvm/CodeGen/MachineDominators.h index 086528aaf5..48695d500b 100644 --- a/include/llvm/CodeGen/MachineDominators.h +++ b/include/llvm/CodeGen/MachineDominators.h @@ -156,8 +156,13 @@ public: inline void splitBlock(MachineBasicBlock* NewBB) { DT->splitBlock(NewBB); } - - + + /// isReachableFromEntry - Return true if A is dominated by the entry + /// block of the function containing it. + bool isReachableFromEntry(MachineBasicBlock *A) { + return DT->isReachableFromEntry(A); + } + virtual void releaseMemory(); virtual void print(raw_ostream &OS, const Module*) const; |