LLVM 22.0.0git
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 152 of file BitTracker.h.

Member Enumeration Documentation

◆ ValueType

Enumerator
Top 
Zero 
One 
Ref 

Definition at line 153 of file BitTracker.h.

Constructor & Destructor Documentation

◆ BitValue() [1/3]

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

Definition at line 191 of file BitTracker.h.

References T, Top, and Type.

Referenced by meet(), operator!=(), operator==(), ref(), and self().

◆ BitValue() [2/3]

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

Definition at line 192 of file BitTracker.h.

References B(), One, Type, and Zero.

◆ BitValue() [3/3]

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

Definition at line 193 of file BitTracker.h.

References Ref, RefI, Reg, and Type.

Member Function Documentation

◆ is()

◆ meet()

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

Definition at line 226 of file BitTracker.h.

References BitValue(), Ref, RefI, Top, and Type.

◆ num()

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

Definition at line 254 of file BitTracker.h.

References One, Type, 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 258 of file BitTracker.h.

References assert(), One, Type, and Zero.

◆ operator!=()

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

Definition at line 202 of file BitTracker.h.

References BitValue(), and operator==().

◆ operator==()

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

Definition at line 195 of file BitTracker.h.

References BitValue(), Ref, RefI, and Type.

Referenced by operator!=().

◆ ref()

◆ self()

◆ operator<<

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

Member Data Documentation

◆ RefI

BitRef llvm::BitTracker::BitValue::RefI

◆ Type

ValueType llvm::BitTracker::BitValue::Type

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