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 |
Yields the index of each set bit, skipping unset bits via countr_zero. |
Member Functions
Name |
Description |
|
Constructors |
Return true if at least one bit is set. |
|
Return an iterator to the first set bit, or end() if none. |
|
Return the number of bits that are set. |
|
Return an iterator past the last bit. |
|
Index of the first set bit at or after Begin, or size() if none. |
|
Toggle bit |
|
Return true if no bits are set. |
|
Return the bitwise AND of this bitset and |
|
AND each word with |
|
Return the value of bit |
|
Return the bitwise XOR of this bitset and |
|
XOR each word with |
|
Return the bitwise OR of this bitset and |
|
OR each word with |
|
Return a bitset with every bit inverted. |
|
Clear bit |
|
|
|
Return the fixed number of bits in this bitset. |
|
Return true if bit |
|
Return true if every word matches |
|
Return true if any word differs from |
|
Lexicographically compare bits against |
Protected Member Functions
Name |
Description |
|
Construct from a raw array of feature words. |
Derived Classes
Name |
Description |
Class used to store the subtarget bits in the tables created by tablegen. |
Created with MrDocs