summaryrefslogtreecommitdiffstats
path: root/mlir
diff options
context:
space:
mode:
authorSean Silva <silvasean@google.com>2019-11-05 08:34:44 -0800
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-11-05 08:35:14 -0800
commit9297a129b163f8f88013e28042fc40ded9dec19a (patch)
tree929635b98d3fdf2ad626b7e7e4989ef1a7711aa9 /mlir
parent1f43d0d000312c1f004cd76302a8be1636fba413 (diff)
downloadbcm5719-llvm-9297a129b163f8f88013e28042fc40ded9dec19a.tar.gz
bcm5719-llvm-9297a129b163f8f88013e28042fc40ded9dec19a.zip
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
Diffstat (limited to 'mlir')
-rw-r--r--mlir/include/mlir/IR/FunctionSupport.h8
-rw-r--r--mlir/include/mlir/IR/Region.h12
2 files changed, 10 insertions, 10 deletions
diff --git a/mlir/include/mlir/IR/FunctionSupport.h b/mlir/include/mlir/IR/FunctionSupport.h
index 215aec452bf..6ce03f0b8cd 100644
--- a/mlir/include/mlir/IR/FunctionSupport.h
+++ b/mlir/include/mlir/IR/FunctionSupport.h
@@ -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(); }
diff --git a/mlir/include/mlir/IR/Region.h b/mlir/include/mlir/IR/Region.h
index 96aeafbceb6..e051ebcfbe7 100644
--- a/mlir/include/mlir/IR/Region.h
+++ b/mlir/include/mlir/IR/Region.h
@@ -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;
OpenPOWER on IntegriCloud