This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][MC][GFX6][GFX7][GFX10] Added instructions buffer_atomic_[fcmpswap/fmin/fmax]*
ClosedPublic

Authored by dp on Oct 10 2019, 6:25 AM.

Diff Detail

Event Timeline

dp created this revision.Oct 10 2019, 6:25 AM
rampitec added inline comments.Oct 10 2019, 8:05 AM
lib/Target/AMDGPU/BUFInstructions.td
2022 ↗(On Diff #224329)

Looks like this comment is no longer irrelevant?

dp marked an inline comment as done.Oct 10 2019, 9:36 AM
dp added inline comments.
lib/Target/AMDGPU/BUFInstructions.td
2022 ↗(On Diff #224329)

I'm not sure if it is still relevant - I do not understand why FCMPSWAP_X2 is special.

Doc states that "If the buffer instruction uses an SGPR for its offset, there is no data hazard." This condition is checked by GCNHazardRecognizer, but it affects all BUF opcodes, not only FCMPSWAP_X2.

This revision is now accepted and ready to land.Oct 10 2019, 9:38 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2019, 7:46 AM