This is an archive of the discontinued LLVM Phabricator instance.

[NFC][AMDGPU] Improve documentation of AMDGPU handling of volatile
AcceptedPublic

Authored by t-tye on Mar 5 2021, 3:25 PM.

Details

Reviewers
rampitec
kzhuravl

Diff Detail

Event Timeline

t-tye created this revision.Mar 5 2021, 3:25 PM
t-tye requested review of this revision.Mar 5 2021, 3:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 5 2021, 3:25 PM
rampitec accepted this revision.Mar 5 2021, 3:28 PM
This revision is now accepted and ready to land.Mar 5 2021, 3:28 PM
foad added a subscriber: foad.Mar 8 2021, 5:01 AM
foad added inline comments.
llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
1704

"LLVM IR marks all atomic operations as volatile": no it doesn't. There are plenty of examples in the lit test suite of load atomic / store atomic / atomicrmw both with and without the volatile keyword.

t-tye added inline comments.Mar 8 2021, 5:45 AM
llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp
1704

Then maybe it is an issue in the MIR, perhaps limited to AMDGPU memory operands. It needs more investigation to figure out, then this review can be updated one way or another.