[PATCH] D38906: AMDGPU/SI: Implement d16 support buffer_load_format and tbuffer_load_format intrinsics

Changpeng Fang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 13 16:06:34 PDT 2017


cfang created this revision.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.

This patch implements buffer_load_format and tbuffer_load_format intrinsics that support half data types.

While types that are not legal currently ( v4f16, for example), we are using ReplaceNodeResults to change the 
type and cast it back after customer lowering.


https://reviews.llvm.org/D38906

Files:
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  lib/Target/AMDGPU/AMDGPUISelLowering.h
  lib/Target/AMDGPU/BUFInstructions.td
  lib/Target/AMDGPU/SIISelLowering.cpp
  lib/Target/AMDGPU/SIInstrInfo.td
  test/CodeGen/AMDGPU/llvm.amdgcn.buffer.load.d16.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.tbuffer.load.d16.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38906.118982.patch
Type: text/x-patch
Size: 14890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171013/458c58ad/attachment-0001.bin>


More information about the llvm-commits mailing list