Add an -mattr option to the gold plugin to support subtarget features in LTO
authorTom Roeder <tmroeder@google.com>
Fri, 25 Apr 2014 21:46:51 +0000 (21:46 +0000)
committerTom Roeder <tmroeder@google.com>
Fri, 25 Apr 2014 21:46:51 +0000 (21:46 +0000)
commit817f5e2fa137b15b536c952bcc1e75b1dd34b4b1
treef514566a78e689fcc0c138b83fde6342a4c26c9a
parentc744a371534456c1bb6557f053705f066ac33b62
Add an -mattr option to the gold plugin to support subtarget features in LTO

This adds support for an -mattr option to the gold plugin and to llvm-lto. This
allows the caller to specify details of the subtarget architecture, like +aes,
or +ssse3 on x86.  Note that this requires a change to the include/llvm-c/lto.h
interface: it adds a function lto_codegen_set_attr and it increments the
version of the interface.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207279 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/lto.h
include/llvm/LTO/LTOCodeGenerator.h
lib/LTO/LTOCodeGenerator.cpp
test/LTO/attrs.ll [new file with mode: 0644]
tools/llvm-lto/llvm-lto.cpp
tools/lto/lto.cpp