This is an archive of the discontinued LLVM Phabricator instance.

[Lanai] fix lowering wide returns
ClosedPublic

Authored by q3k on Jul 29 2021, 9:36 AM.

Details

Summary

This implements LanaiTargetLowering::CanLowerReturn, thereby ensuring
all return values conform to the RetCC and get sret-demoted as
necessary.

A regression test is also added that exercises this functionality.

Diff Detail

Event Timeline

q3k created this revision.Jul 29 2021, 9:36 AM
q3k requested review of this revision.Jul 29 2021, 9:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2021, 9:36 AM
q3k updated this revision to Diff 362816.Jul 29 2021, 10:11 AM

Ran clang-tidy.

jpienaar accepted this revision.Aug 2 2021, 9:55 AM
This revision is now accepted and ready to land.Aug 2 2021, 9:55 AM
q3k added a comment.Aug 2 2021, 11:50 AM

Thanks! I don't have a commit bit, so someone needs to submit this for me.

This revision was automatically updated to reflect the committed changes.