This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Restrict image_msaa_load to MSAA dimension types
ClosedPublic

Authored by critson on Mar 11 2021, 12:36 AM.

Details

Summary

This instruction is only valid on 2D MSAA and 2D MSAA Array
surfaces. Remove intrinsic support for other dimension types,
and block assembly for unsupported dimensions.

Diff Detail

Event Timeline

critson created this revision.Mar 11 2021, 12:36 AM
critson requested review of this revision.Mar 11 2021, 12:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 11 2021, 12:36 AM
foad added a reviewer: dp.Mar 11 2021, 1:31 AM
foad added a subscriber: dp.

Looks good to me. Adding @dp for the AsmParser bits.

dp added a comment.Mar 11 2021, 6:02 AM

MC changes look fine.

llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
4156

You could improve error position using

getImmLoc(AMDGPUOperand::ImmTyDim, Operands)
critson marked an inline comment as done.Mar 11 2021, 6:58 AM
critson added inline comments.
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
4156

Thanks for pointing this out!

critson updated this revision to Diff 329958.Mar 11 2021, 6:59 AM
critson marked an inline comment as done.
  • Address reviewer comments.
foad accepted this revision.Mar 11 2021, 7:16 AM
foad added a reviewer: rdomingu.

LGTM.

This revision is now accepted and ready to land.Mar 11 2021, 7:16 AM
This revision was landed with ongoing or failed builds.Mar 11 2021, 4:48 PM
This revision was automatically updated to reflect the committed changes.