LLVM 24.0.0git
llvm::omp::EnumSet< Enum, Size > Struct Template Reference

#include "llvm/Frontend/OpenMP/OMP.h"

Inheritance diagram for llvm::omp::EnumSet< Enum, Size >:
[legend]

Public Types

using value_type = Enum
using Base = llvm::Bitset<Size>
using iterator = detail::EnumSetIterator<Enum, Size>

Public Member Functions

constexpr EnumSet (Base &&B)
constexpr EnumSet (std::initializer_list< value_type > Init)
constexpr bool empty () const
constexpr size_t size () const
constexpr size_t max_size () const
constexpr bool test (Enum E) const
constexpr bool operator[] (Enum E) const
constexpr EnumSetflip (Enum E)
constexpr EnumSetreset (Enum E)
constexpr EnumSetset (Enum E)
constexpr EnumSetoperator|= (const EnumSet &S)
constexpr EnumSetoperator&= (const EnumSet &S)
constexpr EnumSet operator| (const EnumSet &S) const
constexpr EnumSet operator& (const EnumSet &S) const
constexpr iterator begin () const
constexpr iterator end () const
Public Member Functions inherited from llvm::Bitset< Size >
constexpr Bitset (const std::array< uint64_t,(NumBits+63)/64 > &B)
constexpr Bitset ()=default
constexpr Bitset (std::initializer_list< unsigned > Init)
constexpr Bitsetset ()
constexpr Bitsetset (unsigned I)
constexpr Bitsetreset (unsigned I)
constexpr Bitsetflip (unsigned I)
constexpr bool operator[] (unsigned I) const
constexpr bool test (unsigned I) const
constexpr size_t size () const
constexpr bool any () const
constexpr bool none () const
constexpr bool all () const
constexpr size_t count () const
constexpr Bitsetoperator^= (const Bitset &RHS)
constexpr Bitset operator^ (const Bitset &RHS) const
constexpr Bitsetoperator&= (const Bitset &RHS)
constexpr Bitset operator& (const Bitset &RHS) const
constexpr Bitsetoperator|= (const Bitset &RHS)
constexpr Bitset operator| (const Bitset &RHS) const
constexpr Bitset operator~ () const
constexpr bool operator== (const Bitset &RHS) const
constexpr bool operator!= (const Bitset &RHS) const
constexpr bool operator< (const Bitset &Other) const
constexpr Bitsetoperator<<= (unsigned N)
constexpr Bitset operator<< (unsigned N) const
constexpr Bitsetoperator>>= (unsigned N)
constexpr Bitset operator>> (unsigned N) const
constexpr uint64_t getWord64 (unsigned I) const
 Return the I-th 64-bit word of the bitset, from least significant to most.
constexpr int findLastSet () const
 Return the index of the highest set bit, or -1 if no bits are set.

Additional Inherited Members

Static Public Member Functions inherited from llvm::Bitset< Size >
static constexpr unsigned getNumWords64 ()
 Return the number of 64-bit words needed to hold all bits.

Detailed Description

template<typename Enum, size_t Size>
struct llvm::omp::EnumSet< Enum, Size >

Definition at line 74 of file OMP.h.

Member Typedef Documentation

◆ Base

template<typename Enum, size_t Size>
using llvm::omp::EnumSet< Enum, Size >::Base = llvm::Bitset<Size>

Definition at line 76 of file OMP.h.

◆ iterator

template<typename Enum, size_t Size>
using llvm::omp::EnumSet< Enum, Size >::iterator = detail::EnumSetIterator<Enum, Size>

Definition at line 78 of file OMP.h.

◆ value_type

template<typename Enum, size_t Size>
using llvm::omp::EnumSet< Enum, Size >::value_type = Enum

Definition at line 75 of file OMP.h.

Constructor & Destructor Documentation

◆ EnumSet() [1/2]

template<typename Enum, size_t Size>
llvm::omp::EnumSet< Enum, Size >::EnumSet ( Base && B)
inlineconstexpr

Definition at line 80 of file OMP.h.

◆ EnumSet() [2/2]

template<typename Enum, size_t Size>
llvm::omp::EnumSet< Enum, Size >::EnumSet ( std::initializer_list< value_type > Init)
inlineconstexpr

Definition at line 81 of file OMP.h.

Member Function Documentation

◆ begin()

template<typename Enum, size_t Size>
iterator llvm::omp::EnumSet< Enum, Size >::begin ( ) const
inlineconstexpr

Definition at line 129 of file OMP.h.

Referenced by llvm::RISCV::getCPUConfigurableTuneFeatures().

◆ empty()

template<typename Enum, size_t Size>
bool llvm::omp::EnumSet< Enum, Size >::empty ( ) const
inlineconstexpr

Definition at line 89 of file OMP.h.

◆ end()

template<typename Enum, size_t Size>
iterator llvm::omp::EnumSet< Enum, Size >::end ( ) const
inlineconstexpr

Definition at line 132 of file OMP.h.

Referenced by llvm::RISCV::getCPUConfigurableTuneFeatures().

◆ flip()

template<typename Enum, size_t Size>
EnumSet & llvm::omp::EnumSet< Enum, Size >::flip ( Enum E)
inlineconstexpr

Definition at line 99 of file OMP.h.

◆ max_size()

template<typename Enum, size_t Size>
size_t llvm::omp::EnumSet< Enum, Size >::max_size ( ) const
inlineconstexpr

Definition at line 91 of file OMP.h.

◆ operator&()

template<typename Enum, size_t Size>
EnumSet llvm::omp::EnumSet< Enum, Size >::operator& ( const EnumSet< Enum, Size > & S) const
inlineconstexpr

Definition at line 124 of file OMP.h.

◆ operator&=()

template<typename Enum, size_t Size>
EnumSet & llvm::omp::EnumSet< Enum, Size >::operator&= ( const EnumSet< Enum, Size > & S)
inlineconstexpr

Definition at line 116 of file OMP.h.

◆ operator[]()

template<typename Enum, size_t Size>
bool llvm::omp::EnumSet< Enum, Size >::operator[] ( Enum E) const
inlineconstexpr

Definition at line 96 of file OMP.h.

◆ operator|()

template<typename Enum, size_t Size>
EnumSet llvm::omp::EnumSet< Enum, Size >::operator| ( const EnumSet< Enum, Size > & S) const
inlineconstexpr

Definition at line 120 of file OMP.h.

◆ operator|=()

template<typename Enum, size_t Size>
EnumSet & llvm::omp::EnumSet< Enum, Size >::operator|= ( const EnumSet< Enum, Size > & S)
inlineconstexpr

Definition at line 112 of file OMP.h.

◆ reset()

template<typename Enum, size_t Size>
EnumSet & llvm::omp::EnumSet< Enum, Size >::reset ( Enum E)
inlineconstexpr

Definition at line 103 of file OMP.h.

◆ set()

template<typename Enum, size_t Size>
EnumSet & llvm::omp::EnumSet< Enum, Size >::set ( Enum E)
inlineconstexpr

Definition at line 107 of file OMP.h.

◆ size()

template<typename Enum, size_t Size>
size_t llvm::omp::EnumSet< Enum, Size >::size ( ) const
inlineconstexpr

Definition at line 90 of file OMP.h.

◆ test()

template<typename Enum, size_t Size>
bool llvm::omp::EnumSet< Enum, Size >::test ( Enum E) const
inlineconstexpr

Definition at line 93 of file OMP.h.


The documentation for this struct was generated from the following file: