LLVM 22.0.0git
llvm::BitTracker Struct Reference

#include "Target/Hexagon/BitTracker.h"

Classes

struct  BitMask
struct  BitRef
struct  BitValue
struct  MachineEvaluator
struct  RegisterCell
struct  RegisterRef

Public Types

using BranchTargetList = SetVector<const MachineBasicBlock *>
using CellMapType = std::map<unsigned, RegisterCell>

Public Member Functions

 BitTracker (const MachineEvaluator &E, MachineFunction &F)
 ~BitTracker ()
void run ()
void trace (bool On=false)
bool has (unsigned Reg) const
const RegisterCelllookup (unsigned Reg) const
RegisterCell get (RegisterRef RR) const
void put (RegisterRef RR, const RegisterCell &RC)
void subst (RegisterRef OldRR, RegisterRef NewRR)
bool reached (const MachineBasicBlock *B) const
void visit (const MachineInstr &MI)
void print_cells (raw_ostream &OS) const

Detailed Description

Definition at line 32 of file BitTracker.h.

Member Typedef Documentation

◆ BranchTargetList

◆ CellMapType

Definition at line 41 of file BitTracker.h.

Constructor & Destructor Documentation

◆ BitTracker()

BitTracker::BitTracker ( const MachineEvaluator & E,
MachineFunction & F )

Definition at line 182 of file BitTracker.cpp.

References F.

◆ ~BitTracker()

BitTracker::~BitTracker ( )

Definition at line 186 of file BitTracker.cpp.

Member Function Documentation

◆ get()

BT::RegisterCell BT::get ( RegisterRef RR) const

Definition at line 984 of file BitTracker.cpp.

◆ has()

bool llvm::BitTracker::has ( unsigned Reg) const
inline

Definition at line 349 of file BitTracker.h.

References Reg.

◆ lookup()

const BitTracker::RegisterCell & llvm::BitTracker::lookup ( unsigned Reg) const
inline

Definition at line 354 of file BitTracker.h.

References assert(), F, and Reg.

◆ print_cells()

void BitTracker::print_cells ( raw_ostream & OS) const

Definition at line 177 of file BitTracker.cpp.

References llvm::dbgs(), P, and llvm::printReg().

Referenced by run().

◆ put()

void BT::put ( RegisterRef RR,
const RegisterCell & RC )

Definition at line 988 of file BitTracker.cpp.

◆ reached()

bool BT::reached ( const MachineBasicBlock * B) const

Definition at line 1019 of file BitTracker.cpp.

References assert(), and B().

◆ run()

void BT::run ( )

Definition at line 1112 of file BitTracker.cpp.

References assert(), B(), llvm::dbgs(), and print_cells().

◆ subst()

◆ trace()

void llvm::BitTracker::trace ( bool On = false)
inline

Definition at line 47 of file BitTracker.h.

◆ visit()

void BT::visit ( const MachineInstr & MI)

Definition at line 1027 of file BitTracker.cpp.

References assert(), and MI.


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