This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Detemplate Thunk creation.
ClosedPublic

Authored by grimar on May 16 2017, 3:46 AM.

Details

Summary

Nothing special here, just detemplates code that became possible
to detemplate after recent commits in a straghtforward way.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.May 16 2017, 3:46 AM

As it stands no objections from me. I've got some changes that I'd like to make in this area for range extension thunks, I'm expecting to be able to rewrite them to take out the template parameter but I'd be grateful if you could take a quick look at https://reviews.llvm.org/D31662, to see if there is anything obvious there that would need the template parameter. The range thunks patches are currently out of date and will need rebasing but I think the general approach will remain the same.

Having said that I'm not making fast progress with the range thunk patches so it may be some time before I get to the patch that needs to put the template parameter back in and it will simplify the implementation in the mean time.

As it stands no objections from me. I've got some changes that I'd like to make in this area for range extension thunks, I'm expecting to be able to rewrite them to take out the template parameter but I'd be grateful if you could take a quick look at https://reviews.llvm.org/D31662, to see if there is anything obvious there that would need the template parameter. The range thunks patches are currently out of date and will need rebasing but I think the general approach will remain the same.

Having said that I'm not making fast progress with the range thunk patches so it may be some time before I get to the patch that needs to put the template parameter back in and it will simplify the implementation in the mean time.

D31662 does not seem to need templates for me.
Thunks creating code is area under development so I do not have strong position about if we should land this patch or not if there are any concerns about we might need the templates in future.

So I would be happy to hear other reviewers opinions here.

Thanks for checking.

Rereading the sentence below implies that I have a patch that definitely needs the ELFT template parameter. I don't have such a patch, just might do. Apologies for any confusion.

Having said that I'm not making fast progress with the range thunk patches so it may be some time before I get to the patch that needs to put the template parameter back in and it will simplify the implementation in the mean time.

I'm happy for you to go ahead, I'm also happy to remove the template parameters when they aren't needed as the range thunks implementation progresses.

ruiu accepted this revision.May 16 2017, 10:57 AM

LGTM

This revision is now accepted and ready to land.May 16 2017, 10:57 AM
This revision was automatically updated to reflect the committed changes.