This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Define an intrinsic to expose ds_swizzle_b32
ClosedPublic

Authored by cfang on Jun 20 2016, 1:49 PM.

Details

Summary

llvm.amdgcn.ds.swizzle(i32 src, i32 offset) where offset is a 16bit immediate.

Diff Detail

Repository
rL LLVM

Event Timeline

cfang updated this revision to Diff 61300.Jun 20 2016, 1:49 PM
cfang retitled this revision from to AMDGPU/SI: Define an intrinsic to expose ds_swizzle_b32.
cfang updated this object.
cfang added reviewers: tstellarAMD, arsenm.
cfang added subscribers: arsenm, llvm-commits.
tstellarAMD accepted this revision.Jun 21 2016, 9:01 PM
tstellarAMD edited edge metadata.

LGTM. To expose this to OpenCL, we will also need to add the corresponding builtin to clang.

This revision is now accepted and ready to land.Jun 21 2016, 9:01 PM
This revision was automatically updated to reflect the committed changes.