[PATCH] D19609: [ARM] Add support for long-call/short-call attribute

Weiming Zhao via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 12:28:20 PDT 2016


weimingz added a comment.

In http://reviews.llvm.org/D19609#414292, @t.p.northover wrote:

> Hi Weiming,
>
> I've got two issues with the current implementation:
>
> First, I think this should be an attribute on the call-site rather than the callee. You could easily imagine (particularly in LTO situations targeting weird embedded memory layouts) mutually short-callable clusters of functions that need long-calls between those groups. If the attribute is fixed on the callee that's not going to work.
>
> Second, I don't really think "target-features" is the place for this attribute. They're meant to affect the CodeGen of the function definition, not really what callees do with it as far as I can see.
>
> Cheers.
>
> Tim.


Hi Tim,

Yes, we should let clang to carry the info on call site. (via metadata?)
If we do so, we don't need to worry about placing it into target-features.


Repository:
  rL LLVM

http://reviews.llvm.org/D19609





More information about the llvm-commits mailing list