AMDGPU/SI: Add support for spiling SGPRs to scratch buffer
authorTom Stellard <thomas.stellard@amd.com>
Fri, 4 Mar 2016 18:31:18 +0000 (18:31 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 4 Mar 2016 18:31:18 +0000 (18:31 +0000)
commit649b5db557d5c7005e2f2ca9d893377bd733dc2e
treeded01c957b5dbae57a0574c516cb2d0584682760
parent3b8f6126ac50880a17ea71fb82c828c9dc818d81
AMDGPU/SI: Add support for spiling SGPRs to scratch buffer

Summary:
This is necessary for when we run out of VGPRs and can no
longer use v_{read,write}_lane for spilling SGPRs.

Reviewers: arsenm

Subscribers: arsenm, llvm-commits

Differential Revision: http://reviews.llvm.org/D17592

llvm-svn: 262732
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SIInstructions.td
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/test/CodeGen/AMDGPU/si-spill-sgpr-stack.ll [new file with mode: 0644]