[Mlir-commits] [mlir] a34a8d5 - [MLIR][NFC] Add SymbolUse::UseRange::empty()

Rahul Joshi llvmlistbot at llvm.org
Thu Jul 30 15:19:30 PDT 2020


Author: Rahul Joshi
Date: 2020-07-30T15:18:58-07:00
New Revision: a34a8d52605a203cfde7d9a8600e1e3e0ee63df7

URL: https://github.com/llvm/llvm-project/commit/a34a8d52605a203cfde7d9a8600e1e3e0ee63df7
DIFF: https://github.com/llvm/llvm-project/commit/a34a8d52605a203cfde7d9a8600e1e3e0ee63df7.diff

LOG: [MLIR][NFC] Add SymbolUse::UseRange::empty()

Differential Revision: https://reviews.llvm.org/D84984

Added: 
    

Modified: 
    mlir/include/mlir/IR/SymbolTable.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/SymbolTable.h b/mlir/include/mlir/IR/SymbolTable.h
index 7e52011f81ff..4e41fe55d2c5 100644
--- a/mlir/include/mlir/IR/SymbolTable.h
+++ b/mlir/include/mlir/IR/SymbolTable.h
@@ -150,6 +150,7 @@ class SymbolTable {
     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;


        


More information about the Mlir-commits mailing list