This is an archive of the discontinued LLVM Phabricator instance.

[SPARC] Fix type for i64 inline asm operands
ClosedPublic

Authored by LemonBoy on May 1 2021, 12:09 PM.

Details

Summary

Due to the (clever?) way of representing both the 32 and 64 instruction
sets using a single RegisterClass we may end up with a mismatched
register when resolving named input/output constraints.

Fix the problem by patching the register class to an appropriate value
after performing the usual lookup.

Diff Detail

Event Timeline

LemonBoy created this revision.May 1 2021, 12:09 PM
LemonBoy requested review of this revision.May 1 2021, 12:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 1 2021, 12:09 PM
LemonBoy updated this revision to Diff 345826.May 17 2021, 4:20 AM

Cleaner and nicer logic.

brad edited the summary of this revision. (Show Details)Jun 14 2021, 7:29 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 9 2022, 8:57 AM
brad set the repository for this revision to rG LLVM Github Monorepo.Mar 9 2022, 12:56 PM

Ping? Anything else needs to be done for this?

This revision was not accepted when it landed; it landed in state Needs Review.Jun 4 2022, 3:43 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.