LLVM  16.0.0git
Classes | Namespaces | Functions
bit.h File Reference
#include <cstdint>
#include <cstring>
#include <type_traits>
Include dependency graph for bit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  llvm::detail::PopulationCounter< T, SizeOfT >
 
struct  llvm::detail::PopulationCounter< T, 8 >
 

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
 llvm::detail
 

Functions

template<typename To , typename From , typename = std::enable_if_t<sizeof(To) == sizeof(From)>, typename = std::enable_if_t<std::is_trivially_constructible<To>::value>, typename = std::enable_if_t<std::is_trivially_copyable<To>::value>, typename = std::enable_if_t<std::is_trivially_copyable<From>::value>>
To llvm::bit_cast (const From &from) noexcept
 
template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
constexpr bool llvm::has_single_bit (T Value) noexcept
 
template<typename T , typename = std::enable_if_t<std::is_unsigned_v<T>>>
int llvm::popcount (T Value) noexcept
 Count the number of set bits in a value. More...
 

Detailed Description

This file implements the C++20 <bit> header.

Definition in file bit.h.