Page MenuHomePhabricator

AMDGPU: Add skeleton GlobalIsel implementation

Authored by tstellarAMD on Apr 13 2016, 2:46 PM.



This adds the necessary target code to be able to run the ir translator.
Lowering function arguments and returns is a nop and there is no support
for RegBankSelect.

Diff Detail


Event Timeline

tstellarAMD retitled this revision from to AMDGPU: Add skeleton GlobalIsel implementation.
tstellarAMD updated this object.
tstellarAMD added reviewers: arsenm, qcolombet.
tstellarAMD added a subscriber: llvm-commits.
arsenm added inline comments.Apr 13 2016, 2:53 PM
1 ↗(On Diff #53623)

Missing -*- C++ -*-

15 ↗(On Diff #53623)

Missing _H

28–29 ↗(On Diff #53623)

Should probably update these to use the current start with lowercase naming convention while it's new

112 ↗(On Diff #53623)

Typo onwership, although it seems like this comment would only go on the base class

19 ↗(On Diff #53623)

Weird indent

Address some code review comments.

tstellarAMD marked 3 inline comments as done.Apr 13 2016, 3:51 PM
tstellarAMD added inline comments.
28–29 ↗(On Diff #53623)

Ok, I can try to fix up the parent in a new class.

112 ↗(On Diff #53623)

I dropped this comment.

arsenm accepted this revision.Apr 13 2016, 3:54 PM
arsenm edited edge metadata.


This revision is now accepted and ready to land.Apr 13 2016, 3:54 PM
qcolombet edited edge metadata.Apr 13 2016, 4:39 PM

Hi Tom,

Mostly LGTM, but I do not see AMDGPUGISelAccessor.h in the diff.


29–30 ↗(On Diff #53633)

By all means, fix that in the base class :).

PS: Side question, since I see you used the GISelAccessor trick, would it make sense that we provide the basic GISelAccessor class in GlobalISel header?

tstellarAMD edited edge metadata.

Update patch after making some changes to core GlobalISel.

qcolombet accepted this revision.Apr 14 2016, 9:44 AM
qcolombet edited edge metadata.


This revision was automatically updated to reflect the committed changes.