aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-10-18 15:41:32 -0700
committerGitHub <noreply@github.com>2025-10-18 15:41:32 -0700
commit6e92f7e9584c257b91e7b28e68e90f9edd718cbc (patch)
treeabab4a5a387f9c3070e55210f76e17e5346d57f7 /llvm/lib/CodeGen/MachineFunction.cpp
parentcf28a476fb0fae2b19112ce0532b308e79d7bf39 (diff)
downloadllvm-6e92f7e9584c257b91e7b28e68e90f9edd718cbc.zip
llvm-6e92f7e9584c257b91e7b28e68e90f9edd718cbc.tar.gz
llvm-6e92f7e9584c257b91e7b28e68e90f9edd718cbc.tar.bz2
[ADT] Add bit_ceil_constexpr (#164115)
This patch adds llvm::bit_ceil_constexpr, a constexpr version of llvm::bit_ceil. The new function is intended to serve as a marker. When we switch to C++20, we will most likely go through functions in llvm/ADT/bit.h and replace them with their counterparts from <bit>. With llvm::bit_ceil_constexpr, we can easily replace its use with std::bit_ceil. This patch replaces RoundUpToPowerOfTwo in SmallPtrSet.h the new function.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions