[all-commits] [llvm/llvm-project] e5a8f5: [mlir] Use std::size instead of llvm::array_lengthof
Joseph Loser via All-commits
all-commits at lists.llvm.org
Wed Sep 7 08:55:53 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e5a8f50ab160c56a316e79f46e787afa15c1cbcc
https://github.com/llvm/llvm-project/commit/e5a8f50ab160c56a316e79f46e787afa15c1cbcc
Author: Joe Loser <joeloser at fastmail.com>
Date: 2022-09-07 (Wed, 07 Sep 2022)
Changed paths:
M mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td
M mlir/lib/Dialect/SPIRV/IR/SPIRVEnums.cpp
M mlir/lib/Dialect/SPIRV/IR/SPIRVTypes.cpp
Log Message:
-----------
[mlir] Use std::size instead of llvm::array_lengthof
LLVM contains a helpful function for getting the size of a C-style
array: `llvm::array_lengthof`. This is useful prior to C++17, but not as
helpful for C++17 or later: `std::size` already has support for C-style
arrays.
Change call sites to use `std::size` instead.
Differential Revision: https://reviews.llvm.org/D133387
More information about the All-commits
mailing list