LLVM 20.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
llvm::BitTracker::BitValue Struct Reference

#include "Target/Hexagon/BitTracker.h"

Public Types

enum  ValueType { Top , Zero , One , Ref }
 

Public Member Functions

 BitValue (ValueType T=Top)
 
 BitValue (bool B)
 
 BitValue (unsigned Reg, uint16_t Pos)
 
bool operator== (const BitValue &V) const
 
bool operator!= (const BitValue &V) const
 
bool is (unsigned T) const
 
bool meet (const BitValue &V, const BitRef &Self)
 
bool num () const
 
 operator bool () const
 

Static Public Member Functions

static BitValue ref (const BitValue &V)
 
static BitValue self (const BitRef &Self=BitRef())
 

Public Attributes

ValueType Type
 
BitRef RefI
 

Friends

raw_ostreamoperator<< (raw_ostream &OS, const BitValue &BV)
 

Detailed Description

Definition at line 155 of file BitTracker.h.

Member Enumeration Documentation

◆ ValueType

Enumerator
Top 
Zero 
One 
Ref 

Definition at line 156 of file BitTracker.h.

Constructor & Destructor Documentation

◆ BitValue() [1/3]

llvm::BitTracker::BitValue::BitValue ( ValueType  T = Top)
inline

Definition at line 194 of file BitTracker.h.

◆ BitValue() [2/3]

llvm::BitTracker::BitValue::BitValue ( bool  B)
inline

Definition at line 195 of file BitTracker.h.

◆ BitValue() [3/3]

llvm::BitTracker::BitValue::BitValue ( unsigned  Reg,
uint16_t  Pos 
)
inline

Definition at line 196 of file BitTracker.h.

Member Function Documentation

◆ is()

bool llvm::BitTracker::BitValue::is ( unsigned  T) const
inline

◆ meet()

bool llvm::BitTracker::BitValue::meet ( const BitValue V,
const BitRef Self 
)
inline

Definition at line 229 of file BitTracker.h.

References Ref, RefI, and Top.

◆ num()

bool llvm::BitTracker::BitValue::num ( ) const
inline

Definition at line 257 of file BitTracker.h.

References One, and Zero.

Referenced by llvm::BitTracker::MachineEvaluator::eADD(), and llvm::BitTracker::MachineEvaluator::eSUB().

◆ operator bool()

llvm::BitTracker::BitValue::operator bool ( ) const
inline

Definition at line 261 of file BitTracker.h.

References assert(), One, and Zero.

◆ operator!=()

bool llvm::BitTracker::BitValue::operator!= ( const BitValue V) const
inline

Definition at line 205 of file BitTracker.h.

References operator==().

◆ operator==()

bool llvm::BitTracker::BitValue::operator== ( const BitValue V) const
inline

Definition at line 198 of file BitTracker.h.

References Ref, and RefI.

Referenced by operator!=().

◆ ref()

BitTracker::BitValue llvm::BitTracker::BitValue::ref ( const BitValue V)
inlinestatic

◆ self()

BitTracker::BitValue llvm::BitTracker::BitValue::self ( const BitRef Self = BitRef())
inlinestatic

Friends And Related Function Documentation

◆ operator<<

raw_ostream & operator<< ( raw_ostream OS,
const BitValue BV 
)
friend

Definition at line 97 of file BitTracker.cpp.

Member Data Documentation

◆ RefI

BitRef llvm::BitTracker::BitValue::RefI

Definition at line 192 of file BitTracker.h.

Referenced by meet(), and operator==().

◆ Type

ValueType llvm::BitTracker::BitValue::Type

Definition at line 191 of file BitTracker.h.


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