LLVM  14.0.0git
Classes | Namespaces | Functions
PointerUnion.h File Reference
#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/ADT/PointerIntPair.h"
#include "llvm/Support/PointerLikeTypeTraits.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
Include dependency graph for PointerUnion.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  llvm::pointer_union_detail::TypeIndex< T, Us >
 Find the index of a type in a list of types. More...
 
struct  llvm::pointer_union_detail::TypeIndex< T, T, Us... >
 
struct  llvm::pointer_union_detail::TypeIndex< T, U, Us... >
 
struct  llvm::pointer_union_detail::TypeIndex< T >
 
struct  llvm::pointer_union_detail::GetFirstType< T,... >
 Find the first type in a list of types. More...
 
class  llvm::pointer_union_detail::PointerUnionUIntTraits< PTs >
 Provide PointerLikeTypeTraits for void* that is used by PointerUnion for the template arguments. More...
 
class  llvm::pointer_union_detail::PointerUnionMembers< Derived, ValTy, I, Types >
 
class  llvm::pointer_union_detail::PointerUnionMembers< Derived, ValTy, I >
 
class  llvm::pointer_union_detail::PointerUnionMembers< Derived, ValTy, I, Type, Types... >
 
class  llvm::PointerUnion< PTs >
 A discriminated union of two or more pointer types, with the discriminator in the low bit of the pointer. More...
 
struct  llvm::PointerLikeTypeTraits< PointerUnion< PTs... > >
 
struct  llvm::DenseMapInfo< PointerUnion< PTs... > >
 

Namespaces

 llvm
 This file implements support for optimizing divisions by a constant.
 
 llvm::pointer_union_detail
 

Functions

constexpr int llvm::pointer_union_detail::bitsRequired (unsigned n)
 Determine the number of bits required to store integers with values < n. More...
 
template<typename... Ts>
constexpr int llvm::pointer_union_detail::lowBitsAvailable ()
 
template<typename ... PTs>
bool llvm::operator== (PointerUnion< PTs... > lhs, PointerUnion< PTs... > rhs)
 
template<typename ... PTs>
bool llvm::operator!= (PointerUnion< PTs... > lhs, PointerUnion< PTs... > rhs)
 
template<typename ... PTs>
bool llvm::operator< (PointerUnion< PTs... > lhs, PointerUnion< PTs... > rhs)