[all-commits] [llvm/llvm-project] 7c9df7: [ADT] Provide C++20-style bit functions
kazutakahirata via All-commits
all-commits at lists.llvm.org
Thu Feb 16 20:13:18 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7c9df7743521d21d4e03593f4501c5fd7a61c682
https://github.com/llvm/llvm-project/commit/7c9df7743521d21d4e03593f4501c5fd7a61c682
Author: Kazu Hirata <kazu at google.com>
Date: 2023-02-16 (Thu, 16 Feb 2023)
Changed paths:
M llvm/include/llvm/ADT/APInt.h
M llvm/unittests/ADT/APIntTest.cpp
Log Message:
-----------
[ADT] Provide C++20-style bit functions
Tihs patches adds APInt::count{l,r}_{zero,one} and APInt::popcount to
be consistent with those functions in ADT/bit.h.
Once this patch lands, I'll take care of the migration.
For now, I am intentionally leaving isPowerOf2 as is.
Differential Revision: https://reviews.llvm.org/D144165
More information about the All-commits
mailing list