Go to file
Chandler Carruth 3a040e6d47 [attrs] Extract the pure inference of function attributes into
a standalone pass.

There is no call graph or even interesting analysis for this part of
function attributes -- it is literally inferring attributes based on the
target library identification. As such, we can do it using a much
simpler module pass that just walks the declarations. This can also
happen much earlier in the pass pipeline which has benefits for any
number of other passes.

In the process, I've cleaned up one particular aspect of the logic which
was necessary in order to separate the two passes cleanly. It now counts
inferred attributes independently rather than just counting all the
inferred attributes as one, and the counts are more clearly explained.

The two test cases we had for this code path are both ... woefully
inadequate and copies of each other. I've kept the superset test and
updated it. We need more testing here, but I had to pick somewhere to
stop fixing everything broken I saw here.

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

llvm-svn: 256466
2015-12-27 08:41:34 +00:00
clang ArrayRef-ize TemplateParameterList. NFC 2015-12-27 07:16:27 +00:00
clang-tools-extra [clang-tidy] Added documentation for modernize-redundant-void-arg 2015-12-22 18:13:00 +00:00
compiler-rt [power] Fix test case target checks 2015-12-24 20:21:36 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc AMDGPU: Add aliases for all VI targets 2015-12-15 18:37:04 +00:00
libcxx [libcxx] Fix LWG Issue #2367 - Fixing std::tuple and std::pair's default constructors. 2015-12-23 08:20:26 +00:00
libcxxabi Add new tests for throwing incomplete pointer types 2015-12-23 07:04:32 +00:00
libunwind Replace cmake check for printf with a check for fopen. 2015-12-10 00:47:08 +00:00
lld Split Writer::assignAddresses. NFC. 2015-12-26 10:52:26 +00:00
lldb Update LLDB to account for Clang r256463 2015-12-27 07:16:55 +00:00
llgo [llgo] Force exporting __morestack from llgoi 2015-11-27 04:46:46 +00:00
llvm [attrs] Extract the pure inference of function attributes into 2015-12-27 08:41:34 +00:00
openmp Fix build error: OMPT_SUPPORT=true was not tested after hinted lock changes 2015-12-23 02:34:03 +00:00
polly Do not store scalar accesses in InstructionToAccess 2015-12-22 23:25:11 +00:00