Rename Region::RegionType to Region::BlockListType

Region::RegionType doesn't make much sense when reading it. It's just a
list of blocks. So call it that.
PiperOrigin-RevId: 278632500
This commit is contained in:
Sean Silva 2019-11-05 08:34:44 -08:00 committed by A. Unique TensorFlower
parent 1f43d0d000
commit 9297a129b1
2 changed files with 10 additions and 10 deletions

View File

@ -159,12 +159,12 @@ public:
}
/// This is the list of blocks in the function.
using RegionType = Region::RegionType;
RegionType &getBlocks() { return getBody().getBlocks(); }
using BlockListType = Region::BlockListType;
BlockListType &getBlocks() { return getBody().getBlocks(); }
// Iteration over the block in the function.
using iterator = RegionType::iterator;
using reverse_iterator = RegionType::reverse_iterator;
using iterator = BlockListType::iterator;
using reverse_iterator = BlockListType::reverse_iterator;
iterator begin() { return getBody().begin(); }
iterator end() { return getBody().end(); }

View File

@ -43,12 +43,12 @@ public:
/// parent container. The region must have a valid parent container.
Location getLoc();
using RegionType = llvm::iplist<Block>;
RegionType &getBlocks() { return blocks; }
using BlockListType = llvm::iplist<Block>;
BlockListType &getBlocks() { return blocks; }
// Iteration over the block in the function.
using iterator = RegionType::iterator;
using reverse_iterator = RegionType::reverse_iterator;
using iterator = BlockListType::iterator;
using reverse_iterator = BlockListType::reverse_iterator;
iterator begin() { return blocks.begin(); }
iterator end() { return blocks.end(); }
@ -63,7 +63,7 @@ public:
Block &front() { return blocks.front(); }
/// getSublistAccess() - Returns pointer to member of region.
static RegionType Region::*getSublistAccess(Block *) {
static BlockListType Region::*getSublistAccess(Block *) {
return &Region::blocks;
}
@ -154,7 +154,7 @@ public:
void viewGraph();
private:
RegionType blocks;
BlockListType blocks;
/// This is the object we are part of.
Operation *container;