This is an archive of the discontinued LLVM Phabricator instance.

[M68k][GlobalISel] Add basic support for function call in GlobalISel
AbandonedPublic

Authored by 0x59616e on Dec 14 2021, 11:05 PM.

Details

Reviewers
None
Summary

With this patch, GlobalISel in M68k can support basic function call.

Here's some notes:

  • Handling return value needs to deal with 'COPY'. Looking at the code in AArch64, selecting 'COPY' seems not trivial. I want to take care of it later.
  • Handling argument passing needs to tackle 'G_PTR_ADD'. I want to handle it in complex pattern. But there are other instructions using complex pattern too, so I want to tackle them together.

There are still a lot of work to do. But I want to make sure I'm on the right way. I think this is a good point for review.

Diff Detail

Unit TestsFailed

Event Timeline

0x59616e created this revision.Dec 14 2021, 11:05 PM
0x59616e requested review of this revision.Dec 14 2021, 11:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 14 2021, 11:05 PM
0x59616e edited the summary of this revision. (Show Details)Dec 14 2021, 11:05 PM
0x59616e edited the summary of this revision. (Show Details)
0x59616e edited the summary of this revision. (Show Details)
0x59616e edited the summary of this revision. (Show Details)
0x59616e abandoned this revision.Dec 14 2021, 11:08 PM