This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Add support for long-call/short-call attribute
Needs ReviewPublic

Authored by weimingz on Apr 27 2016, 11:50 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

GNU has long_call/short_call attribute support for ARM: https://gcc.gnu.org/onlinedocs/gcc-6.1.0/gcc/ARM-Function-Attributes.html#ARM-Function-Attributes.

LLVM/clang only supports the global switch/option (-mlong-call -mno-long-call). In some scenarios, we need to turn it on/off for individual functions.

Backend patch: http://reviews.llvm.org/D19609

Diff Detail

Event Timeline

weimingz updated this revision to Diff 55275.Apr 27 2016, 11:50 AM
weimingz retitled this revision from to [ARM] Add support for long-call/short-call attribute.
weimingz updated this object.