Add preliminary support for .f32 in the PTX backend.
commitf71720231f6de9b2b7fe28edd179ae217a105329
authorChe-Liang Chiou <clchiou@gmail.com>
Mon, 28 Feb 2011 06:34:09 +0000 (28 06:34 +0000)
committerChe-Liang Chiou <clchiou@gmail.com>
Mon, 28 Feb 2011 06:34:09 +0000 (28 06:34 +0000)
tree7ed3e644aac2d4be87b13f146f0467761e8e7600
parentd8d1584c13c554349c235177b2b89cb5117347b2
Add preliminary support for .f32 in the PTX backend.

- Add appropriate TableGen patterns for fadd, fsub, fmul.
- Add .f32 as the PTX type for the LLVM float type.
- Allow parameters, return values, and global variable declarations
  to accept the float type.
- Add appropriate test cases.

Patch by Justin Holewinski

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126636 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PTX/PTXAsmPrinter.cpp
lib/Target/PTX/PTXISelLowering.cpp
lib/Target/PTX/PTXInstrInfo.cpp
lib/Target/PTX/PTXInstrInfo.td
lib/Target/PTX/PTXRegisterInfo.td
test/CodeGen/PTX/add.ll
test/CodeGen/PTX/ld_float.ll [new file with mode: 0644]
test/CodeGen/PTX/mov.ll
test/CodeGen/PTX/mul.ll [new file with mode: 0644]
test/CodeGen/PTX/st_float.ll [new file with mode: 0644]
test/CodeGen/PTX/sub.ll