class FeatureBitset

Declaration

class FeatureBitset { /* full declaration omitted */ };

Description

Container class for subtarget features. This is a constexpr reimplementation of a subset of std::bitset. It would be nice to use std::bitset directly, but it doesn't support constant initialization.

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:40

Method Overview

  • protected constexpr FeatureBitset(const std::array<uint64_t, MAX_SUBTARGET_WORDS> & B)
  • public FeatureBitset()
  • public constexpr FeatureBitset(std::initializer_list<unsigned int> Init)
  • public bool any() const
  • public size_t count() const
  • public constexpr llvm::FeatureBitset & flip(unsigned int I)
  • public bool none() const
  • public constexpr llvm::FeatureBitset & reset(unsigned int I)
  • public llvm::FeatureBitset & set()
  • public constexpr llvm::FeatureBitset & set(unsigned int I)
  • public constexpr size_t size() const
  • public constexpr bool test(unsigned int I) const

Methods

constexpr FeatureBitset(
    const std::array<uint64_t,
                     MAX_SUBTARGET_WORDS>& B)

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:47

Parameters

const std::array<uint64_t, MAX_SUBTARGET_WORDS>& B

FeatureBitset()

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:53

constexpr FeatureBitset(
    std::initializer_list<unsigned int> Init)

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:54

Parameters

std::initializer_list<unsigned int> Init

bool any() const

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:94

size_t count() const

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:98

constexpr llvm::FeatureBitset& flip(
    unsigned int I)

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:78

Parameters

unsigned int I

bool none() const

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:97

constexpr llvm::FeatureBitset& reset(
    unsigned int I)

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:71

Parameters

unsigned int I

llvm::FeatureBitset& set()

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:59

constexpr llvm::FeatureBitset& set(unsigned int I)

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:64

Parameters

unsigned int I

constexpr size_t size() const

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:92

constexpr bool test(unsigned int I) const

Declared at: llvm/include/llvm/MC/SubtargetFeature.h:90

Parameters

unsigned int I