clang 20.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::interp::Bits Struct Reference

A quantity in bits. More...

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/AST/ByteCode/BitcastBuffer.h"

Public Member Functions

 Bits ()=default
 
 Bits (size_t Quantity)
 
size_t getQuantity () const
 
size_t roundToBytes () const
 
size_t getOffsetInByte () const
 
bool isFullByte () const
 
bool nonZero () const
 
bool isZero () const
 
Bytes toBytes () const
 
Bits operator- (Bits Other) const
 
Bits operator+ (Bits Other) const
 
Bits operator+= (size_t O)
 
Bits operator+= (Bits O)
 
bool operator>= (Bits Other) const
 
bool operator<= (Bits Other) const
 
bool operator== (Bits Other) const
 
bool operator!= (Bits Other) const
 

Static Public Member Functions

static Bits zero ()
 

Public Attributes

size_t N = 0
 

Detailed Description

A quantity in bits.

Definition at line 24 of file BitcastBuffer.h.

Constructor & Destructor Documentation

◆ Bits() [1/2]

clang::interp::Bits::Bits ( )
default

Referenced by operator+(), operator-(), and zero().

◆ Bits() [2/2]

clang::interp::Bits::Bits ( size_t  Quantity)
inlineexplicit

Definition at line 28 of file BitcastBuffer.h.

Member Function Documentation

◆ getOffsetInByte()

size_t clang::interp::Bits::getOffsetInByte ( ) const
inline

◆ getQuantity()

size_t clang::interp::Bits::getQuantity ( ) const
inline

◆ isFullByte()

bool clang::interp::Bits::isFullByte ( ) const
inline

◆ isZero()

bool clang::interp::Bits::isZero ( ) const
inline

Definition at line 34 of file BitcastBuffer.h.

References N.

◆ nonZero()

bool clang::interp::Bits::nonZero ( ) const
inline

Definition at line 33 of file BitcastBuffer.h.

References N.

◆ operator!=()

bool clang::interp::Bits::operator!= ( Bits  Other) const
inline

Definition at line 51 of file BitcastBuffer.h.

References N, and clang::Other.

◆ operator+()

Bits clang::interp::Bits::operator+ ( Bits  Other) const
inline

Definition at line 38 of file BitcastBuffer.h.

References Bits(), N, and clang::Other.

◆ operator+=() [1/2]

Bits clang::interp::Bits::operator+= ( Bits  O)
inline

Definition at line 43 of file BitcastBuffer.h.

References N.

◆ operator+=() [2/2]

Bits clang::interp::Bits::operator+= ( size_t  O)
inline

Definition at line 39 of file BitcastBuffer.h.

References N.

◆ operator-()

Bits clang::interp::Bits::operator- ( Bits  Other) const
inline

Definition at line 37 of file BitcastBuffer.h.

References Bits(), N, and clang::Other.

◆ operator<=()

bool clang::interp::Bits::operator<= ( Bits  Other) const
inline

Definition at line 49 of file BitcastBuffer.h.

References N, and clang::Other.

◆ operator==()

bool clang::interp::Bits::operator== ( Bits  Other) const
inline

Definition at line 50 of file BitcastBuffer.h.

References N, and clang::Other.

◆ operator>=()

bool clang::interp::Bits::operator>= ( Bits  Other) const
inline

Definition at line 48 of file BitcastBuffer.h.

References N, and clang::Other.

◆ roundToBytes()

size_t clang::interp::Bits::roundToBytes ( ) const
inline

◆ toBytes()

Bytes clang::interp::Bits::toBytes ( ) const
inline

Definition at line 62 of file BitcastBuffer.h.

References isFullByte(), and N.

Referenced by clang::interp::BitcastBuffer::byteSize().

◆ zero()

static Bits clang::interp::Bits::zero ( )
inlinestatic

Member Data Documentation

◆ N

size_t clang::interp::Bits::N = 0

The documentation for this struct was generated from the following file: