This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix default value of glc for mubuf rtn atomics
ClosedPublic

Authored by Petar.Avramovic on Dec 4 2020, 6:20 AM.

Details

Summary

Mubuf rtn atomics use GLC_1 thus default value for glc operand
should be -1, see https://reviews.llvm.org/D90730.
This allows us to report error when rtn atomic requires glc=1
but does not have glc operand in input.

Diff Detail

Event Timeline

Petar.Avramovic created this revision.Dec 4 2020, 6:20 AM
Petar.Avramovic requested review of this revision.Dec 4 2020, 6:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2020, 6:20 AM
foad added a comment.Dec 4 2020, 6:36 AM

Looks right to me but I'd like @dp or @rampitec to check it too.

dp accepted this revision.Dec 7 2020, 3:16 AM

LGTM

This revision is now accepted and ready to land.Dec 7 2020, 3:16 AM