summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetPassConfig.cpp
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2016-07-08 16:28:54 +0000
committerAlina Sbirlea <asbirlea@google.com>2016-07-08 16:28:54 +0000
commit9ebebce2df3253bb897b08039b6bc7d99ac29cd0 (patch)
tree4f39aee30852675b53d57e9fc193da465d6b4f82 /llvm/lib/CodeGen/TargetPassConfig.cpp
parentfb11f27253d0ac15b3631d409410f50d9957288e (diff)
downloadbcm5719-llvm-9ebebce2df3253bb897b08039b6bc7d99ac29cd0.tar.gz
bcm5719-llvm-9ebebce2df3253bb897b08039b6bc7d99ac29cd0.zip
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: 274873
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud