[mlir] Use StringRef::{starts,ends}_with (NFC)
commit88d319a29ff5d3be1bb9a7e88ef6e17df1dfe607
authorKazu Hirata <kazu@google.com>
Thu, 14 Dec 2023 06:58:30 +0000 (13 22:58 -0800)
committerKazu Hirata <kazu@google.com>
Thu, 14 Dec 2023 06:58:30 +0000 (13 22:58 -0800)
tree0d0c2a72eda672390c0b6781bd6018f2622da230
parent5c9d82de6b72cc0c037daecce452c450870f0034
[mlir] Use StringRef::{starts,ends}_with (NFC)

This patch replaces uses of StringRef::{starts,ends}with with
StringRef::{starts,ends}_with for consistency with
std::{string,string_view}::{starts,ends}_with in C++20.

I'm planning to deprecate and eventually remove
StringRef::{starts,ends}with.
27 files changed:
mlir/lib/AsmParser/AttributeParser.cpp
mlir/lib/AsmParser/Parser.cpp
mlir/lib/Bytecode/Reader/BytecodeReader.cpp
mlir/lib/Dialect/AMDGPU/Utils/Chipset.cpp
mlir/lib/Dialect/GPU/Transforms/SerializeToHsaco.cpp
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Dialect/Transform/Transforms/TransformInterpreterUtils.cpp
mlir/lib/IR/Operation.cpp
mlir/lib/Query/Matcher/Parser.cpp
mlir/lib/Support/ToolUtilities.cpp
mlir/lib/TableGen/Class.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/lib/Target/SPIRV/Deserialization/DeserializeOps.cpp
mlir/lib/Tools/PDLL/Parser/Parser.cpp
mlir/lib/Tools/lsp-server-support/Protocol.cpp
mlir/lib/Tools/lsp-server-support/SourceMgrUtils.cpp
mlir/lib/Tools/lsp-server-support/Transport.cpp
mlir/lib/Tools/mlir-lsp-server/LSPServer.cpp
mlir/lib/Tools/mlir-lsp-server/MLIRServer.cpp
mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp
mlir/test/lib/Dialect/Arith/TestEmulateWideInt.cpp
mlir/tools/mlir-parser-fuzzer/bytecode/mlir-bytecode-parser-fuzzer.cpp
mlir/tools/mlir-parser-fuzzer/text/mlir-text-parser-fuzzer.cpp
mlir/tools/mlir-tblgen/LLVMIRIntrinsicGen.cpp
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
mlir/tools/mlir-tblgen/OpDocGen.cpp
mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp