summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* clang-format: Remove empty lines after visibility modifiers.Daniel Jasper2013-10-061-6/+10
| | | | | | | | | | | | | | | | | Formatting: class C { public: f(); }; Now leads to: class C { public: f(); }; llvm-svn: 192062
* remove a dead assignment. The variables are set just right after. Found by ↵Sylvestre Ledru2013-10-061-1/+1
| | | | | | scan-build http://buildd-clang.debian.net/scan-build/ llvm-svn: 192061
* Pass CGCXXABIs around directly.Mark Lacey2013-10-062-26/+33
| | | | | | | | | | In functions that only need to use the CGCXXABI member of a CodeGenTypes class, pass that reference around directly rather than a reference to a CodeGenTypes class. This makes the actual dependence on CGCXXABI clear at the call sites. llvm-svn: 192052
* Switching the CallableWhen attribute over to using the string literal helper ↵Aaron Ballman2013-10-051-17/+11
| | | | | | function instead of custom logic. llvm-svn: 192050
* Add support for -mcx16, and predefine __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 whenNick Lewycky2013-10-051-2/+25
| | | | | | it is enabled. Also enable it on the same architectures that GCC does. llvm-svn: 192045
* Silencing an MSVC warning; SmallSet::count returns a bool instead of a size_t.Aaron Ballman2013-10-051-1/+1
| | | | llvm-svn: 192043
* Use logical/arithmetic operations instead of builtins in tbmintrin.h. This ↵Craig Topper2013-10-051-66/+48
| | | | | | way we can remove the intrinsic support from the backend. llvm-svn: 192036
* Remove unused param from Linux::computeSysRoot().Simon Atanasyan2013-10-052-4/+4
| | | | llvm-svn: 192034
* Sema: Cleanup redundant variable NumArgsToCheckBenjamin Kramer2013-10-051-4/+1
| | | | | | Patch by Daniel Marjamäki! llvm-svn: 192030
* Implement aarch64 neon instruction set AdvSIMD (Across).Jiangning Liu2013-10-051-111/+147
| | | | llvm-svn: 192029
* Consumed Analysis: Change callable_when so that it can take a list of statesDeLesley Hutchins2013-10-043-107/+134
| | | | | | | | that a function can be called in. This reduced the total number of annotations needed and makes writing more complicated behaviour less burdensome. Patch by chriswails@gmail.com. llvm-svn: 191983
* ObjectiveC. Allow readonly properties without an explicit ownershipFariborz Jahanian2013-10-041-24/+34
| | | | | | | | (assign/unsafe_unretained/weak/retain/strong/copy) in super class to be overridden by a property with any explicit ownership in the subclass. // rdar://15014468 llvm-svn: 191971
* Revert "Teach TreeTransform and family how to transform generic lambdas ↵Rafael Espindola2013-10-043-153/+28
| | | | | | | | within templates and nested within themselves." This reverts commit r191879. It caused llvm.org/pr17476. llvm-svn: 191955
* Do not emit undefined lsrh/ashr for NEON shiftsAmaury de la Vieuville2013-10-042-12/+37
| | | | | | | | These IR instructions are undefined when the amount is equal to operand size, but NEON right shifts support such shifts. Work around that by emitting a different IR in these cases. llvm-svn: 191953
* Revert r191947. The problem is not MIPS-specific and requires moreSimon Atanasyan2013-10-041-7/+1
| | | | | | general solution. llvm-svn: 191951
* Simplify MicrosoftCXXNameMangler::mangleFunctionTypeTimur Iskhodzhanov2013-10-041-19/+17
| | | | llvm-svn: 191950
* [Mips] For MIPS '-fPIC -static' means to compile as -fPIC but link withSimon Atanasyan2013-10-041-1/+7
| | | | | | | | | -static. So do not turn off the PIC flag if -static passed to the driver in case of MIPS target. http://llvm.org/bugs/show_bug.cgi?id=14693 llvm-svn: 191947
* Implement aarch64 neon instruction set AdvSIMD (3V elem).Jiangning Liu2013-10-041-0/+40
| | | | llvm-svn: 191945
* [analyzer] Replace bug category magic strings with shared constants, take 2.Jordan Rose2013-10-047-12/+14
| | | | | | | Re-commit r191910 (reverted in r191936) with layering violation fixed, by moving the bug categories to StaticAnalyzerCore instead of ...Checkers. llvm-svn: 191937
* Temporarily revert r191910 until the layering violation can be fixed.Richard Smith2013-10-033-6/+5
| | | | llvm-svn: 191936
* [analyzer] Replace bug category magic strings with shared constants.Jordan Rose2013-10-033-5/+6
| | | | | | | | | | One small functionality change is to bring the sizeof-pointer checker in line with the other checkers by making its category be "Logic error" instead of just "Logic". There should be no other functionality changes. Patch by Daniel Marjamäki! llvm-svn: 191910
* [analyzer] Add new debug helper clang_analyzer_warnIfReached.Jordan Rose2013-10-031-0/+13
| | | | | | | | | | | | | This will emit a warning if a call to clang_analyzer_warnIfReached is executed, printing REACHABLE. This is a more explicit way to declare expected reachability than using clang_analyzer_eval or triggering a bug (divide-by-zero or null dereference), and unlike the former will work the same in inlined functions and top-level functions. Like the other debug helpers, it is part of the debug.ExprInspection checker. Patch by Jared Grubb! llvm-svn: 191909
* ARM: *-*-darwin-eabi triples should use AAPCS.Tim Northover2013-10-031-1/+2
| | | | llvm-svn: 191900
* Gracefully (and correctly) handle init of multiple union membersMatthew Curtis2013-10-031-1/+22
| | | | | | | | | | | | | | | We now emit warnings when doing so and code generation is consistent with GCC. Note that the C99 spec is unclear as to the precise behavior. See also ... Bug: http://llvm.org/bugs/show_bug.cgi?id=16644 and cfe-dev discussion: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2013-September/031918.html llvm-svn: 191890
* Teach TreeTransform and family how to transform generic lambdas within ↵Faisal Vali2013-10-033-28/+153
| | | | | | | | | | | | | | | | | templates and nested within themselves. This does not yet include capturing (that is next). Please see test file for examples. This patch was LGTM'd by Doug: http://llvm-reviews.chandlerc.com/D1784 http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20130930/090048.html When I first committed this patch - a bunch of buildbots were unable to compile the code that VS2010 seemed to compile. Seems like there was a dependency on Sema/Template.h which VS did not seem to need, but I have now added for the other compilers. It still compiles on Visual Studio 2010 - lets hope the buildbots remain quiet (please!) llvm-svn: 191879
* Extract ABI-specific parts of MangleContext into separate classesTimur Iskhodzhanov2013-10-038-150/+117
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D1807 llvm-svn: 191878
* Revert changes from the nested lambdas commit till i figure out Faisal Vali2013-10-033-152/+28
| | | | | | why the buildbots are failing. llvm-svn: 191876
* Teach TreeTransform and family how to transform generic lambdas within ↵Faisal Vali2013-10-033-28/+152
| | | | | | | | | | | | | | templates and nested within themselves. This does not yet include capturing (that is next). Please see test file for examples. This patch was LGTM'd by Doug: http://llvm-reviews.chandlerc.com/D1784 llvm-svn: 191875
* Change __builtin_ia32_bextri_u64 to take an i64imm to match up with LLVM ↵Craig Topper2013-10-031-1/+1
| | | | | | | | | | backend changes. An explicit cast is still needed in tbmintrin.h to convert any big integer down to i32imm. Patch from Yunzhong Gao. llvm-svn: 191872
* ObjectiveC migrator: Add individual options andFariborz Jahanian2013-10-021-16/+29
| | | | | | | enable them for distinct feature migration. // rdar://15003157 llvm-svn: 191863
* ObjectiveC migrator: Add more options one for eachFariborz Jahanian2013-10-021-0/+8
| | | | | | kind of migration. // rdar://15003157 llvm-svn: 191858
* ObjectiveC migrator. Starting distiguising differentFariborz Jahanian2013-10-022-2/+8
| | | | | | | migrations under their own option. wip and // rdar://15003157 llvm-svn: 191855
* Use the CGCXXABI member on CodeGenTypes.Mark Lacey2013-10-022-4/+3
| | | | | | | | | | CodeGenTypes already has a reference to a CGCXXABI. Use this directly rather than going through CodeGenModule to get to the same information. This is consistent with other references to CGCXXABI in CodeGenTypes functions defined in CGCall.cpp. llvm-svn: 191854
* Speed up CorrectTypo by avoiding lookups on unreasonable candidates.Kaelyn Uhrain2013-10-021-37/+47
| | | | llvm-svn: 191846
* Objective-C migrator. Simplify migrator option Fariborz Jahanian2013-10-022-36/+13
| | | | | | | processing in preparation for adding several more options. // rdar://15003157 llvm-svn: 191842
* Fix crashes when creating global instances of polymorphic classes without fieldsTimur Iskhodzhanov2013-10-021-1/+2
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D1795 llvm-svn: 191839
* Accept #pragma warning(push, 0) without warningReid Kleckner2013-10-022-12/+12
| | | | | | | | This partially addresses PR17435, but it doesn't actually implement the pragma. If we implement it, we should map levels 1-4 to something like -Wall and level 0 to something like -w. llvm-svn: 191833
* Fix gcc -Wunused-but-set-variable warning in r191634.Patrik Hagglund2013-10-021-5/+2
| | | | llvm-svn: 191817
* [ARM] Add a builtin to allow you to use the 'sevl' instruction.Joey Gouly2013-10-021-0/+5
| | | | llvm-svn: 191816
* Fix build breakage, missed committing a chunk of a patch.Nick Lewycky2013-10-021-1/+1
| | | | llvm-svn: 191809
* Thread a SourceLocation into the EmitCheck for "load_invalid_value". This occursNick Lewycky2013-10-0215-133/+182
| | | | | | when scalars are loaded / undergo lvalue-to-rvalue conversion. llvm-svn: 191808
* [analyzer] Add missing return after function pointer null check.Jordan Rose2013-10-021-0/+1
| | | | | | | | | | | | | | | | | Also add some tests that there is actually a message and that the bug is actually a hard error. This actually behaved correctly before, because: - addTransition() doesn't actually add a transition if the new state is null; it assumes you want to propagate the predecessor forward and does nothing. - generateSink() is called in order to emit a bug report. - If at least one new node has been generated, the predecessor node is /not/ propagated forward. But now it's spelled out explicitly. Found by Richard Mazorodze, who's working on a patch that may require this. llvm-svn: 191805
* Fix a typo suggestion regression introduced by r191544.Kaelyn Uhrain2013-10-011-1/+1
| | | | llvm-svn: 191798
* No functionality change. Reflow lines that could fit on one line. Break linesNick Lewycky2013-10-017-29/+20
| | | | | | that had 80-column violations. Remove spurious emacs mode markers on .cpp files. llvm-svn: 191797
* ObjectiveC migrator: When doing migration, migrator must suggestFariborz Jahanian2013-10-012-6/+38
| | | | | | | | migration of headers which have become system headers by user having put the .system_framework in the sdk directory. // rdar://15066802 llvm-svn: 191796
* Revert commits r190613, r190560 and r190557.Rafael Espindola2013-10-011-26/+30
| | | | | | The added a cmake invocation to null builds, making them a lot slower. llvm-svn: 191784
* Fixing implementation of bittestandset in Intrin.h.Warren Hunt2013-10-011-2/+2
| | | | llvm-svn: 191783
* Fixed replacements for files with relative paths are not applied.Ariel J. Bernal2013-10-011-1/+12
| | | | | | | | Replacements were no applied when using a compilation database with paths in the compilation command relative to the compile directory. This patch makes those paths abosulte. llvm-svn: 191776
* Refactoring: split addTokenToState into two methods.Alexander Kornienko2013-10-012-207/+237
| | | | | | | | | | | | | | Summary: Pure refactoring, should be no semantic changes. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D1796 llvm-svn: 191772
* Implement ARM GNU-style interrupt attributeTim Northover2013-10-013-2/+88
| | | | | | | | | | This attribute allows users to use a modified C or C++ function as an ARM exception-handling function and, with care, to successfully return control to user-space after the issue has been dealt with. rdar://problem/14207019 llvm-svn: 191769
OpenPOWER on IntegriCloud