]> granicus.if.org Git - clang/commit
Add CodeGen support for adding cpu attributes on functions based on
authorEric Christopher <echristo@gmail.com>
Sat, 21 Mar 2015 06:15:15 +0000 (06:15 +0000)
committerEric Christopher <echristo@gmail.com>
Sat, 21 Mar 2015 06:15:15 +0000 (06:15 +0000)
commitf3f115679db522ca44f75e3dadf3cdef8679b928
tree128b8625806b7465e9a00c2a625329e652a29d16
parent903d93dbb0e71cd47676b5e9f18f038ee2f56dd5
Add CodeGen support for adding cpu attributes on functions based on
the target-cpu, if different from the triple's cpu, and
target-features as they're written that are passed down from the
driver.

Together with LLVM r232885 this should allow the LTO'ing of binaries
that contain modules compiled with different code generation options
on a subset of architectures with full backend support (x86, powerpc,
aarch64).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232888 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
test/CodeGen/function-target-features.c [new file with mode: 0644]