[AMDGPU] Add intrinsics for 16 bit interpolation
authorTim Corringham <tcorring@amd.com>
Mon, 28 Jan 2019 13:48:59 +0000 (13:48 +0000)
committerTim Corringham <tcorring@amd.com>
Mon, 28 Jan 2019 13:48:59 +0000 (13:48 +0000)
commit824ca3f3dd8584db7a015a550be5ee512d8e362f
tree6777ac02abf444cfe04c2c4ec86a37824fccb88f
parent575c0855c04f2549025e4a8b4df9e58c80009146
[AMDGPU] Add intrinsics for 16 bit interpolation

Summary:
Added the intrinsics llvm.amdgcn.interp.p1.f16() and
llvm.amdgcn.interp.p2.f16() and related LIT test.

The p1 intrinsic generates code appropriate for both 16 and 32
bank LDS.

Reviewers: #amdgpu, dstuttard, arsenm, tpr

Reviewed By: #amdgpu, arsenm

Subscribers: jvesely, mgorny, arsenm, kzhuravl, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits

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

llvm-svn: 352357
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.td
llvm/lib/Target/AMDGPU/AMDGPUSearchableTables.td
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/lib/Target/AMDGPU/VOP3Instructions.td
llvm/test/Analysis/DivergenceAnalysis/AMDGPU/interp_f16.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.interp.f16.ll [new file with mode: 0644]