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.
Paths
| Differential D95675
[AMDGPU][MC] Corrected parsing of optional modifiers ClosedPublic Authored by dp on Jan 29 2021, 5:16 AM.
Details Summary Summary of changes:
Diff Detail Event TimelineHerald added subscribers: kerbowa, jfb, hiraditya and 8 others. · View Herald TranscriptJan 29 2021, 5:16 AM Comment Actions LGTM.
This revision is now accepted and ready to land.Jan 29 2021, 6:11 AM
Closed by commit rG586df38478b2: [AMDGPU][MC] Corrected parsing of optional modifiers (authored by dp). · Explain WhyFeb 2 2021, 3:52 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 320106 llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/test/MC/AMDGPU/flat-global.s
llvm/test/MC/AMDGPU/flat-scratch-instructions.s
llvm/test/MC/AMDGPU/gfx8_err_pos.s
llvm/test/MC/AMDGPU/gfx9_err_pos.s
llvm/test/MC/AMDGPU/vop3-modifiers-err.s
llvm/test/MC/AMDGPU/vop3-modifiers.s
|
drop_front might be a bit clearer than substr?