LLVM API Documentation
#include <LiveDebugVariables.h>
Public Member Functions | |
LiveDebugVariables () | |
~LiveDebugVariables () | |
void | renameRegister (unsigned OldReg, unsigned NewReg, unsigned SubIdx) |
void | splitRegister (unsigned OldReg, ArrayRef< unsigned > NewRegs, LiveIntervals &LIS) |
void | emitDebugValues (VirtRegMap *VRM) |
void | dump () |
dump - Print data structures to dbgs(). More... | |
![]() | |
FunctionPass (char &pid) | |
Pass * | createPrinterPass (raw_ostream &O, const std::string &Banner) const |
createPrinterPass - Get a function printer pass. More... | |
virtual void | assignPassManager (PMStack &PMS, PassManagerType T) |
virtual PassManagerType | getPotentialPassManagerType () const |
Return what kind of Pass Manager can manage this pass. More... | |
![]() | |
Pass (PassKind K, char &pid) | |
virtual | ~Pass () |
PassKind | getPassKind () const |
virtual const char * | getPassName () const |
AnalysisID | getPassID () const |
getPassID - Return the PassID number that corresponds to this pass. More... | |
virtual bool | doInitialization (Module &) |
virtual bool | doFinalization (Module &) |
virtual void | print (raw_ostream &O, const Module *M) const |
void | dump () const |
virtual void | preparePassManager (PMStack &) |
Check if available pass managers are suitable for this pass or not. More... | |
void | setResolver (AnalysisResolver *AR) |
AnalysisResolver * | getResolver () const |
virtual void * | getAdjustedAnalysisPointer (AnalysisID ID) |
virtual ImmutablePass * | getAsImmutablePass () |
virtual PMDataManager * | getAsPMDataManager () |
virtual void | verifyAnalysis () const |
virtual void | dumpPassStructure (unsigned Offset=0) |
template<typename AnalysisType > | |
AnalysisType * | getAnalysisIfAvailable () const |
bool | mustPreserveAnalysisID (char &AID) const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis () const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysis (Function &F) |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI) const |
template<typename AnalysisType > | |
AnalysisType & | getAnalysisID (AnalysisID PI, Function &F) |
Static Public Attributes | |
static char | ID = 0 |
Additional Inherited Members | |
![]() | |
static const PassInfo * | lookupPassInfo (const void *TI) |
static const PassInfo * | lookupPassInfo (StringRef Arg) |
static Pass * | createPass (AnalysisID ID) |
![]() | |
MachineFunctionPass (char &ID) | |
Definition at line 33 of file LiveDebugVariables.h.
LiveDebugVariables::LiveDebugVariables | ( | ) |
Definition at line 67 of file LiveDebugVariables.cpp.
References llvm::PassRegistry::getPassRegistry(), and llvm::initializeLiveDebugVariablesPass().
LiveDebugVariables::~LiveDebugVariables | ( | ) |
Definition at line 725 of file LiveDebugVariables.cpp.
void LiveDebugVariables::dump | ( | ) |
dump - Print data structures to dbgs().
Definition at line 993 of file LiveDebugVariables.cpp.
References llvm::dbgs(), and llvm::Pass::print().
void LiveDebugVariables::emitDebugValues | ( | VirtRegMap * | VRM | ) |
emitDebugValues - Emit new DBG_VALUE instructions reflecting the changes that happened during register allocation.
VRM | Rename virtual registers according to map. |
Definition at line 986 of file LiveDebugVariables.cpp.
renameRegister - Move any user variables in OldReg to NewReg:SubIdx.
OldReg | Old virtual register that is going away. |
NewReg | New register holding the user variables. |
SubIdx | If NewReg is a virtual register, SubIdx may indicate a sub- register. |
void LiveDebugVariables::splitRegister | ( | unsigned | OldReg, |
ArrayRef< unsigned > | NewRegs, | ||
LiveIntervals & | LIS | ||
) |
splitRegister - Move any user variables in OldReg to the live ranges in NewRegs where they are live. Mark the values as unavailable where no new register is live.
Definition at line 864 of file LiveDebugVariables.cpp.
|
static |
Definition at line 36 of file LiveDebugVariables.h.