[Mlir-commits] [mlir] 8c55d0f - [mlir] Use llvm::lower_bound (NFC) (#141386)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun May 25 08:21:37 PDT 2025
Author: Kazu Hirata
Date: 2025-05-25T08:21:33-07:00
New Revision: 8c55d0fb7e60fcce10560e25eba3999d3386e4b0
URL: https://github.com/llvm/llvm-project/commit/8c55d0fb7e60fcce10560e25eba3999d3386e4b0
DIFF: https://github.com/llvm/llvm-project/commit/8c55d0fb7e60fcce10560e25eba3999d3386e4b0.diff
LOG: [mlir] Use llvm::lower_bound (NFC) (#141386)
Added:
Modified:
mlir/lib/IR/MLIRContext.cpp
Removed:
################################################################################
diff --git a/mlir/lib/IR/MLIRContext.cpp b/mlir/lib/IR/MLIRContext.cpp
index d43dcc5a5e2fd..2ab6b6189b438 100644
--- a/mlir/lib/IR/MLIRContext.cpp
+++ b/mlir/lib/IR/MLIRContext.cpp
@@ -692,12 +692,10 @@ ArrayRef<RegisteredOperationName> MLIRContext::getRegisteredOperations() {
/// Return information for registered operations by dialect.
ArrayRef<RegisteredOperationName>
MLIRContext::getRegisteredOperationsByDialect(StringRef dialectName) {
- auto lowerBound =
- std::lower_bound(impl->sortedRegisteredOperations.begin(),
- impl->sortedRegisteredOperations.end(), dialectName,
- [](auto &lhs, auto &rhs) {
- return lhs.getDialect().getNamespace().compare(rhs);
- });
+ auto lowerBound = llvm::lower_bound(
+ impl->sortedRegisteredOperations, dialectName, [](auto &lhs, auto &rhs) {
+ return lhs.getDialect().getNamespace().compare(rhs);
+ });
if (lowerBound == impl->sortedRegisteredOperations.end() ||
lowerBound->getDialect().getNamespace() != dialectName)
More information about the Mlir-commits
mailing list