[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)
commit20dcc9f7f113058f28ec1b15c60c71b1e10abe1a
tree83ed5cedd92b757f9c1e0605c46044be28218654
parent046dde40c53cd4558870e9bd3f96d8b6d70853df
[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

llvm-svn: 244444
llvm/include/llvm/Analysis/RegionInfo.h
llvm/include/llvm/Analysis/RegionPrinter.h
llvm/lib/Analysis/RegionInfo.cpp
llvm/lib/Analysis/RegionPrinter.cpp