This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/R600: Add get_global_offset_{x,y,z} intrinsic
AbandonedPublic

Authored by jvesely on May 16 2016, 1:28 PM.

Details

Reviewers
tstellarAMD
Summary

split the tests for r600 and amdgcn
global offset is located after kernel args and workdim

Diff Detail

Repository
rL LLVM

Event Timeline

jvesely updated this revision to Diff 57390.May 16 2016, 1:28 PM
jvesely retitled this revision from to AMDGPU: Add get_global_offset_{x,y,z} intrinsic.
jvesely updated this object.
jvesely added a reviewer: tstellarAMD.
jvesely set the repository for this revision to rL LLVM.
jvesely added subscribers: arsenm, llvm-commits.
jvesely updated this revision to Diff 57945.May 20 2016, 10:01 AM
jvesely updated this object.

grop amdgcn parts. it should use kergnarg segment.

jvesely retitled this revision from AMDGPU: Add get_global_offset_{x,y,z} intrinsic to AMDGPU/R600: Add get_global_offset_{x,y,z} intrinsic.May 23 2016, 4:33 PM
jvesely updated this revision to Diff 58353.May 24 2016, 4:38 PM
jvesely updated this object.

remove offset legacy tests from amdgcn

Do we still need this if we have the implicitarg.ptr intrinsic?

Do we still need this if we have the implicitarg.ptr intrinsic?

This one is for R600. We can switch R600 to use implicitarg.ptr too, but it's a bit more tricky since the loads can only handle constant pointers.

We might consider exposing it as int pointer, since args use AS 8, resulting in some ugly casts in libclc.

jvesely abandoned this revision.Jun 25 2016, 6:25 PM

we can follow gcn and don't need these

test/CodeGen/AMDGPU/r600.work-item-intrinsics.ll