[llvm-commits] [llvm] r100454 - /llvm/trunk/include/llvm/CodeGen/MachineDominators.h

Dan Gohman gohman at apple.com
Mon Apr 5 12:16:38 PDT 2010


Author: djg
Date: Mon Apr  5 14:16:38 2010
New Revision: 100454

URL: http://llvm.org/viewvc/llvm-project?rev=100454&view=rev
Log:
Add an isReachableFromEntry to MachineDominators, following the one
in Dominators.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineDominators.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineDominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineDominators.h?rev=100454&r1=100453&r2=100454&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineDominators.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineDominators.h Mon Apr  5 14:16:38 2010
@@ -156,8 +156,13 @@
   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;





More information about the llvm-commits mailing list