Use an IndexedMap for LiveVariables::VirtRegInfo.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 8 Jan 2011 23:10:57 +0000 (23:10 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 8 Jan 2011 23:10:57 +0000 (23:10 +0000)
commitb421c566f512ed0ec87851866d335e9086c3f8be
treeba001da8c2c2f846ad33823f32ae45426e0b9f1d
parent56e4d89642d0850f6392a90136848b3647abed97
Use an IndexedMap for LiveVariables::VirtRegInfo.

Provide MRI::getNumVirtRegs() and TRI::index2VirtReg() functions to allow
iteration over virtual registers without depending on the representation of
virtual register numbers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123098 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveVariables.h
include/llvm/CodeGen/MachineRegisterInfo.h
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/LiveVariables.cpp