Wrapper around boolean types.
More...
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/Interp/Boolean.h"
|
static constexpr unsigned | bitWidth () |
|
static constexpr bool | isMinusOne () |
|
static constexpr bool | isSigned () |
|
static constexpr bool | isNegative () |
|
static constexpr bool | isPositive () |
|
static Boolean | min (unsigned NumBits) |
|
static Boolean | max (unsigned NumBits) |
|
template<typename T > |
static Boolean | from (T Value) |
|
template<unsigned SrcBits, bool SrcSign> |
static std::enable_if_t< SrcBits !=0, Boolean > | from (Integral< SrcBits, SrcSign > Value) |
|
template<bool SrcSign> |
static Boolean | from (Integral< 0, SrcSign > Value) |
|
static Boolean | zero () |
|
template<typename T > |
static Boolean | from (T Value, unsigned NumBits) |
|
static bool | inRange (int64_t Value, unsigned NumBits) |
|
static bool | increment (Boolean A, Boolean *R) |
|
static bool | decrement (Boolean A, Boolean *R) |
|
static bool | add (Boolean A, Boolean B, unsigned OpBits, Boolean *R) |
|
static bool | sub (Boolean A, Boolean B, unsigned OpBits, Boolean *R) |
|
static bool | mul (Boolean A, Boolean B, unsigned OpBits, Boolean *R) |
|
static bool | inv (Boolean A, Boolean *R) |
|
static bool | neg (Boolean A, Boolean *R) |
|
Wrapper around boolean types.
Definition at line 25 of file Boolean.h.
◆ Boolean() [1/2]
clang::interp::Boolean::Boolean |
( |
| ) |
|
|
inline |
Zero-initializes a boolean.
Definition at line 32 of file Boolean.h.
References V.
Referenced by add(), from(), increment(), inv(), max(), min(), mul(), neg(), operator-(), operator~(), and sub().
◆ Boolean() [2/2]
clang::interp::Boolean::Boolean |
( |
bool |
V | ) |
|
|
inlineexplicit |
◆ add()
◆ bitWidth()
static constexpr unsigned clang::interp::Boolean::bitWidth |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ compare()
◆ countLeadingZeros()
unsigned clang::interp::Boolean::countLeadingZeros |
( |
| ) |
const |
|
inline |
◆ decrement()
◆ from() [1/4]
static Boolean clang::interp::Boolean::from |
( |
Integral< 0, SrcSign > |
Value | ) |
|
|
inlinestatic |
◆ from() [2/4]
static std::enable_if_t< SrcBits !=0, Boolean > clang::interp::Boolean::from |
( |
Integral< SrcBits, SrcSign > |
Value | ) |
|
|
inlinestatic |
◆ from() [3/4]
template<typename T >
static Boolean clang::interp::Boolean::from |
( |
T |
Value | ) |
|
|
inlinestatic |
◆ from() [4/4]
◆ increment()
◆ inRange()
static bool clang::interp::Boolean::inRange |
( |
int64_t |
Value, |
|
|
unsigned |
NumBits |
|
) |
| |
|
inlinestatic |
◆ inv()
◆ isMin()
bool clang::interp::Boolean::isMin |
( |
| ) |
const |
|
inline |
◆ isMinusOne()
static constexpr bool clang::interp::Boolean::isMinusOne |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ isNegative()
static constexpr bool clang::interp::Boolean::isNegative |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ isPositive()
static constexpr bool clang::interp::Boolean::isPositive |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ isSigned()
static constexpr bool clang::interp::Boolean::isSigned |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ isZero()
bool clang::interp::Boolean::isZero |
( |
| ) |
const |
|
inline |
◆ max()
◆ min()
◆ mul()
◆ neg()
◆ operator bool()
clang::interp::Boolean::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ operator int16_t()
clang::interp::Boolean::operator int16_t |
( |
| ) |
const |
|
inlineexplicit |
◆ operator int32_t()
clang::interp::Boolean::operator int32_t |
( |
| ) |
const |
|
inlineexplicit |
◆ operator int64_t()
clang::interp::Boolean::operator int64_t |
( |
| ) |
const |
|
inlineexplicit |
◆ operator int8_t()
clang::interp::Boolean::operator int8_t |
( |
| ) |
const |
|
inlineexplicit |
◆ operator uint16_t()
clang::interp::Boolean::operator uint16_t |
( |
| ) |
const |
|
inlineexplicit |
◆ operator uint32_t()
clang::interp::Boolean::operator uint32_t |
( |
| ) |
const |
|
inlineexplicit |
◆ operator uint64_t()
clang::interp::Boolean::operator uint64_t |
( |
| ) |
const |
|
inlineexplicit |
◆ operator uint8_t()
clang::interp::Boolean::operator uint8_t |
( |
| ) |
const |
|
inlineexplicit |
◆ operator!=()
bool clang::interp::Boolean::operator!= |
( |
Boolean |
RHS | ) |
const |
|
inline |
◆ operator-()
Boolean clang::interp::Boolean::operator- |
( |
| ) |
const |
|
inline |
◆ operator<()
bool clang::interp::Boolean::operator< |
( |
Boolean |
RHS | ) |
const |
|
inline |
◆ operator<=()
bool clang::interp::Boolean::operator<= |
( |
Boolean |
RHS | ) |
const |
|
inline |
◆ operator==()
bool clang::interp::Boolean::operator== |
( |
Boolean |
RHS | ) |
const |
|
inline |
◆ operator>() [1/2]
bool clang::interp::Boolean::operator> |
( |
Boolean |
RHS | ) |
const |
|
inline |
◆ operator>() [2/2]
bool clang::interp::Boolean::operator> |
( |
unsigned |
RHS | ) |
const |
|
inline |
◆ operator>=()
bool clang::interp::Boolean::operator>= |
( |
Boolean |
RHS | ) |
const |
|
inline |
◆ operator~()
Boolean clang::interp::Boolean::operator~ |
( |
| ) |
const |
|
inline |
◆ print()
void clang::interp::Boolean::print |
( |
llvm::raw_ostream & |
OS | ) |
const |
|
inline |
◆ sub()
◆ toAPSInt() [1/2]
APSInt clang::interp::Boolean::toAPSInt |
( |
| ) |
const |
|
inline |
◆ toAPSInt() [2/2]
◆ toAPValue()
APValue clang::interp::Boolean::toAPValue |
( |
| ) |
const |
|
inline |
◆ toUnsigned()
Boolean clang::interp::Boolean::toUnsigned |
( |
| ) |
const |
|
inline |
◆ truncate()
◆ zero()
static Boolean clang::interp::Boolean::zero |
( |
| ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: