summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [libclang] Fixup the cursor spelling range for C++ destructors, operator ↵Argyrios Kyrtzidis2014-08-262-0/+127
| | | | | | | | overloads, and conversion functions. Patch by Craig Tenenbaum! llvm-svn: 216480
* Fix an incorrect assert condition added in r216410.Alexey Samsonov2014-08-261-1/+1
| | | | llvm-svn: 216479
* Return a std::unique_ptr from getBufferForFile. NFC.Rafael Espindola2014-08-262-7/+7
| | | | llvm-svn: 216478
* Ignore -fdevirtualize and -fdevirtualize-speculatively for gcc compatReid Kleckner2014-08-262-0/+7
| | | | llvm-svn: 216477
* Return a std::unique_ptr from getBufferForFile. NFC.Rafael Espindola2014-08-2611-39/+37
| | | | llvm-svn: 216476
* Revert r210342 and r210343, add test case for the crasher.Joerg Sonnenberger2014-08-263-132/+19
| | | | | | PR 20642. llvm-svn: 216475
* [test/CodeGen/ARM] Update arm_neon_intrinsics test case to actually test theQuentin Colombet2014-08-261-22/+82
| | | | | | | | | lowering of the intrinsics. Prior to this commit, most of the copy-related intrinsics could be optimized away. The situation is still not ideal as there are several possibilities to lower a given intrinsic. Currently, we match LLVM behavior. llvm-svn: 216474
* Added a couple more gdb-remote tests to ensure qProcessInfo on darwin is not ↵Todd Fiala2014-08-261-0/+39
| | | | | | | | | | | | defining triple. And likewise for qProcessInfo on Linux, but ensures cputype/cpusubtype is not defined. The Apple case is the more important one, since we take a slightly different path to initialize ProcessGDBRemote-related remote host/process info if triple is present. Related to http://llvm.org/bugs/show_bug.cgi?id=20755. llvm-svn: 216473
* Convert MC command line flag for fatal assembler warnings into a properJoerg Sonnenberger2014-08-267-3/+19
| | | | | | flag. llvm-svn: 216472
* Convert MC command line option for fatal assembler warnings into aJoerg Sonnenberger2014-08-264-9/+9
| | | | | | proper flag. llvm-svn: 216471
* Fix llgs to send triple for non-Apple platforms and lldb to interpret correctly.Todd Fiala2014-08-264-5/+63
| | | | | | | | | | | | | This change addresses this bug: http://llvm.org/bugs/show_bug.cgi?id=20755 This change: * Modifies llgs to send triple instead of cputype and cpusubtype when not on Apple platforms in qProcessInfo. * Modifies lldb's GDBRemoteCommunicationClient to handle the triple returned from qProcessInfo if given. When given, it will prefer to use triple over cputype and cpusubtype. * Adds gdb-remote protocol tests to verify that cputype and cpusubtype are specified on darwin, and that triple is specified on Linux. llvm-svn: 216470
* c11- Check for c11 language option as documentation saysFariborz Jahanian2014-08-266-6/+5
| | | | | | | | feature is c11 about nested struct declarations must have struct-declarator-list. Without this change, code which was meant for c99 breaks. rdar://18125536 llvm-svn: 216469
* Invert the condition to have a single return.Rafael Espindola2014-08-261-4/+3
| | | | | | Thanks to David Blaikie for the suggestion. llvm-svn: 216468
* Update for llvm api change.Rafael Espindola2014-08-261-1/+1
| | | | llvm-svn: 216467
* Return a std::unique_ptr from the IRReader.h functions. NFC.Rafael Espindola2014-08-2610-55/+51
| | | | llvm-svn: 216466
* Refactored existing gdb-remote qProcessInfo tests into separate python file.Todd Fiala2014-08-262-101/+113
| | | | | | | | | I'm about to add some more qProcessInfo tests so I wanted to first pull them out of the monolithic TestLldbGdbServer test case class. Related to http://llvm.org/bugs/show_bug.cgi?id=20755 llvm-svn: 216465
* Return a std::unique_ptr from parseInputFile and propagate. NFC.Rafael Espindola2014-08-266-110/+89
| | | | | | | | The memory management in BugPoint is fairly convoluted, so this just unwraps one layer by changing the return type of functions that always return owned Modules. llvm-svn: 216464
* Switching from std::vector to llvm::ArrayRef per post-commit review suggestion.Aaron Ballman2014-08-261-3/+1
| | | | llvm-svn: 216463
* [clang-tidy] If we're going to change the header guard in the #endif commentBenjamin Kramer2014-08-262-13/+44
| | | | | | | | | we can also fix the original header guard. We still allow an _ at the end of a header guard since it's so common, but remove it now when the #endif comment is changed. llvm-svn: 216462
* Simplify LTOModule::makeLTOModule a bit. NFC.Rafael Espindola2014-08-261-3/+1
| | | | | | | Just call parseBitcodeFile instead of getLazyBitcodeModule followed by materializeAllPermanently. llvm-svn: 216461
* Merge TempDir and system_temp_directory.Rafael Espindola2014-08-263-90/+106
| | | | | | | | | We had two functions for finding the temp or cache directory. Each had a different set of smarts about OS specific APIs. With this patch system_temp_directory becomes the only way to do it. llvm-svn: 216460
* [lsan] Implement the public allocator interface in standalone LSan.Sergey Matveev2014-08-263-5/+43
| | | | llvm-svn: 216459
* Silence unused function warning in Release builds.Benjamin Kramer2014-08-261-0/+2
| | | | llvm-svn: 216458
* Some versions of MSVC do not support initializer list construction of ↵Aaron Ballman2014-08-261-1/+2
| | | | | | vectors, so this fixes a broken build from r216385. llvm-svn: 216457
* This test was updated in r216397, but was failing on Windows due to mixed ↵Aaron Ballman2014-08-261-1/+1
| | | | | | | | path separators as well as case sensitivity of the "no" in "no such file or directory." Rather than revert this file back to its original form, I've made some incredibly ugly regexes so that it will pass everywhere. Note, the path this test reports a failure on (for my Windows setup) is: E:\llvm\llvm\tools\clang\test\Frontend/doesnotexist/somename llvm-svn: 216456
* Change the return value of "getEnd()" from a MachineInstr* to a ↵James Molloy2014-08-261-1/+1
| | | | | | | | MachineBasicBlock::iterator. It seems on Darwin the illegal round-trip ::iterator -> MachineInstr* -> ::iterator breaks execution horribly when the iterator is not a real MachineInstr, like ::end(). llvm-svn: 216455
* [lsan] Implement __sanitizer_print_stack_trace() in standalone LSan.Sergey Matveev2014-08-264-25/+35
| | | | llvm-svn: 216454
* arm_acle: Add mappings for dbg intrinsicYi Kong2014-08-263-0/+21
| | | | | | This completes all ACLE hint intrinsics. llvm-svn: 216453
* ARM: Add dbg builtin intrinsicYi Kong2014-08-265-3/+18
| | | | llvm-svn: 216452
* ARM: Add patterns for dbgYi Kong2014-08-264-2/+17
| | | | llvm-svn: 216451
* [ASan/Win] Disable warning C4391: incorrect return type for intrinsic functionTimur Iskhodzhanov2014-08-262-0/+2
| | | | | | This warning makes it a bit hard to define strlen and wcslen interceptors in an elegant yet portable way llvm-svn: 216450
* clang-format: New option SpacesInSquareBrackets.Daniel Jasper2014-08-265-4/+42
| | | | | | | | | | | | | | | | Before: int a[5]; a[3] += 42; After: int a[ 5 ]; a[ 3 ] += 42; Fixes LLVM bug #17887 (http://llvm.org/bugs/show_bug.cgi?id=17887). Patch by Marek Kurdej, thank you! llvm-svn: 216449
* [ASan/Win] Rename asan_dll_thunk.cc to asan_win_dll_thunk.ccTimur Iskhodzhanov2014-08-263-4/+4
| | | | llvm-svn: 216448
* [ASan/Win] Add an extra thunk.lib to handle stack-use-after-return optionTimur Iskhodzhanov2014-08-264-1/+48
| | | | | | | With this patch, "check-asan" passes all the tests with both MT and MD ASan RTL if you set COMPILER_RT_BUILD_SHARED_ASAN to ON (PR20214) llvm-svn: 216447
* arm_acle: Implement swap intrinsicYi Kong2014-08-262-0/+18
| | | | | | | Insert the LDREX/STREX instruction sequence specified in ARM ACLE 2.0, as SWP instruction is deprecated since ARMv6. llvm-svn: 216446
* clang-format: Improve handling of block comments in braced lists.Daniel Jasper2014-08-263-20/+18
| | | | | | | | | | | | Before: std::vector<int> v = { 1, 0 /* comment */ }; After: std::vector<int> v = {1, 0 /* comment */}; llvm-svn: 216445
* This patch enables SimplifyUsingDistributiveLaws() to handle following pattens.Dinesh Dwivedi2014-08-262-54/+45
| | | | | | | | | | | | (X >> Z) & (Y >> Z) -> (X&Y) >> Z for all shifts. (X >> Z) | (Y >> Z) -> (X|Y) >> Z for all shifts. (X >> Z) ^ (Y >> Z) -> (X^Y) >> Z for all shifts. These patterns were previously handled separately in visitAnd()/visitOr()/visitXor(). Differential Revision: http://reviews.llvm.org/D4951 llvm-svn: 216443
* Use 'xz' compression instead of 'gz'.Bill Wendling2014-08-261-1/+1
| | | | llvm-svn: 216442
* InstSimplify: Fold gep X, (sub 0, ptrtoint(X)) to nullDavid Majnemer2014-08-262-21/+61
| | | | | | | Save InstCombine some work if we can perform this fold during InstSimplify. llvm-svn: 216441
* Remove the hostname part from compilation directories, if supplied by Matthew Gardiner2014-08-261-0/+40
| | | | | | DWARF2/3 compliant producers. llvm-svn: 216440
* InstSimplify: Simplify trivial pointer expressions like b + (e - b)David Majnemer2014-08-263-5/+96
| | | | | | | | | | | | | | | | | | | | | | | | consider: long long *f(long long *b, long long *e) { return b + (e - b); } we would lower this to something like: define i64* @f(i64* %b, i64* %e) { %1 = ptrtoint i64* %e to i64 %2 = ptrtoint i64* %b to i64 %3 = sub i64 %1, %2 %4 = ashr exact i64 %3, 3 %5 = getelementptr inbounds i64* %b, i64 %4 ret i64* %5 } This should fold away to just 'e'. N.B. This adds m_SpecificInt as a convenient way to match against a particular 64-bit integer when using LLVM's match interface. llvm-svn: 216439
* Passing a variable to std::move now counts as a use for -WuninitializedRichard Trieu2014-08-264-2/+95
| | | | llvm-svn: 216438
* [modules] Track the described template in an alias declaration that is theRichard Smith2014-08-269-6/+34
| | | | | | | pattern of an alias template declaration. Use this to merge alias templates properly when they're members of class template specializations. llvm-svn: 216437
* AArch64: use std::fill instead of memsetDylan Noblesmith2014-08-261-1/+1
| | | | | | Followup based on review. llvm-svn: 216436
* [clang/asan] call __asan_poison_cxx_array_cookie after operator new[]Kostya Serebryany2014-08-265-10/+81
| | | | | | | | | | | | | | | | | | | | Summary: PR19838 When operator new[] is called and an array cookie is created we want asan to detect buffer overflow bugs that touch the cookie. For that we need to a) poison the shadow for the array cookie (call __asan_poison_cxx_array_cookie). b) ignore the legal accesses to the cookie generated by clang (add 'nosanitize' metadata) Reviewers: timurrrr, samsonov, rsmith Reviewed By: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4774 llvm-svn: 216434
* Revert "AArch64: use std::vector for temp array"Dylan Noblesmith2014-08-261-4/+5
| | | | | | This reverts commit r216365. llvm-svn: 216433
* Analysis: cleanupDylan Noblesmith2014-08-261-3/+2
| | | | | | Address review comments. llvm-svn: 216432
* Revert "Analysis: unique_ptr-ify DependenceAnalysis::collectCoeffInfo"Dylan Noblesmith2014-08-262-12/+11
| | | | | | This reverts commit r216358. llvm-svn: 216431
* Revert "NVPTX: remove another raw delete call"Dylan Noblesmith2014-08-261-1/+3
| | | | | | This reverts commit r216364. llvm-svn: 216430
* Revert "Support/APFloat: unique_ptr-ify temp arrays"Dylan Noblesmith2014-08-261-8/+11
| | | | | | This reverts commit rr216359. llvm-svn: 216429
OpenPOWER on IntegriCloud