R600/SI: Add intrinsics for various math instructions.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 19 Jun 2014 01:19:19 +0000 (01:19 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 19 Jun 2014 01:19:19 +0000 (01:19 +0000)
commita0050b0961b1fd1cbdd58bc6257bc3f54b25acf4
tree4baf56639e691ab895db8605a23ff54d21e7e9c9
parentd3d6de2703aef281180e2af74d012d2fa8cc8ff8
R600/SI: Add intrinsics for various math instructions.

These will be used for custom lowering and for library
implementations of various math functions, so it's useful
to expose these as builtins.

llvm-svn: 211247
20 files changed:
llvm/include/llvm/IR/IntrinsicsR600.td
llvm/lib/Target/R600/AMDGPUISelLowering.cpp
llvm/lib/Target/R600/AMDGPUISelLowering.h
llvm/lib/Target/R600/AMDGPUInstrInfo.td
llvm/lib/Target/R600/AMDGPUInstructions.td
llvm/lib/Target/R600/AMDGPUIntrinsics.td
llvm/lib/Target/R600/R600Instructions.td
llvm/lib/Target/R600/SIInsertWaits.cpp
llvm/lib/Target/R600/SIInstructions.td
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/CodeGen/R600/big_alu.ll
llvm/test/CodeGen/R600/llvm.AMDGPU.div_fixup.ll [new file with mode: 0644]
llvm/test/CodeGen/R600/llvm.AMDGPU.div_fmas.ll [new file with mode: 0644]
llvm/test/CodeGen/R600/llvm.AMDGPU.div_scale.ll [new file with mode: 0644]
llvm/test/CodeGen/R600/llvm.AMDGPU.rcp.ll [new file with mode: 0644]
llvm/test/CodeGen/R600/llvm.AMDGPU.trig_preop.ll [new file with mode: 0644]
llvm/test/CodeGen/R600/pv.ll
llvm/test/CodeGen/R600/sgpr-copy.ll
llvm/test/CodeGen/R600/si-sgpr-spill.ll
llvm/test/Transforms/InstCombine/r600-intrinsics.ll [new file with mode: 0644]