[Mlir-commits] [mlir] 359541e - Remove the Identifier::is() method, it is now equivalent to operator==. NFC.
Chris Lattner
llvmlistbot at llvm.org
Mon Apr 13 12:37:47 PDT 2020
Author: Chris Lattner
Date: 2020-04-13T12:37:37-07:00
New Revision: 359541ed4fd4a3affeb8fe109f3771a40e069bc1
URL: https://github.com/llvm/llvm-project/commit/359541ed4fd4a3affeb8fe109f3771a40e069bc1
DIFF: https://github.com/llvm/llvm-project/commit/359541ed4fd4a3affeb8fe109f3771a40e069bc1.diff
LOG: Remove the Identifier::is() method, it is now equivalent to operator==. NFC.
Summary: Depends on D78042.
Reviewers: rriddle!
Subscribers: mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, grosul1, frgossen, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D78043
Added:
Modified:
mlir/include/mlir/IR/Identifier.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/Identifier.h b/mlir/include/mlir/IR/Identifier.h
index 98a792a32ea8..ca1946bd8ad0 100644
--- a/mlir/include/mlir/IR/Identifier.h
+++ b/mlir/include/mlir/IR/Identifier.h
@@ -51,9 +51,6 @@ class Identifier {
/// Return the number of bytes in this string.
unsigned size() const { return entry->getKeyLength(); }
- /// Return true if this identifier is the specified string.
- bool is(StringRef string) const { return strref() == string; }
-
const char *begin() const { return data(); }
const char *end() const { return entry->getKeyData() + size(); }
More information about the Mlir-commits
mailing list