clang  7.0.0
Public Member Functions | Static Public Member Functions | List of all members
BytePattern Class Reference

A byte pattern. More...

Public Member Functions

 BytePattern (uint8_t Value)
 
bool isAny () const
 
bool isNone () const
 
bool isValued () const
 
uint8_t getValue () const
 
BytePattern merge (const BytePattern Other) const
 

Static Public Member Functions

static BytePattern Any ()
 
static BytePattern None ()
 

Detailed Description

A byte pattern.

Can be "any" pattern if the value was padding or known to be undef. Can be "none" pattern if a sequence doesn't exist.

Definition at line 955 of file CGDecl.cpp.

Constructor & Destructor Documentation

◆ BytePattern()

BytePattern::BytePattern ( uint8_t  Value)
inline

Definition at line 961 of file CGDecl.cpp.

Member Function Documentation

◆ Any()

static BytePattern BytePattern::Any ( )
inlinestatic

Definition at line 962 of file CGDecl.cpp.

Referenced by constantIsRepeatedBytePattern().

◆ getValue()

uint8_t BytePattern::getValue ( ) const
inline

◆ isAny()

bool BytePattern::isAny ( ) const
inline

Definition at line 964 of file CGDecl.cpp.

Referenced by clang::CodeGen::CodeGenFunction::EmitAutoVarInit(), and merge().

◆ isNone()

bool BytePattern::isNone ( ) const
inline

Definition at line 965 of file CGDecl.cpp.

References clang::None.

Referenced by clang::CodeGen::CodeGenFunction::EmitAutoVarInit(), and merge().

◆ isValued()

bool BytePattern::isValued ( ) const
inline

Definition at line 966 of file CGDecl.cpp.

◆ merge()

BytePattern BytePattern::merge ( const BytePattern  Other) const
inline

Definition at line 971 of file CGDecl.cpp.

References getValue(), getValue(), isAny(), and isNone().

◆ None()

static BytePattern BytePattern::None ( )
inlinestatic

Definition at line 963 of file CGDecl.cpp.

References clang::None.

Referenced by constantIsRepeatedBytePattern(), and shouldUseMemSetToInitialize().


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