LLVM  4.0.0
Classes | Public Types | Public Member Functions | List of all members
llvm::BitTracker Struct Reference

#include <BitTracker.h>

Classes

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

Public Types

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

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

Definition at line 38 of file BitTracker.h.

Definition at line 42 of file BitTracker.h.

Constructor & Destructor Documentation

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

Definition at line 188 of file BitTracker.cpp.

BitTracker::~BitTracker ( )

Definition at line 191 of file BitTracker.cpp.

Member Function Documentation

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

Definition at line 972 of file BitTracker.cpp.

References llvm::BitTracker::MachineEvaluator::getCell().

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

Definition at line 305 of file BitTracker.h.

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

Definition at line 310 of file BitTracker.h.

References assert(), and F.

void BitTracker::print_cells ( raw_ostream OS) const

Definition at line 183 of file BitTracker.cpp.

References llvm::dbgs(), E, I, llvm::PrintReg(), and llvm::BitTracker::MachineEvaluator::TRI.

Referenced by run().

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

Definition at line 976 of file BitTracker.cpp.

References llvm::BitTracker::MachineEvaluator::putCell().

bool BT::reached ( const MachineBasicBlock B) const

Definition at line 1007 of file BitTracker.cpp.

References assert(), E, llvm::MachineBasicBlock::getNumber(), and I.

void BT::run ( )
void BT::subst ( RegisterRef  OldRR,
RegisterRef  NewRR 
)
void llvm::BitTracker::trace ( bool  On = false)
inline

Definition at line 48 of file BitTracker.h.

void BT::visit ( const MachineInstr MI)

Definition at line 1020 of file BitTracker.cpp.

References assert(), and llvm::MachineInstr::isBranch().


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