This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][MC] Corrected parsing of optional modifiers
ClosedPublic

Authored by dp on Jan 29 2021, 5:16 AM.

Details

Summary

Summary of changes:

  • Refactored parseNamedBit;
  • Removed obsoleted code (handling of default values have changed long ago);
  • Fixed bugs in parsing of "no*" modifiers (bug 41282);
  • Improved errors handling.

Diff Detail

Event Timeline

dp created this revision.Jan 29 2021, 5:16 AM
dp requested review of this revision.Jan 29 2021, 5:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 29 2021, 5:16 AM
foad accepted this revision.Jan 29 2021, 6:11 AM

LGTM.

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

drop_front might be a bit clearer than substr?

This revision is now accepted and ready to land.Jan 29 2021, 6:11 AM
dp added inline comments.Jan 29 2021, 6:17 AM
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
5933

Thanks! I'll correct this before committing.

This revision was automatically updated to reflect the committed changes.