[all-commits] [llvm/llvm-project] 9a7503: [MC] Leverage constexpr `std::array` in `Subtarget...
Joseph Loser via All-commits
all-commits at lists.llvm.org
Sat Aug 13 11:56:05 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9a750334022a4ab33808555b685b5f35714fe254
https://github.com/llvm/llvm-project/commit/9a750334022a4ab33808555b685b5f35714fe254
Author: Joe Loser <joeloser93 at gmail.com>
Date: 2022-08-13 (Sat, 13 Aug 2022)
Changed paths:
M llvm/include/llvm/MC/SubtargetFeature.h
Log Message:
-----------
[MC] Leverage constexpr `std::array` in `SubtargetFeature.h`
Replace C-style array with `std::array` since `std::array<T, N>::operator[]` is
`constexpr` in C++17. This also allows us to replace `array_lengthof` calls with
member `size()` function.
Differential Revision: https://reviews.llvm.org/D131826
More information about the All-commits
mailing list