This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][MC] Restore old error position for "too few operands"
ClosedPublic

Authored by scott.linder on Dec 9 2020, 12:20 PM.

Details

Summary

Revert part of https://reviews.llvm.org/D92084 to make it simpler to
start consuming the EndOfStatement token within AMDGPU's
ParseInstruction in a future patch. This also brings us back to what
every other target currently does.

A future change to move the position back to the end of the statement
would likely need to audit all of the AMDGPUOperand SMLoc ranges, and
determine the SMLoc for the last character of the last operand.

Diff Detail

Event Timeline

scott.linder created this revision.Dec 9 2020, 12:20 PM
scott.linder requested review of this revision.Dec 9 2020, 12:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2020, 12:20 PM
dp accepted this revision.Dec 9 2020, 12:29 PM

LGTM. Thank you!

This revision is now accepted and ready to land.Dec 9 2020, 12:29 PM
This revision was landed with ongoing or failed builds.Dec 9 2020, 1:10 PM
This revision was automatically updated to reflect the committed changes.