PTX: Always use registers for return values, but use .param space for device
authorJustin Holewinski <justin.holewinski@gmail.com>
Thu, 23 Jun 2011 18:10:13 +0000 (18:10 +0000)
committerJustin Holewinski <justin.holewinski@gmail.com>
Thu, 23 Jun 2011 18:10:13 +0000 (18:10 +0000)
commitd8149c1bef75e15010cce4c4510b7f68ecde80a5
tree699f83cd91c6be62803764fb54e2b158dcae6353
parent6b1131e5ff1543dbc1f2cf5d64dcecab42516c51
PTX: Always use registers for return values, but use .param space for device
     parameters if SM >= 2.0

- Update test cases to be more robust against register allocation changes
- Bump up the number of registers to 128 per type
- Include Python script to re-generate register file with any number of
  registers

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133736 91177308-0d34-0410-b5e6-96231b3b80d8
26 files changed:
lib/Target/PTX/PTXAsmPrinter.cpp
lib/Target/PTX/PTXCallingConv.td
lib/Target/PTX/PTXISelLowering.cpp
lib/Target/PTX/PTXMachineFunctionInfo.h
lib/Target/PTX/PTXRegisterInfo.td
lib/Target/PTX/generate-register-td.py [new file with mode: 0755]
test/CodeGen/PTX/add.ll
test/CodeGen/PTX/aggregates.ll [new file with mode: 0644]
test/CodeGen/PTX/bitwise.ll
test/CodeGen/PTX/bra.ll
test/CodeGen/PTX/cvt.ll
test/CodeGen/PTX/fdiv-sm10.ll
test/CodeGen/PTX/fdiv-sm13.ll
test/CodeGen/PTX/fneg.ll
test/CodeGen/PTX/ld.ll
test/CodeGen/PTX/llvm-intrinsic.ll
test/CodeGen/PTX/mad.ll
test/CodeGen/PTX/mov.ll
test/CodeGen/PTX/mul.ll
test/CodeGen/PTX/parameter-order.ll
test/CodeGen/PTX/selp.ll
test/CodeGen/PTX/setp.ll
test/CodeGen/PTX/shl.ll
test/CodeGen/PTX/shr.ll
test/CodeGen/PTX/st.ll
test/CodeGen/PTX/sub.ll