X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FLiveDebugVariables.h;h=58a3f0f6ff52fae3e4c3d52ff42a5da39c1df635;hb=1039e106d095979b3707bb27cfa765cd2c0f3b54;hp=2e4b05267ddabdad48c5ca263998231429f1b2ba;hpb=0613516b16466a92c68d60734801221506c85e86;p=oota-llvm.git diff --git a/lib/CodeGen/LiveDebugVariables.h b/lib/CodeGen/LiveDebugVariables.h index 2e4b05267dd..58a3f0f6ff5 100644 --- a/lib/CodeGen/LiveDebugVariables.h +++ b/lib/CodeGen/LiveDebugVariables.h @@ -21,10 +21,15 @@ #ifndef LLVM_CODEGEN_LIVEDEBUGVARIABLES_H #define LLVM_CODEGEN_LIVEDEBUGVARIABLES_H +#include "llvm/ADT/ArrayRef.h" #include "llvm/CodeGen/MachineFunctionPass.h" namespace llvm { +class LiveInterval; +class LiveIntervals; +class VirtRegMap; + class LiveDebugVariables : public MachineFunctionPass { void *pImpl; public: @@ -40,9 +45,19 @@ public: /// register. void renameRegister(unsigned OldReg, unsigned NewReg, unsigned SubIdx); + /// 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. + void splitRegister(unsigned OldReg, ArrayRef NewRegs, + LiveIntervals &LIS); + /// emitDebugValues - Emit new DBG_VALUE instructions reflecting the changes /// that happened during register allocation. - void emitDebugValues(); + /// @param VRM Rename virtual registers according to map. + void emitDebugValues(VirtRegMap *VRM); + + /// dump - Print data structures to dbgs(). + void dump(); private: