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:07 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2010-10-13 05:54:07 +0000
commit9ee5c5077690a4de31e22bb9e135deb6da3f68fb (patch)
tree417ddc48a3122b236e6fa68a7edfe8a1efd7a2b2 /include/llvm/Analysis/RegionInfo.h
parent6688c4a742b3d4ad511e35b463c2fe0f8abc04ab (diff)
downloadllvm-9ee5c5077690a4de31e22bb9e135deb6da3f68fb.tar.gz
llvm-9ee5c5077690a4de31e22bb9e135deb6da3f68fb.tar.bz2
llvm-9ee5c5077690a4de31e22bb9e135deb6da3f68fb.tar.xz
RegionInfo: Allow to set the parent region of a basic block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/RegionInfo.h')
-rw-r--r--include/llvm/Analysis/RegionInfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Analysis/RegionInfo.h b/include/llvm/Analysis/RegionInfo.h
index 7a2670f2c0..aca13517b5 100644
--- a/include/llvm/Analysis/RegionInfo.h
+++ b/include/llvm/Analysis/RegionInfo.h
@@ -565,6 +565,12 @@ public:
/// region containing BB.
Region *getRegionFor(BasicBlock *BB) const;
+ /// @brief Set the smallest region that surrounds a basic block.
+ ///
+ /// @param BB The basic block surrounded by a region.
+ /// @param R The smallest region that surrounds BB.
+ void setRegionFor(BasicBlock *BB, Region *R);
+
/// @brief A shortcut for getRegionFor().
///
/// @param BB The basic block.