[PATCH] D9364: [ARM] Use function attribute "arm-long-calls"

Akira Hatanaka ahatanak at gmail.com
Thu Jul 2 18:39:29 PDT 2015


ahatanak updated this revision to Diff 28985.
ahatanak added a comment.

The updated patch defines a new ARM subtarget feature for "long-calls" and replaces all the uses of EnableARMLongCalls with the new feature. This is simpler than my previous approach that uses a function attribute as there is no need to add new code to allow cl::opt options to override the attribute or disable inlining. I also made changes to ARM's fast-isel to read the subtarget feature and updated the test case to make sure "long-calls" is honored at -O0 too.


http://reviews.llvm.org/D9364

Files:
  lib/Target/ARM/ARM.td
  lib/Target/ARM/ARMFastISel.cpp
  lib/Target/ARM/ARMISelLowering.cpp
  lib/Target/ARM/ARMSubtarget.cpp
  lib/Target/ARM/ARMSubtarget.h
  test/CodeGen/ARM/Windows/long-calls.ll
  test/CodeGen/ARM/fast-isel-call.ll
  test/CodeGen/ARM/fast-isel-intrinsic.ll
  test/CodeGen/ARM/fast-isel-static.ll
  test/CodeGen/ARM/subtarget-features-long-calls.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9364.28985.patch
Type: text/x-patch
Size: 11572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150703/9e47c979/attachment.bin>


More information about the llvm-commits mailing list