OSDN Git Service

[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)
commitb77f4df06f27a2e318fb6eee75ec0a28ec34dcd5
tree9a8d6bf1772e12b780aaa2753cb55a358658380e
parentd9e7f2b23c20b26a815326b57560b8cdbf6a80a9
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352357 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsAMDGPU.td
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
lib/Target/AMDGPU/AMDGPUISelLowering.h
lib/Target/AMDGPU/AMDGPUInstrInfo.td
lib/Target/AMDGPU/AMDGPUSearchableTables.td
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/VOP3Instructions.td
test/Analysis/DivergenceAnalysis/AMDGPU/interp_f16.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/llvm.amdgcn.interp.f16.ll [new file with mode: 0644]