Add single entry / single exit accessors.
authorTobias Grosser <grosser@fim.uni-passau.de>
Thu, 13 Jan 2011 23:18:04 +0000 (23:18 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Thu, 13 Jan 2011 23:18:04 +0000 (23:18 +0000)
commit21d842c35326281798f685661b88dedcd09c13aa
tree8eb4eb5d4890a2e09828b68681d1d034acc947f9
parent0c9f250d54ed59108fffe5ce2f7df7bc8448915c
Add single entry / single exit accessors.

Add methods for accessing the (single) entry / exit edge of a region. If no such
edge exists, null is returned.  Both accessors return the start block of the
corresponding edge. The edge can finally be formed by utilizing
Region::getEntry() or Region::getExit();

Contributed by: Andreas Simbuerger <simbuerg@fim.uni-passau.de>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123410 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/RegionInfo.h
lib/Analysis/RegionInfo.cpp