[PATCH] D22838: AMDGPU/SI: Implement amdgcn image intrinsics

Changpeng Fang via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 8 16:47:50 PDT 2016


cfang updated this revision to Diff 67245.
cfang added a comment.

Implement sampler intrinsics:

1. define vdata type to be llvm_anyfloat_ty, address type to be llvm_anyfloat_ty, and rsrc type to be llvm_anyint_ty as a result, we expect the intrinsics name to have three suffixes to overload each of these three types;

2. https://reviews.llvm.org/D128 as well as two other flags are implied in the three types, for example, if you use v8i32 as rsrc type, then r128 is true!

3. don't expose TFE flag, and other flags are exposed in the instruction order: unrm, glc, slc, lwe and da.

4. LIT tests are not included now!


https://reviews.llvm.org/D22838

Files:
  include/llvm/IR/IntrinsicsAMDGPU.td
  lib/Target/AMDGPU/SIInstructions.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22838.67245.patch
Type: text/x-patch
Size: 15042 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160808/d19f7d58/attachment.bin>


More information about the llvm-commits mailing list