[AMDGPU] add LDS f32 intrinsics
authorDaniil Fukalov <daniil.fukalov@amd.com>
Wed, 17 Jan 2018 14:05:05 +0000 (14:05 +0000)
committerDaniil Fukalov <daniil.fukalov@amd.com>
Wed, 17 Jan 2018 14:05:05 +0000 (14:05 +0000)
commitd5fca554e2384fe99d4cc89829955fa0222d0b5f
treec90ba3b14de30ab717bb1bfef889707e19bab6a2
parent6b65f7c3805ea1e49ee3354802ec6ecc9ca0de21
[AMDGPU] add LDS f32 intrinsics

added llvm.amdgcn.atomic.{add|min|max}.f32 intrinsics
to allow generate ds_{add|min|max}[_rtn]_f32 instructions
needed for OpenCL float atomics in LDS

Reviewed by: arsenm

Differential Revision: https://reviews.llvm.org/D37985

llvm-svn: 322656
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
llvm/lib/Target/AMDGPU/DSInstructions.td
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.td
llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
llvm/test/CodeGen/AMDGPU/lds_atomic_f32.ll [new file with mode: 0644]