Add an isReachableFromEntry to MachineDominators, following the one
authorDan Gohman <gohman@apple.com>
Mon, 5 Apr 2010 19:16:38 +0000 (19:16 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 5 Apr 2010 19:16:38 +0000 (19:16 +0000)
in Dominators.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100454 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineDominators.h

index 086528aaf57c37463849e65a877769349f0dbeef..48695d500b191e4608916a768b060520ddd7900d 100644 (file)
@@ -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;