summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Change code owner for Clang Static Analyzer to Anna Zaks.Ted Kremenek2015-11-121-2/+2
| | | | llvm-svn: 252841
* Refactor out some common code from r252834David Blaikie2015-11-121-39/+26
| | | | llvm-svn: 252840
* [CMake] Setup an install component for libclang and c-index-test.Argyrios Kyrtzidis2015-11-123-10/+30
| | | | | | Also don't create libclang dylib symlinks on darwin. llvm-svn: 252836
* Provide a frontend based error for always_inline functions that requireEric Christopher2015-11-127-123/+94
| | | | | | | | | | | | | | | target features that the caller function doesn't provide. This matches the existing backend failure to inline functions that don't have matching target features - and diagnoses earlier in the case of always_inline. Fix up a few test cases that were, in fact, invalid if you tried to generate code from the backend with the specified target features and add a couple of tests to illustrate what's going on. This should fix PR25246. llvm-svn: 252834
* Move checkTargetFeatures to CodeGenFunction.cpp to make itEric Christopher2015-11-122-42/+43
| | | | | | more obvious that it's generic. llvm-svn: 252833
* In preparation to use it in more places renameEric Christopher2015-11-122-14/+12
| | | | | | | checkBuiltinTargetFeatures to checkTargetFeatures and sink the error handling into the function. llvm-svn: 252832
* [Basic] Fix DRY violation, just call getLineTable() (NFC)Vedant Kumar2015-11-121-8/+3
| | | | llvm-svn: 252828
* Add diagnostics which fall under [dcl.spec.concept]p5Nathan Wilson2015-11-113-0/+22
| | | | | | | | | | | | Summary: Diagnose when a function concept declaration has parameter(s) Reviewers: rsmith, faisalv, aaron.ballman, hubert.reinterpretcast Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D14352 llvm-svn: 252827
* [TLS on Darwin] treat all Darwin platforms in the same way.Manman Ren2015-11-112-4/+4
| | | | | | rdar://problem/9001553 llvm-svn: 252820
* Extract out a function onto CodeGenModule for getting the map ofEric Christopher2015-11-115-44/+47
| | | | | | | features for a particular function, then use it to clean up some code. llvm-svn: 252819
* [TLS on Darwin] change how we handle globals with linkonce or weak linkage.Manman Ren2015-11-115-37/+60
| | | | | | | | | | | | This is about how we handle static member of a template. Before this commit, we use internal linkage for the IR thread-local variable, which is inefficient. With this commit, we will start to follow Itanium C++ ABI. rdar://problem/23415206 Reviewed by John McCall. llvm-svn: 252814
* [CMake] Fixing passthrough for variables starting with COMPILER_RTChris Bieneman2015-11-111-1/+1
| | | | | | This allows COMPILER_RT_* variables to be passed from the top-level CMake into the external project when LLVM_BUILD_EXTERNAL_COMPILER_RT=On. llvm-svn: 252809
* [analyzer] Fix scan-build to handle missing output directories.Devin Coughlin2015-11-111-1/+3
| | | | | | | | | | | | | Cwd::abs_path has a somewhat tricky semantics: if it's operand directory does not exist, it'll return undefined (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=257568). This may cause scan-build to silently ignore output directory (specified with -o) and use /tmp instead of trying to create directory. This tiny patch fixes the problem. A patch by Yury Gribov! Differential Revision: http://reviews.llvm.org/D14535 llvm-svn: 252797
* [SemaDeclCXX] Use isTemplateParamScope() rather than accessing raw bits.Davide Italiano2015-11-111-2/+2
| | | | llvm-svn: 252793
* [Lit Test] Updated 26 Lit tests to be C++11 compatible.Charles Li2015-11-1126-51/+234
| | | | | | | Expected diagnostics have been expanded to vary by C++ dialect. RUN line has also been expanded to: default, C++98/03 and C++11. llvm-svn: 252785
* [TLS] move setting tls_guard in tls_init.Manman Ren2015-11-113-6/+6
| | | | | | | | We used to emit the store prior to branch in the entry block. To make it more efficient, this commit moves it to the init block. We still mark as initialized before initializing anything else. llvm-svn: 252777
* Hiding the scan-build and scan-view projects under the Misc folder in IDEs ↵Aaron Ballman2015-11-112-0/+2
| | | | | | instead of having them at the root view. llvm-svn: 252771
* Silencing a -Wreturn-type warning for control reaching the end of a non-void ↵Aaron Ballman2015-11-111-0/+1
| | | | | | function. llvm-svn: 252727
* [ASan] Allow -fsanitize-recover=address.Yury Gribov2015-11-114-19/+29
| | | | | | Differential Revision: http://reviews.llvm.org/D14243 llvm-svn: 252721
* Make test/Driver/biarch.c use FileCheck instead of grepArtyom Skrobov2015-11-111-36/+24
| | | | | | | | | | | | | | Summary: For clarity and ease of maintenance, I suggest porting this test to use the same tooling as the rest of the tests. Reviewers: joerg, rengolin, dougk, yaron.keren Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D14548 llvm-svn: 252720
* [X86] Add 'pause' builtin that's already in llvm and use it instead of ↵Craig Topper2015-11-113-1/+8
| | | | | | inline assembly to implement _mm_pause. llvm-svn: 252712
* [X86] Use __builtin_ia32_paddq and __builtin_ia32_psubq to implement a ↵Craig Topper2015-11-112-2/+20
| | | | | | couple intrinsics that were supposed to operate on MMX registers. Otherwise we end up operating on GPRs. Throw in a test for _mm_mul_su32 while I was there. llvm-svn: 252711
* [X86] Header formatting fixes. NFCCraig Topper2015-11-112-2/+2
| | | | llvm-svn: 252710
* [X86] Add missing typecasts in intrinsic macros. This should make them more ↵Craig Topper2015-11-117-55/+85
| | | | | | robust against inputs that aren't already the right type. llvm-svn: 252700
* [X86] Change pointer type in AVX2 gather builtins to be the scalar type ↵Craig Topper2015-11-112-177/+135
| | | | | | instead of the vector type. This matches gcc and removes extras casts. llvm-svn: 252697
* Reorder the check strings in test case following r252692.Akira Hatanaka2015-11-111-1/+1
| | | | | | rdar://problem/19836465 llvm-svn: 252693
* Fix a FIXME about using std::is_sorted.Eric Christopher2015-11-111-3/+4
| | | | llvm-svn: 252691
* Add support for GCC's '__auto_type' extension, per the GCC manual:Richard Smith2015-11-1133-93/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | https://gcc.gnu.org/onlinedocs/gcc/Typeof.html Differences from the GCC extension: * __auto_type is also permitted in C++ (but only in places where it could appear in C), allowing its use in headers that might be shared across C and C++, or used from C++98 * __auto_type can be combined with a declarator, as with C++ auto (for instance, "__auto_type *p") * multiple variables can be declared in a single __auto_type declaration, with the C++ semantics (the deduced type must be the same in each case) This patch also adds a missing restriction on applying typeof to a bit-field, which GCC has historically rejected in C (due to lack of clarity as to whether the operand should be promoted). The same restriction also applies to __auto_type in C (in both GCC and Clang). This also fixes PR25449. Patch by Nicholas Allegra! llvm-svn: 252690
* N3922: direct-list-initialization of an auto-typed variable no longer deduces aRichard Smith2015-11-1116-203/+247
| | | | | | | | | | | | | | | | | | | std::initializer_list<T> type. Instead, the list must contain a single element and the type is deduced from that. In Clang 3.7, we warned by default on all the cases that would change meaning due to this change. In Clang 3.8, we will support only the new rules -- per the request in N3922, this change is applied as a Defect Report against earlier versions of the C++ standard. This change is not entirely trivial, because for lambda init-captures we previously did not track the difference between direct-list-initialization and copy-list-initialization. The difference was not previously observable, because the two forms of initialization always did the same thing (the elements of the initializer list were always copy-initialized regardless of the initialization style used for the init-capture). llvm-svn: 252688
* [static analyzer] Don't flag nil storage into NSMutableDictionary.Anna Zaks2015-11-112-4/+2
| | | | | | This is now allowed and has the behavior of removing the mapping. llvm-svn: 252679
* Define __unsafe_unretained and __autoreleasing in ObjC GC mode.John McCall2015-11-102-0/+6
| | | | | | This was an accidental regression from the MRC __weak patch. llvm-svn: 252668
* Fix buildJonathan Roelofs2015-11-101-1/+1
| | | | llvm-svn: 252667
* Implement post-commit review feedback on r252662Jonathan Roelofs2015-11-102-10/+8
| | | | llvm-svn: 252664
* Implement the fix that r252641 should have beenJonathan Roelofs2015-11-102-15/+24
| | | | llvm-svn: 252662
* [COFF] Don't try to emit weak aliases on COFFReid Kleckner2015-11-102-5/+26
| | | | | | | | | | | | | | | | | This comes up when a derived class destructor is equivalent to a base class destructor defined in the same TU, and we try to alias them. A COFF weak alias cannot satisfy a normal undefined symbol reference from another TU. The other TU must also mark the referenced symbol as weak, and we can't rely on that. Clang already has a special case here for dllexport, but we failed to realize that the problem also applies to other non-discardable symbols such as those from explicit template instantiations. Fixes PR25477. llvm-svn: 252659
* Implement __attribute__((internal_linkage)).Evgeniy Stepanov2015-11-1012-17/+279
| | | | | | | | | | | | | | The attrubite is applicable to functions and variables and changes the linkage of the subject to internal. This is the same functionality as C-style "static", but applicable to class methods; and the same as anonymouns namespaces, but can apply to individual methods of a class. Following the proposal in http://lists.llvm.org/pipermail/cfe-dev/2015-October/045580.html llvm-svn: 252648
* [WebAssembly] Change long double to be quadruple-precision floating point.Dan Gohman2015-11-105-30/+32
| | | | llvm-svn: 252646
* Fix missing CMake dependency introduced in r252474Jonathan Roelofs2015-11-102-6/+12
| | | | llvm-svn: 252641
* Add the variant of __sparc_v9__ with five underscores, not just four.Joerg Sonnenberger2015-11-102-1/+6
| | | | llvm-svn: 252640
* No longer creating the install-clang target for IDEs, as it was never meant ↵Aaron Ballman2015-11-101-5/+8
| | | | | | for those. llvm-svn: 252601
* [Analyzer] Fix comments and formatting. NFC.Sean Eveson2015-11-103-7/+6
| | | | llvm-svn: 252599
* [X86] Use setzero instead of set1(0) in a few places in intrinsic headers.Craig Topper2015-11-102-6/+6
| | | | llvm-svn: 252587
* [X86] Remove temporary variables from macros in x86 intrinsic headers. ↵Craig Topper2015-11-107-198/+138
| | | | | | Prevents duplicate names appearing from multiple macro expansions. NFC llvm-svn: 252586
* [X86] Fix bad intrinsic header comment. NFC.Craig Topper2015-11-101-1/+1
| | | | llvm-svn: 252585
* Use the generic Sparc CPU handling for Linux, FreeBSD and OpenBSD, too.Joerg Sonnenberger2015-11-104-36/+33
| | | | | | | | This currently changes the default toward the more historic -Av8/-Av9, but as discussed with James Y Knight, consistency is for now more important than figuring out which default CPU each OS should be using. llvm-svn: 252571
* Use the normal switch over getArch() approach and not a long if chain.Joerg Sonnenberger2015-11-101-13/+23
| | | | llvm-svn: 252562
* [Driver] Use platform-appropriate profiling libraries for WatchOS, TVOSVedant Kumar2015-11-103-4/+28
| | | | | | | | | | | | | When adding profiling instrumentation, use libclang_rt.profile_tvos.a for TVOS targets and libclang_rt.profile_watchos.a for WatchOS targets. I've also fixed up a comment and added an assert() that prevents us from defaulting to an incorrect platform. Differential Revision: http://reviews.llvm.org/D14521 Reviewed-by: t.p.northover llvm-svn: 252558
* Reorganise CPU handling for Sparc. When using -mcpu=v9 and co, __sparcv8Joerg Sonnenberger2015-11-096-18/+279
| | | | | | | | | is not defined for 32bit mode, but __sparcv9 is. Pass down the correct -target-cpu flags to the backend, so that instruction restrictions are applied correctly. Pass down the correct -A flag when not using IAS. The latter is limited to NetBSD targets in this commit. llvm-svn: 252545
* [CMake] Support passing CMAKE_VERBOSE_MAKEFILE through to bootstrap builds.Chris Bieneman2015-11-091-1/+5
| | | | | | This option enables full verbosity in recursive CMake builds. llvm-svn: 252523
* Extend linux header search to find libc++ headers in c++/vN for any N.Evgeniy Stepanov2015-11-0911-6/+58
| | | | llvm-svn: 252514
OpenPOWER on IntegriCloud