[RegionInfo] Add debug-time region viewer functions
authorMichael Kruse <llvm@meinersbur.de>
Mon, 10 Aug 2015 13:21:59 +0000 (13:21 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Mon, 10 Aug 2015 13:21:59 +0000 (13:21 +0000)
commit5864ac77117bce416bf801bfc89814f411e0e7e8
tree480a119191dae1316709ac9160acb698324eed98
parent6b23651c14703b5e2859afd3e9e5ffecbab7ac13
[RegionInfo] Add debug-time region viewer functions

Summary:
Analogously to Function::viewCFG(), RegionInfo::view() and RegionInfo::viewOnly() are meant to be called in debugging sessions. They open a viewer to show how RegionInfo currently understands the region hierarchy.

The functions viewRegion(Function*) and viewRegionOnly(Function*) invoke a fresh region analysis of the function in contrast to viewRegion(RegionInfo*) and viewRegionOnly(RegionInfo*) which show the current analysis result.

Reviewers: grosser

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D11875

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