[PATCH] [ARM] Save option "arm-long-calls" to the IR as a function attribute

Akira Hatanaka ahatanak at gmail.com
Fri May 8 16:18:14 PDT 2015


Made changes based on feedback comments.

In the new patch, a new cc1 option "function-attribute" is defined and "arm-long-calls" is passed as a function-attribute instead of a backend-option. I think this is better than my previous patch as it doesn't have to check "arm-long-calls", which is a target-specific attribute, in CompilerInvocation.cpp, and it no longer passes the string to cl::ParseCommandLineOptions to toggle the cl::opt option in the backend.


http://reviews.llvm.org/D9414

Files:
  include/clang/Driver/CC1Options.td
  include/clang/Frontend/CodeGenOptions.h
  lib/CodeGen/CGCall.cpp
  lib/Driver/Tools.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGen/fn-attr.c
  test/Driver/apple-kext-mkernel.c
  test/Driver/arm-long-calls.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9414.25383.patch
Type: text/x-patch
Size: 5737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150508/2fb962b2/attachment.bin>


More information about the cfe-commits mailing list