RegioInfo: Add getExpandedRegion().
[oota-llvm.git] / include / llvm / Analysis / RegionInfo.h
index 1626abb36a035d2a6ebf6ec43b0a5693eb660da1..f982b9f9ff32d164299b00b28c675f91a9c822ca 100644 (file)
@@ -292,6 +292,14 @@ public:
   /// @return The depth of the region.
   unsigned getDepth() const;
 
+  /// @brief Return a new (non canonical) region, that is obtained by joining
+  ///        this region with its predecessors.
+  ///
+  /// @return A region also starting at getEntry(), but reaching to the next
+  ///         basic block that forms with getEntry() a (non canonical) region.
+  ///         NULL if such a basic block does not exist.
+  Region *getExpandedRegion() const;
+
   /// @brief Is this a simple region?
   ///
   /// A region is simple if it has exactly one exit and one entry edge.