This is an archive of the discontinued LLVM Phabricator instance.

[docs]Examples to show implementation of GISel in AArch64
Needs ReviewPublic

Authored by pooja2299 on Jul 12 2021, 1:18 AM.

Details

Summary

Examples showing the IRTranslator phase of GISel is added. The lowering formal arguments and return values of call lowering part is shown. Examples of lowering function call is yet to be added.

Diff Detail

Event Timeline

pooja2299 created this revision.Jul 12 2021, 1:18 AM
pooja2299 requested review of this revision.Jul 12 2021, 1:18 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 12 2021, 1:18 AM

I think that including entire code snippets will probably rot over time and potentially confuse readers.

I think in general, it would be good to focus on high-level concepts so that we don't need to do as much work keeping this in sync with the code.

Also, I'm not sure if we have documentation on terminology like "incoming arguments". If we do, I think it would be useful to link to the documentation for the terminology.

llvm/docs/GlobalISel/AArch64examples.rst
2

Maybe more concise?

12

Can you expand on this a little?

  • What kinds of examples does this documentation contain?
  • What can the reader expect to find in this documentation?
22

I think that this code sample may rot over time. I think it would be better to describe, at a high level

  • What lowering incoming arguments means
  • What must be done to lower incoming arguments

And then say "see AArch64CallLowering::lowerFormalArguments" for a sample.

I think that including entire code snippets will probably rot over time and potentially confuse readers.

I think in general, it would be good to focus on high-level concepts so that we don't need to do as much work keeping this in sync with the code.

Also, I'm not sure if we have documentation on terminology like "incoming arguments". If we do, I think it would be useful to link to the documentation for the terminology.

yes sure. Thanks for your feedback. This is the basic structure that i thought to made . I will be writing more descriptions and will add only the relevant code. I just wanted to get a quick feedback from you all , so that I get an idea what needs to be added and deleted. Your reviews are really helpful. Thanks! I will update soon.

okk. Thanks for giving a reference for the documentation structure.

pooja2299 added inline comments.Jul 12 2021, 6:17 PM
llvm/docs/GlobalISel/AArch64examples.rst
2

Okk. Seems precise to me.

12

Yes, sure.

22

okk

arsenm added a subscriber: arsenm.Jul 19 2021, 8:07 AM
arsenm added inline comments.
llvm/docs/GlobalISel/AArch64examples.rst
22

I agree, this will bitrot and is also too specific to AArch64

130

Most of this stuff shouldn't really be here, the generic code should be handling this so it's not great to say this is how you should handle returns