This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Partially fix implicit.buffer.ptr intrinsic handling
ClosedPublic

Authored by arsenm on Jun 21 2017, 7:50 PM.

Details

Reviewers
mareko
airlied
Summary

This should not be treated as a different version of
private_segment_buffer. These are distinct things with
different uses and register classes, and requires the
function argument info to have more context about the
function's type and environment.

Also add missing test coverage for the intrinsic, and
emit an error for HSA. This also encovers that the intrinsic
is broken unless there happen to be stack objects.

Diff Detail

Event Timeline

arsenm created this revision.Jun 21 2017, 7:50 PM
airlied edited edge metadata.Jun 25 2017, 4:45 PM

Looks good to me, I regression tested a few things with it in geom/tess shader land and they seemed fine.

airlied accepted this revision.Jun 25 2017, 4:45 PM
This revision is now accepted and ready to land.Jun 25 2017, 4:45 PM
arsenm closed this revision.Jun 25 2017, 8:01 PM

r306264