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)
commitd9b35435b89015d154b0e20f4d4796d936237f84
treec1fbe95a3f550edf4da38ffc64009b0063781697
parentdd8406a6b7f0cbf9082c4bdb2cc8c3b3d5da6eec
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211247 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
include/llvm/IR/IntrinsicsR600.td
lib/Target/R600/AMDGPUISelLowering.cpp
lib/Target/R600/AMDGPUISelLowering.h
lib/Target/R600/AMDGPUInstrInfo.td
lib/Target/R600/AMDGPUInstructions.td
lib/Target/R600/AMDGPUIntrinsics.td
lib/Target/R600/R600Instructions.td
lib/Target/R600/SIInsertWaits.cpp
lib/Target/R600/SIInstructions.td
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/CodeGen/R600/big_alu.ll
test/CodeGen/R600/llvm.AMDGPU.div_fixup.ll [new file with mode: 0644]
test/CodeGen/R600/llvm.AMDGPU.div_fmas.ll [new file with mode: 0644]
test/CodeGen/R600/llvm.AMDGPU.div_scale.ll [new file with mode: 0644]
test/CodeGen/R600/llvm.AMDGPU.rcp.ll [new file with mode: 0644]
test/CodeGen/R600/llvm.AMDGPU.trig_preop.ll [new file with mode: 0644]
test/CodeGen/R600/pv.ll
test/CodeGen/R600/sgpr-copy.ll
test/CodeGen/R600/si-sgpr-spill.ll
test/Transforms/InstCombine/r600-intrinsics.ll [new file with mode: 0644]