Replace TargetRegisterInfo::printReg with a PrintReg class that also works without...
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 9 Jan 2011 03:05:53 +0000 (03:05 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 9 Jan 2011 03:05:53 +0000 (03:05 +0000)
commit4314268128be6d54c9a7f0709680e5a5b40f3ab3
treee9b258ca806b76fbeaa4a614c0f421e0ac26dea7
parent994c727b5790e5c976e32c75364d78eb9b22a568
Replace TargetRegisterInfo::printReg with a PrintReg class that also works without a TRI instance.

Print virtual registers numbered from 0 instead of the arbitrary
FirstVirtualRegister. The first virtual register is printed as %vreg0.
TRI::NoRegister is printed as %noreg.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123107 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/CalcSpillWeights.cpp
lib/CodeGen/LiveDebugVariables.cpp
lib/CodeGen/LiveInterval.cpp
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/LiveIntervalUnion.cpp
lib/CodeGen/MachineBasicBlock.cpp
lib/CodeGen/MachineInstr.cpp
lib/CodeGen/MachineVerifier.cpp
lib/CodeGen/PHIElimination.cpp
lib/CodeGen/RegAllocFast.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SimpleRegisterCoalescing.cpp
lib/CodeGen/VirtRegMap.cpp
lib/Target/TargetRegisterInfo.cpp