SmallVectorize.
[oota-llvm.git] / include / llvm / Analysis / RegionInfo.h
index 4e7d303863b880775ead46353a3b1d13d491ad9c..737d46cac66c65d8f85a2a24004fd1c16fc14e5a 100644 (file)
@@ -292,6 +292,11 @@ public:
   /// @return The depth of the region.
   unsigned getDepth() const;
 
+  /// @brief Check if a Region is the TopLevel region.
+  ///
+  /// The toplevel region represents the whole function.
+  bool isTopLevelRegion() const { return exit == NULL; }
+
   /// @brief Return a new (non canonical) region, that is obtained by joining
   ///        this region with its predecessors.
   ///