[PATCH] D33448: [CodeGen] Add thumb-mode to function target-features for arm/thumb triples.

Florian Hahn via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 23 09:44:52 PDT 2017


fhahn created this revision.
Herald added subscribers: javed.absar, mehdi_amini, aemerson.

The thumb-mode target feature is used to force Thumb or ARM code
generation on a per-function basis. Explicitly adding +thumb-mode to
functions for thumbxx triples enables mixed ARM/Thumb code generation in
places where compilation units with thumbxx and armxx triples are merged
together (e.g. the IR linker or LTO).

      

For armxx triples, -thumb-mode is added.


https://reviews.llvm.org/D33448

Files:
  lib/CodeGen/TargetInfo.cpp
  test/CodeGen/arm-long-calls.c
  test/CodeGen/arm-no-movt.c
  test/CodeGen/arm-target-features.c
  test/CodeGen/arm-thumb-mode-target-feature.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33448.99936.patch
Type: text/x-patch
Size: 10617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170523/c7cf89e8/attachment.bin>


More information about the cfe-commits mailing list