summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Rename class __lambda_node to ___lambda_node to fix compile failure with gcc ↵Daniel Malea2012-12-051-3/+3
| | | | | | | | 4.6 and 4.7 - using "__lambda_node" causes internal compiler error in newer GCC versions llvm-svn: 169402
* Remove two dead functions resulting from a bad rebase.Andrew Trick2012-12-051-22/+0
| | | | llvm-svn: 169401
* Format strings: offer a cast to 'unichar' for %C in Objective-C contexts.Jordan Rose2012-12-055-30/+138
| | | | | | | | | | | | | | | | | | | For most cases where a conversion specifier doesn't match an argument, we usually guess that the conversion specifier is wrong. However, if the argument is an integer type and the specifier is %C, it's likely the user really did mean to print the integer as a character. (This is more common than %c because there is no way to specify a unichar literal -- you have to write an integer literal, such as '0x2603', and then cast it to unichar.) This does not change the behavior of %S, since there are fewer cases where printing a literal Unicode *string* is necessary, but this could easily be changed in the future. <rdar://problem/11982013> llvm-svn: 169400
* Format strings: add more expression types that don't need parens to cast.Jordan Rose2012-12-052-1/+13
| | | | | | | No functionality change (the test change is a comment only, and the new functionality can't be tested using the current test). llvm-svn: 169399
* Format strings: a character literal should be printed with %c, not %d.Jordan Rose2012-12-052-10/+51
| | | | | | | | | | | | | | | | | | The type of a character literal is 'int' in C, but if the user writes a character /as/ a literal, we should assume they meant it to be a character and not a numeric value, and thus offer %c as a correction rather than %d. There's a special case for multi-character literals (like 'MooV'), which have implementation-defined value and usually cannot be printed with %c. These still use %d as the suggestion. In C++, the type of a character literal is 'char', and so this problem doesn't exist. <rdar://problem/12282316> llvm-svn: 169398
* Format strings: the correct conversion for 'char' is %c, not %d or %hhd.Jordan Rose2012-12-052-1/+55
| | | | | | | We tried to account for 'uint8_t' by saying that /typedefs/ of 'char' should be corrected as %hhd rather than %c, but the condition was wrong. llvm-svn: 169397
* Try to unbreak the build on hosts that don't transitively pull in a ↵Benjamin Kramer2012-12-052-2/+3
| | | | | | | | definition for int64_t. Also use the portable (ugly) format string macros, for MSVC compatibility. llvm-svn: 169396
* Remove unused MachineInstr constructors.Jakob Stoklund Olesen2012-12-052-37/+0
| | | | | | | | A MachineInstr can only ever be constructed by CreateMachineInstr() and CloneMachineInstr(), and those factories don't use the removed constructors. llvm-svn: 169395
* Crash every time with new target logging is now fixed.Greg Clayton2012-12-051-1/+2
| | | | llvm-svn: 169394
* Added a option to the disassembler to print immediates as hex.Kevin Enderby2012-12-059-16/+71
| | | | | | | | | | | | | | | | | | | | This is for the lldb team so most of but not all of the values are to be printed as hex with this option. Some small values like the scale in an X86 address were requested to printed in decimal without the leading 0x. There may be some tweaks need to places that may still be in decimal that they want in hex. Specially for arm. I made my best guess. Any tweaks from here should be simple. I also did the best I know now with help from the C++ gurus creating the cleanest formatImm() utility function and containing the changes. But if someone has a better idea to make something cleaner I'm all ears and game for changing the implementation. rdar://8109283 llvm-svn: 169393
* [asan] drop the extension from asan tests (as the extension may be different)Kostya Serebryany2012-12-051-2/+2
| | | | llvm-svn: 169392
* - Added calls to doInitialization/doFinalization to immutable passesPedro Artigas2012-12-053-15/+56
| | | | | | | | | - fixed ordering of calls to doFinalization to be the reverse of the pass run order due to potential dependencies - fixed machine module info to operate in the doInitialization/doFinalization model, also fixes some FIXMEs reviewed by Evan Cheng <evan.cheng@apple.com> llvm-svn: 169391
* Remove bad and useless enum to bool conversion.Daniel Jasper2012-12-051-5/+2
| | | | llvm-svn: 169390
* Clang-format: parse for and while loopsAlexander Kornienko2012-12-053-1/+37
| | | | | | | | | | | | | | Summary: Adds support for formatting for and while loops. Reviewers: djasper, klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D174 llvm-svn: 169387
* Indentation fixes for clang-format.Daniel Jasper2012-12-053-30/+67
| | | | | | | | | | - Fix behavior of memoization together with optimization - Correctly attribute the PenaltyIndentLevel (breaking directly after "(" did not count towards the inner level) - Recognize more tokens as assignments Review: http://llvm-reviews.chandlerc.com/D172 llvm-svn: 169384
* [msan] Instrument bswap intrinsic.Evgeniy Stepanov2012-12-052-6/+37
| | | | llvm-svn: 169383
* Follow-up to r169286, addresses comments in ↵Alexander Kornienko2012-12-053-6/+8
| | | | | | http://llvm-reviews.chandlerc.com/D164#comment-4 : comments and a method rename llvm-svn: 169382
* [asan] undo the debug printfKostya Serebryany2012-12-051-2/+0
| | | | llvm-svn: 169381
* Reuse an existing diagnostic for tsan/msan needing -pie error.Evgeniy Stepanov2012-12-053-6/+31
| | | | | | | Add a diagnosting for -fsanitize=memory conflicting with other sanitizers. Extend tests. llvm-svn: 169380
* tsan: fix memory barriers in atomicsDmitry Vyukov2012-12-051-1/+7
| | | | llvm-svn: 169379
* [msan] Initialize callbacks in runOnFunction as opposed to doInitialization.Evgeniy Stepanov2012-12-051-37/+49
| | | | | | This mirrors the change in ASan & TSan done in r168864. llvm-svn: 169378
* [msan] Change linkage type of __msan_track_origins.Evgeniy Stepanov2012-12-052-1/+4
| | | | | | | LinkOnceODRLinkage globals may be removed in GlobalOpt if not used in the current module. llvm-svn: 169377
* tsan: provide own implementation of __cxa_guard_xxx functionsDmitry Vyukov2012-12-053-15/+24
| | | | | | that way we allow static linking of libstdc++ llvm-svn: 169376
* test/Modules/build-fail-notes.m: Tweak to unbreak Win32 hosts to relax ↵NAKAMURA Takumi2012-12-051-2/+2
| | | | | | expressions, for now. llvm-svn: 169375
* In C++, if we hit an error in the class-head, don't try to parse the class body.Richard Smith2012-12-053-3/+10
| | | | | | | Our error recovery path may have made the class anonymous, and that has a pretty disastrous impact on any attempt to parse a class body containing constructors. llvm-svn: 169374
* PR14049: Don't say "expanded from macro 'foo'" when 'foo' just happens to beRichard Smith2012-12-053-5/+26
| | | | | | | the LHS of a token paste. Use "expanded from here" instead when we're not sure it's actually a macro. llvm-svn: 169373
* Fix make build (hopefully).Daniel Jasper2012-12-051-3/+3
| | | | llvm-svn: 169371
* tsan: remove unnecesary include fileDmitry Vyukov2012-12-052-59/+34
| | | | llvm-svn: 169370
* tsan: fix lint warningsDmitry Vyukov2012-12-051-2/+3
| | | | llvm-svn: 169369
* [tsan] get rid of *allocator64* files, moving everything to *allocator* ↵Kostya Serebryany2012-12-058-547/+522
| | | | | | files. This will help with the 32-bit allocator implementation and testing llvm-svn: 169368
* Minor reorganization. No functionality change.Richard Smith2012-12-051-30/+30
| | | | llvm-svn: 169367
* Simplified BLEND pattern matching for shuffles.Elena Demikhovsky2012-12-056-84/+121
| | | | | | Generate VPBLENDD for AVX2 and VPBLENDW for v16i16 type on AVX2. llvm-svn: 169366
* Add missing virtual destructors reported by -Wnon-virtual-dtor.Daniel Jasper2012-12-051-0/+2
| | | | llvm-svn: 169365
* First version of a command line clang-format tool.Daniel Jasper2012-12-055-1/+123
| | | | | | | Reads a single source range (offset, length) as well as the style guide as parameters and then reformats everything it receives from stdin. llvm-svn: 169364
* Small tweaks to automatic formatting.Daniel Jasper2012-12-052-5/+20
| | | | | | | Recognize '!=' as a binary operator and assume that there are no type definitions on the RHS of an assignment. llvm-svn: 169363
* Fix build against recent versions of Clang. Based on patch by Alastair ↵Peter Collingbourne2012-12-052-3/+4
| | | | | | Donaldson! llvm-svn: 169362
* [tsan] make the 64-bit allocator build (but not work) in 32-bit mode to ↵Kostya Serebryany2012-12-051-6/+5
| | | | | | simplify the code and test structure and allow further refactoring llvm-svn: 169361
* RegisterPressure API. Add support for physical register units.Andrew Trick2012-12-054-11/+144
| | | | | | | | | | | | | At build-time register pressure was always computed in terms of register units. But the compile-time API was expressed in terms of register classes because it was intended for virtual registers (and physical register units weren't yet used anywhere in codegen). Now that the codegen uses physreg units consistently, prepare for tracking register pressure also in terms of live units, not live registers. llvm-svn: 169360
* Added RegisterPressureTracker::dump() for debugging.Andrew Trick2012-12-052-5/+18
| | | | llvm-svn: 169359
* Comment formatting.Andrew Trick2012-12-051-1/+1
| | | | llvm-svn: 169358
* Simplify slightly by seperating out the responsibility for emission of a caretRichard Smith2012-12-053-53/+52
| | | | | | | | diagnostic from the emission of macro backtraces. Incidentally, we now get the displayed source location for a diagnostic and the location for the caret from the same place, rather than computing them separately. No functionality change. llvm-svn: 169357
* This test used to fail forever if it failed once, because it does not clean ↵Richard Smith2012-12-051-1/+1
| | | | | | up after itself if it failed. llvm-svn: 169356
* Driver.cpp: Restore clang/Config/config.h to be included at last not to ↵NAKAMURA Takumi2012-12-051-1/+4
| | | | | | | | prevent llvm-config.h. Or "llvm/Support/system_error.h" could not be compiled on mingw. llvm-svn: 169354
* docs: Explain plain preformatted textSean Silva2012-12-051-0/+20
| | | | llvm-svn: 169352
* Simplify diagnostic emission. No functionality change intended.Richard Smith2012-12-052-54/+21
| | | | llvm-svn: 169351
* Thread-safety analysis: check locks on method calls, operator=, andDeLesley Hutchins2012-12-052-1/+154
| | | | | | copy constructors. llvm-svn: 169350
* [analyzer] Implement an opt-in variant of direct ivar assignment.Anna Zaks2012-12-053-9/+113
| | | | | | | This will only check the direct ivar assignments in the annotated methods. llvm-svn: 169349
* Thread Safety Analysis: refactor to make more methods accept const pointers,DeLesley Hutchins2012-12-051-86/+94
| | | | | | adjust checkAccess. No change in functionality. llvm-svn: 169348
* Testing C++ declarations embedded inFariborz Jahanian2012-12-052-0/+171
| | | | | | | | <declaration> tag of Comment XML and added support for friend declaration printing. This is wip. // rdar://12378714 llvm-svn: 169346
* fix a typoShuxin Yang2012-12-051-1/+1
| | | | llvm-svn: 169345
OpenPOWER on IntegriCloud