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.

Synopsis

Declared in <llvm/TargetParser/SubtargetFeature.h>

class FeatureBitset;

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

begin

count

end

find_first_from

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

flip

none

operator&

Bitwise conjunction operator

operator&=

Bitwise conjunction assignment operator

operator[]

operatorˆ

Bitwise exclusive‐or operator

operatorˆ=

Bitwise exclusive‐or assignment operator

operator|

Bitwise disjunction operator

operator|=

Bitwise disjunction assignment operator

operator~

Bitwise negation operator

reset

set

size

test

operator==

Equality operator

operator!=

Inequality operator

operator<

Less‐than operator

Protected Member Functions

Name

Description

FeatureBitset [constructor]

Construct from array

Derived Classes

Name

Description

FeatureBitArray

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

Created with MrDocs