Add new RegionInfo pass.

The RegionInfo pass detects single entry single exit regions in a function,
where a region is defined as any subgraph that is connected to the remaining
graph at only two spots.
Furthermore an hierarchical region tree is built.
Use it by calling "opt -regions analyze" or "opt -view-regions".

llvm-svn: 109089
32 files changed
tree: ff78916af8ab17944cccac336369efc2d2881b15
  1. clang/
  2. compiler-rt/
  3. libcxx/
  4. lldb/
  5. llvm/