LLVM 20.0.0git
|
Functions | |
template<typename E > | |
constexpr std::underlying_type_t< E > | Mask () |
Get a bitmask with 1s in all places up to the high-order bit of E's largest value. | |
template<typename E > | |
constexpr std::underlying_type_t< E > | Underlying (E Val) |
Check that Val is in range for E, and return Val cast to E's underlying type. | |
constexpr unsigned | bitWidth (uint64_t Value) |
template<typename E , typename = std::enable_if_t<is_bitmask_enum<E>::value>> | |
constexpr bool | any (E Val) |
template<typename E , typename = std::enable_if_t<is_bitmask_enum<E>::value>> | |
constexpr E | operator~ (E Val) |
template<typename E , typename = std::enable_if_t<is_bitmask_enum<E>::value>> | |
constexpr E | operator| (E LHS, E RHS) |
template<typename E , typename = std::enable_if_t<is_bitmask_enum<E>::value>> | |
constexpr E | operator& (E LHS, E RHS) |
template<typename E , typename = std::enable_if_t<is_bitmask_enum<E>::value>> | |
constexpr E | operator^ (E LHS, E RHS) |
template<typename E , typename = std::enable_if_t<is_bitmask_enum<E>::value>> | |
constexpr E | operator<< (E LHS, E RHS) |
template<typename E , typename = std::enable_if_t<is_bitmask_enum<E>::value>> | |
constexpr E | operator>> (E LHS, E RHS) |
template<typename E , typename = std::enable_if_t<is_bitmask_enum<E>::value>> | |
E & | operator|= (E &LHS, E RHS) |
template<typename E , typename = std::enable_if_t<is_bitmask_enum<E>::value>> | |
E & | operator&= (E &LHS, E RHS) |
template<typename E , typename = std::enable_if_t<is_bitmask_enum<E>::value>> | |
E & | operator^= (E &LHS, E RHS) |
template<typename e , typename = std::enable_if_t<is_bitmask_enum<e>::value>> | |
e & | operator<<= (e &lhs, e rhs) |
template<typename e , typename = std::enable_if_t<is_bitmask_enum<e>::value>> | |
e & | operator>>= (e &lhs, e rhs) |
|
constexpr |
Definition at line 145 of file BitmaskEnum.h.
References E.
|
constexpr |
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
Definition at line 125 of file BitmaskEnum.h.
References llvm::NextPowerOf2().
|
constexpr |
Definition at line 160 of file BitmaskEnum.h.
References E, LHS, RHS, and Underlying().
E & llvm::BitmaskEnumDetail::operator&= | ( | E & | LHS, |
E | RHS | ||
) |
Definition at line 189 of file BitmaskEnum.h.
|
constexpr |
Definition at line 170 of file BitmaskEnum.h.
References E, LHS, RHS, and Underlying().
e & llvm::BitmaskEnumDetail::operator<<= | ( | e & | lhs, |
e | rhs | ||
) |
Definition at line 201 of file BitmaskEnum.h.
|
constexpr |
Definition at line 175 of file BitmaskEnum.h.
References E, LHS, RHS, and Underlying().
e & llvm::BitmaskEnumDetail::operator>>= | ( | e & | lhs, |
e | rhs | ||
) |
Definition at line 207 of file BitmaskEnum.h.
|
constexpr |
Definition at line 165 of file BitmaskEnum.h.
References E, LHS, RHS, and Underlying().
E & llvm::BitmaskEnumDetail::operator^= | ( | E & | LHS, |
E | RHS | ||
) |
Definition at line 195 of file BitmaskEnum.h.
|
constexpr |
Definition at line 155 of file BitmaskEnum.h.
References E, LHS, RHS, and Underlying().
E & llvm::BitmaskEnumDetail::operator|= | ( | E & | LHS, |
E | RHS | ||
) |
Definition at line 183 of file BitmaskEnum.h.
|
constexpr |
Definition at line 150 of file BitmaskEnum.h.
References E.
|
constexpr |
Check that Val is in range for E, and return Val cast to E's underlying type.
Definition at line 133 of file BitmaskEnum.h.
References assert(), llvm::to_underlying(), and Underlying().
Referenced by operator&(), operator<<(), operator>>(), operator^(), operator|(), and Underlying().