PTX: Add basic register spilling code
authorJustin Holewinski <justin.holewinski@gmail.com>
Mon, 20 Jun 2011 15:56:20 +0000 (15:56 +0000)
committerJustin Holewinski <justin.holewinski@gmail.com>
Mon, 20 Jun 2011 15:56:20 +0000 (15:56 +0000)
commitdf1c8d837d2aa1405a5523f6293ccbed38f9c446
tree6911213343b8212f2c4a7c020b4871bff9ce13c1
parent8e9d6720c3b62ad45bb97d43b47867a3097b433a
PTX: Add basic register spilling code

The current implementation generates stack loads/stores, which are
really just mov instructions from/to "special" registers.  This may
not be the most efficient implementation, compared to an approach where
the stack registers are directly folded into instructions, but this is
easier to implement and I have yet to see a case where ptxas is unable
to see through this kind of register usage and know what is really
going on.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133443 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PTX/PTXAsmPrinter.cpp
lib/Target/PTX/PTXInstrInfo.cpp
lib/Target/PTX/PTXInstrInfo.h
lib/Target/PTX/PTXInstrInfo.td