OSDN Git Service

Teach TargetRegisterInfo how to cram stack slot indexes in with the virtual and
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 9 Jan 2011 21:17:37 +0000 (21:17 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 9 Jan 2011 21:17:37 +0000 (21:17 +0000)
commitbe97e906e03dd9b22e14f6749157c9d5f9701dd5
tree406cc2412d1b65c21943b0b90db00d24160f8c26
parent96b1b6c1356a70f99e133331c470ba7caf48de21
Teach TargetRegisterInfo how to cram stack slot indexes in with the virtual and
physical register numbers.

This makes the hack used in LiveInterval official, and lets LiveInterval be
oblivious of stack slots.

The isPhysicalRegister() and isVirtualRegister() predicates don't know about
this, so when a variable may contain a stack slot, isStackSlot() should always
be tested first.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123128 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveInterval.h
include/llvm/CodeGen/LiveStackAnalysis.h
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/InlineSpiller.cpp
lib/CodeGen/LiveInterval.cpp
lib/CodeGen/LiveStackAnalysis.cpp
lib/CodeGen/Spiller.cpp
lib/CodeGen/StackSlotColoring.cpp
lib/Target/TargetRegisterInfo.cpp