Container class for subtarget features.

Synopsis

Declared in <llvm/TargetParser/SubtargetFeature.h>

class FeatureBitset;

Description

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.

Types

Name

Description

const_iterator

Yields the index of each set bit, skipping unset bits via countr_zero.

Member Functions

Name

Description

FeatureBitset [constructor]

Constructors

any

Return true if at least one bit is set.

begin

Return an iterator to the first set bit, or end() if none.

count

Return the number of bits that are set.

end

Return an iterator past the last bit.

find_first_from

Index of the first set bit at or after Begin, or size() if none.

flip

Toggle bit I and return this bitset.

none

Return true if no bits are set.

operator&

Return the bitwise AND of this bitset and RHS.

operator&=

AND each word with RHS in place.

operator[]

Return the value of bit I.

operatorˆ

Return the bitwise XOR of this bitset and RHS.

operatorˆ=

XOR each word with RHS in place.

operator|

Return the bitwise OR of this bitset and RHS.

operator|=

OR each word with RHS in place.

operator~

Return a bitset with every bit inverted.

reset

Clear bit I and return this bitset.

set

set overloads

size

Return the fixed number of bits in this bitset.

test

Return true if bit I is set.

operator==

Return true if every word matches RHS.

operator!=

Return true if any word differs from RHS.

operator<

Lexicographically compare bits against Other (false < true).

Protected Member Functions

Name

Description

FeatureBitset [constructor]

Construct from a raw array of feature words.

Derived Classes

Name

Description

FeatureBitArray

Class used to store the subtarget bits in the tables created by tablegen.

Created with MrDocs