Go to file
Alina Sbirlea b0b29c958a Add runtime support for __cpu_model (__builtin_cpu_supports)
Summary:
This aims to add support for __cpu_model and address Bug 25510. It uses the code from lib/Support/Host.cpp for cpu detection, and creates __cpu_model with that info.

Tested on OSX, it builts successfully, but the current version does *not* resolve Bug 25510. The __cpu_model symbol is present in the library but it only gets loaded with -all_load. This patch will not land until this issue is clarified.

Built on Linux as well (though libgcc is the default). The use of "asm" required -std=gnu99, hence the cmake change. Corrections on better addressing this are welcome.

Note: See additional comments on D20988 (committed as r271921).

Reviewers: llvm-commits, joerg, echristo, mehdi_amini

Subscribers: mehdi_amini

Differential Revision: http://reviews.llvm.org/D21033

llvm-svn: 274865
2016-07-08 16:18:34 +00:00
clang Don't crash when printing auto variables. 2016-07-08 16:04:22 +00:00
clang-tools-extra [include-fixer] Don't add qualifiers to symbols which have global scope operator. 2016-07-08 14:28:43 +00:00
compiler-rt Add runtime support for __cpu_model (__builtin_cpu_supports) 2016-07-08 16:18:34 +00:00
debuginfo-tests
libclc configure: Remove device specific defines 2016-06-17 20:30:50 +00:00
libcxx [libc++] Check hash before calling __hash_table key_eq function 2016-07-08 15:34:28 +00:00
libcxxabi Fix [libcxxabi] Fix warning about uninitialized const member. 2016-06-15 19:59:16 +00:00
libunwind [PATCH] [libunwind][ehabi] Use early returns where possible. 2016-07-08 12:13:31 +00:00
lld Recommit R274836 Add Thunk support framework for ARM and Mips 2016-07-08 16:10:27 +00:00
lldb Add an API to unwind from a hand-called expression. 2016-07-08 02:12:05 +00:00
llgo [llgo] llgoi: separate evaluation from printing 2016-04-25 01:18:20 +00:00
llvm minimize tests 2016-07-08 16:11:48 +00:00
openmp D22138: Added more Intel compiler versions as allowed build compilers 2016-07-08 15:23:35 +00:00
parallel-libs Change mailing list names in README 2016-06-24 22:50:09 +00:00
polly Fix assertion due to buildMemoryAccess. 2016-07-08 12:38:28 +00:00