This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Mark SMRD atomics
ClosedPublic

Authored by rampitec on Feb 16 2021, 4:41 PM.

Details

Summary

We did not have atomic flags on SMRD, did not copy TSFlags
to real instructions, and did not have ret/noret atomic map.

At the moment it is NFC, but needed for D96469.

Diff Detail

Event Timeline

rampitec created this revision.Feb 16 2021, 4:41 PM
rampitec requested review of this revision.Feb 16 2021, 4:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 16 2021, 4:41 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm added inline comments.Feb 16 2021, 4:47 PM
llvm/lib/Target/AMDGPU/SMInstructions.td
600

Why parse this out instead of appending _RTN?

rampitec added inline comments.Feb 16 2021, 5:04 PM
llvm/lib/Target/AMDGPU/SMInstructions.td
600

It is real, _RTN is in the middle and full name is not available. I could construct proper name from the multiclass instantiating this, but it is more code.

foad added a comment.Feb 17 2021, 12:09 AM

At the moment it is NFC

Doesn't this mean that SITargetLowering::AdjustInstrPostInstrSelection will start optimizing the ret form to the noret form?

At the moment it is NFC

Doesn't this mean that SITargetLowering::AdjustInstrPostInstrSelection will start optimizing the ret form to the noret form?

Hm... Theoretically.

At the moment it is NFC

Doesn't this mean that SITargetLowering::AdjustInstrPostInstrSelection will start optimizing the ret form to the noret form?

I don't think selecting the scalar atomics was ever supported

At the moment it is NFC

Doesn't this mean that SITargetLowering::AdjustInstrPostInstrSelection will start optimizing the ret form to the noret form?

I don't think selecting the scalar atomics was ever supported

Right, I do not see patterns.

arsenm accepted this revision.Feb 17 2021, 1:57 PM
This revision is now accepted and ready to land.Feb 17 2021, 1:57 PM
This revision was automatically updated to reflect the committed changes.