diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-05-04 20:55:23 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-05-04 20:55:23 +0000 |
commit | 7c52c97a2232756bbcc2fb4e664892bdb8b2d90c (patch) | |
tree | c461b6340583748ebfb69be0be481a94bc9c5211 /include/llvm/Transforms/Utils/CodeExtractor.h | |
parent | 49683f3c961379fbc088871a5d6304950f1f1cbc (diff) | |
download | external_llvm-7c52c97a2232756bbcc2fb4e664892bdb8b2d90c.zip external_llvm-7c52c97a2232756bbcc2fb4e664892bdb8b2d90c.tar.gz external_llvm-7c52c97a2232756bbcc2fb4e664892bdb8b2d90c.tar.bz2 |
Rename the Region::block_iterator to Region::block_node_iterator, and
add a new Region::block_iterator which actually iterates over the basic
blocks of the region.
The old iterator, now call 'block_node_iterator' iterates over
RegionNodes which contain a single basic block. This works well with the
GraphTraits-based iterator design, however most users actually want an
iterator over the BasicBlocks inside these RegionNodes. Now the
'block_iterator' is a wrapper which exposes exactly this interface.
Internally it uses the block_node_iterator to walk all nodes which are
single basic blocks, but transparently unwraps the basic block to make
user code simpler.
While this patch is a bit of a wash, most of the updates are to internal
users, not external users of the RegionInfo. I have an accompanying
patch to Polly that is a strict simplification of every user of this
interface, and I'm working on a pass that also wants the same simplified
interface.
This patch alone should have no functional impact.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156202 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/CodeExtractor.h')
0 files changed, 0 insertions, 0 deletions