This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: add llvm.amdgcn.image.load/store[.mip] intrinsics
ClosedPublic

Authored by nhaehnle on Feb 15 2016, 1:50 PM.

Details

Summary

These correspond to IMAGE_LOAD/STORE[_MIP] and are going to be used by Mesa
for the GL_ARB_shader_image_load_store extension.

IMAGE_LOAD is already matched by llvm.SI.image.load. That intrinsic has
a legacy name and pretends not to read memory.

Diff Detail

Repository
rL LLVM

Event Timeline

nhaehnle updated this revision to Diff 48011.Feb 15 2016, 1:50 PM
nhaehnle retitled this revision from to AMDGPU/SI: add llvm.amdgcn.image.load/store[.mip] intrinsics.
nhaehnle updated this object.
nhaehnle added a subscriber: llvm-commits.
nhaehnle updated this revision to Diff 48077.Feb 16 2016, 9:27 AM

I have cleaned up the intrinsics, removing the unorm (always 1) and tfe & lwe
(always 0) parameters that were there in analogy with the sampling instructions.

tstellarAMD accepted this revision.Feb 16 2016, 3:55 PM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Feb 16 2016, 3:55 PM
This revision was automatically updated to reflect the committed changes.