[PATCH] D45240: [ARM] Compute a target feature which corresponds to the ARM version.

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 3 18:21:42 PDT 2018


efriedma created this revision.
efriedma added reviewers: compnerd, SjoerdMeijer, fhahn.
Herald added subscribers: kristof.beyls, javed.absar, mehdi_amini.

Currently, the interaction between the triple, the CPU, and the supported features is a mess: the driver edits the triple to indicate the supported architecture version, and the LLVM backend uses this to figure out what instructions are legal.  This makes it difficult to understand what's happening, and makes it impossible to LTO together two modules with different computed architectures.

Instead of relying on triple rewriting to get the correct target features, we should add the right target features explicitly.


Repository:
  rC Clang

https://reviews.llvm.org/D45240

Files:
  lib/Basic/Targets/ARM.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: D45240.140892.patch
Type: text/x-patch
Size: 11146 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180404/fcb24868/attachment.bin>


More information about the cfe-commits mailing list