This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][MC][GFX8+] Correct SMEM offset parsing
ClosedPublic

Authored by dp on May 18 2022, 10:00 AM.

Diff Detail

Event Timeline

dp created this revision.May 18 2022, 10:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 10:00 AM
dp requested review of this revision.May 18 2022, 10:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 10:00 AM
rampitec accepted this revision.May 18 2022, 10:20 AM
This revision is now accepted and ready to land.May 18 2022, 10:20 AM
kosarev added inline comments.May 19 2022, 1:05 AM
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
7739–7740

Can we just say something like isImmTy(ImmTyNone) || isImmTy(ImmTyOffset)? The way it is, it's not clear what's so special about cache policies in relation with SMEM offsets.

dp updated this revision to Diff 430628.May 19 2022, 3:35 AM
dp marked an inline comment as done.
dp added a reviewer: kosarev.

Updated as suggested by Ivan.

llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
7739–7740

Good point, thanks!

kosarev accepted this revision.May 19 2022, 3:53 AM

LGTM.

This revision was automatically updated to reflect the committed changes.