summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/RegionInfo.h
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2010-10-13 05:54:11 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2010-10-13 05:54:11 +0000
commitc69bd733c02a4e0ca25f7a2d6b9b05168720d373 (patch)
tree553ea2e0c3e2c8fa68eee5e065e9be169d9e7f80 /include/llvm/Analysis/RegionInfo.h
parent4bcc0228dcc90385e90f22cef38b2614d3aa3cd1 (diff)
downloadllvm-c69bd733c02a4e0ca25f7a2d6b9b05168720d373.tar.gz
llvm-c69bd733c02a4e0ca25f7a2d6b9b05168720d373.tar.bz2
llvm-c69bd733c02a4e0ca25f7a2d6b9b05168720d373.tar.xz
RegioInfo: Add getExpandedRegion().
getExpandedRegion() enables us to create non canonical regions. Those regions can be used to define the largerst region, that fullfills a certain property. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116397 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/RegionInfo.h')
-rw-r--r--include/llvm/Analysis/RegionInfo.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Analysis/RegionInfo.h b/include/llvm/Analysis/RegionInfo.h
index 1626abb36a..f982b9f9ff 100644
--- a/include/llvm/Analysis/RegionInfo.h
+++ b/include/llvm/Analysis/RegionInfo.h
@@ -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.