[PATCH] D26472: AMDGPU/SI: Support data types other than V4f32 in image intrinsics

Changpeng Fang via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 9 14:02:55 PST 2016


cfang created this revision.
cfang added reviewers: tstellarAMD, arsenm, kzhuravl.
cfang added subscribers: arsenm, llvm-commits.
Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng.

Extend image intrinsics to support data types of V1F32 and V2F32.

TODO: we should define a mapping table to change the opcode for data type of V2F32 but just one channel is active,
even though such case should be very rare.


https://reviews.llvm.org/D26472

Files:
  lib/Target/AMDGPU/MIMGInstructions.td
  lib/Target/AMDGPU/SIISelLowering.cpp
  test/CodeGen/AMDGPU/llvm.amdgcn.image.gather4.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.image.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.image.sample.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26472.77390.patch
Type: text/x-patch
Size: 19969 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161109/1923f01a/attachment.bin>


More information about the llvm-commits mailing list