AMDGPU: Add intrinsics for sin/cos
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 13 Feb 2016 01:19:56 +0000 (01:19 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 13 Feb 2016 01:19:56 +0000 (01:19 +0000)
commitce56a0ef54d2e7a1f6f41eb6af13c6a7e4407dd7
tree3576b3bdd4f34f0d7b2296e4668e0cb150be3722
parentf5c1f471814b3f0373713787b7b1f68ba3105f2e
AMDGPU: Add intrinsics for sin/cos

These provide direct access to the hardware instruction without
the unit version required like llvm.sin/llvm.cos lowering requires.

llvm-svn: 260782
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/SIInstructions.td
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cos.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.log.clamp.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.sin.ll [new file with mode: 0644]