projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e56e902
)
[MLIR][NFC] Add SymbolUse::UseRange::empty()
author
Rahul Joshi
<jurahul@google.com>
Thu, 30 Jul 2020 21:18:33 +0000
(14:18 -0700)
committer
Rahul Joshi
<jurahul@google.com>
Thu, 30 Jul 2020 22:18:58 +0000
(15:18 -0700)
Differential Revision: https://reviews.llvm.org/D84984
mlir/include/mlir/IR/SymbolTable.h
patch
|
blob
|
history
diff --git
a/mlir/include/mlir/IR/SymbolTable.h
b/mlir/include/mlir/IR/SymbolTable.h
index
7e52011
..
4e41fe5
100644
(file)
--- a/
mlir/include/mlir/IR/SymbolTable.h
+++ b/
mlir/include/mlir/IR/SymbolTable.h
@@
-150,6
+150,7
@@
public:
using iterator = std::vector<SymbolUse>::const_iterator;
iterator begin() const { return uses.begin(); }
iterator end() const { return uses.end(); }
+ bool empty() const { return uses.empty(); }
private:
std::vector<SymbolUse> uses;