]> granicus.if.org Git - clang/commit
[CodeGen] Add thumb-mode to target-features for arm/thumb triples.
authorFlorian Hahn <florian.hahn@arm.com>
Wed, 7 Jun 2017 11:50:45 +0000 (11:50 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Wed, 7 Jun 2017 11:50:45 +0000 (11:50 +0000)
commit54a73f97584724c131f71d7a6f56c1a1dffdea2a
tree92040b59ebea2751fdd1c208951824600c918b84
parent1741b26b00397c62ce7fb95250b37268484ac140
[CodeGen] Add thumb-mode to target-features for arm/thumb triples.

Summary:
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 in a similar fashion.

Reviewers: echristo, t.p.northover, kristof.beyls, rengolin

Reviewed By: echristo

Subscribers: rinon, aemerson, mehdi_amini, javed.absar, cfe-commits

Differential Revision: https://reviews.llvm.org/D33448

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304897 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/Targets.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 [new file with mode: 0644]