This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Correct gfx940 memory model documentation.
ClosedPublic

Authored by rampitec on Mar 10 2022, 11:24 AM.

Diff Detail

Event Timeline

rampitec created this revision.Mar 10 2022, 11:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2022, 11:24 AM
rampitec requested review of this revision.Mar 10 2022, 11:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2022, 11:24 AM
Herald added a subscriber: wdng. · View Herald Transcript
t-tye added inline comments.Mar 14 2022, 8:29 AM
llvm/docs/AMDGPUUsage.rst
8721

How about:

Atomic read-modify-write instructions implicitly bypass the L1 cache. Therefore, they do not use the sc0 bit for coherence and instead use it to indicate if the instruction returns the original value being updated. They do use sc1 to indicate system or agent scope coherence.

rampitec updated this revision to Diff 415130.Mar 14 2022, 9:56 AM
rampitec marked an inline comment as done.
rampitec added inline comments.
llvm/docs/AMDGPUUsage.rst
8721

Thanks Tony. Updated text.

t-tye accepted this revision.Mar 14 2022, 4:14 PM

LGTM

llvm/docs/AMDGPUUsage.rst
8721

This also applies to all other targets

This revision is now accepted and ready to land.Mar 14 2022, 4:14 PM
This revision was landed with ongoing or failed builds.Mar 16 2022, 12:02 PM
This revision was automatically updated to reflect the committed changes.