This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Add mem operand to s.buffer.load intrinsic
ClosedPublic

Authored by arsenm on Feb 3 2020, 5:11 AM.

Details

Summary

Really the intrinsic definition is wrong, but work around this
here. The DAG lowering introduces an MMO. We have to introduce a new
operation to avoid the verifier complaining about the missing mayLoad.

Diff Detail

Event Timeline

arsenm created this revision.Feb 3 2020, 5:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2020, 5:11 AM
nhaehnle accepted this revision.Feb 5 2020, 8:23 AM

Ugh, there's the age-old issue of fixing the s.buffer.load intrinsic. This whole thing is unfortunate, but it seems like a reasonable workaround for you to use for the time being. LGTM.

This revision is now accepted and ready to land.Feb 5 2020, 8:23 AM