This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fixed physreg asm constraint parsing
ClosedPublic

Authored by rampitec on Jan 11 2022, 2:18 PM.

Details

Summary

We are always failing parsing of the physreg constraint because
we do not drop trailing brace, thus getAsInteger() returns a
non-empty string and we delegate reparsing to the TargetLowering.

In addition it did not parse register tuples.

Fixed which has allowed to remove w/a in two places we call it.

Diff Detail

Event Timeline

rampitec created this revision.Jan 11 2022, 2:18 PM
rampitec requested review of this revision.Jan 11 2022, 2:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 11 2022, 2:18 PM
Herald added a subscriber: wdng. · View Herald Transcript
rampitec updated this revision to Diff 399494.Jan 12 2022, 3:36 PM
rampitec edited the summary of this revision. (Show Details)

Fixed tuple parsing as well.
Removed w/a in 2 places which were using it.

arsenm accepted this revision.Jan 12 2022, 4:07 PM
This revision is now accepted and ready to land.Jan 12 2022, 4:07 PM
This revision was landed with ongoing or failed builds.Jan 12 2022, 4:37 PM
This revision was automatically updated to reflect the committed changes.