summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Even more code conformance.Robert Wilhelm2013-07-171-1/+1
| | | | llvm-svn: 186537
* MS wide bitfield error check in SemaReid Kleckner2013-07-173-7/+18
| | | | | | | | | | | | | cl.exe treats wide bitfields as an error. This patch causes them to be an error if IsMsStruct is true, as it is in straight C. Patch by Warren Hunt! Reviewers: eli.friedman Differential Revision: http://llvm-reviews.chandlerc.com/D1125 llvm-svn: 186536
* clang-format: Add space in corner case.Daniel Jasper2013-07-172-0/+8
| | | | | | | | | Before: SomeType s __attribute__((unused))(InitValue); After: SomeType s __attribute__((unused)) (InitValue); llvm-svn: 186535
* elf-core: Support FreeBSD at compile-timeEd Maste2013-07-173-0/+31
| | | | | | | | Compile-time #ifdef-ery isn't right, but this makes core debugging work on FreeBSD and highlights the parts that will need to be changed for runtime arch support. llvm-svn: 186534
* Restore r181216, which was partially reverted in r182499.Stephen Lin2013-07-173-52/+73
| | | | llvm-svn: 186533
* Fix a funny typo. Thanks to Aaron Ballman for noticing.Rafael Espindola2013-07-171-1/+1
| | | | llvm-svn: 186532
* Add a micro optimization to catch cases where the PtrA equals PtrB.Nadav Rotem2013-07-171-1/+1
| | | | llvm-svn: 186531
* Add FILE_SHARE_WRITE to openFileForRead.Rafael Espindola2013-07-171-1/+1
| | | | | | | | | | | | | | This should fix the windows bots. It looks like the failing tests are of the form prog1 > file prog2 file and prog2 fails trying to read the file. The best fix would probably be to close stdout/stderr in prog1, but it was not the intention of 186511 to change this, so just restore the old behavior for now. llvm-svn: 186530
* Silencing an MSVC warning about signed vs unsigned comparison mismatches.Aaron Ballman2013-07-171-1/+1
| | | | llvm-svn: 186529
* [mips] Use "foreach" loop to make register definitions more concise.Akira Hatanaka2013-07-171-80/+9
| | | | llvm-svn: 186528
* Add -*- C++ -*- to InstrEmitter.h.Michael Gottesman2013-07-171-1/+1
| | | | llvm-svn: 186527
* Constify Replacements parameter to applyAllReplacements.David Blaikie2013-07-172-6/+6
| | | | | | | | http://llvm-reviews.chandlerc.com/D1169 Patch by Guillaume Papin. llvm-svn: 186526
* Make std::get constexprMarshall Clow2013-07-1712-51/+299
| | | | llvm-svn: 186525
* Improve idiomatic-parentheses by checking method family instead of relying ↵Jean-Daniel Dupas2013-07-172-1/+8
| | | | | | on the selector name. llvm-svn: 186524
* SemaDeclCXX.cpp: Dissolve a ligature "fi" in comment.NAKAMURA Takumi2013-07-171-1/+1
| | | | llvm-svn: 186523
* Fixed source range of C++03 access declarations.Enea Zaffanella2013-07-176-15/+63
| | | | llvm-svn: 186522
* [analyzer] Handle C++11 member initializer expressions.Jordan Rose2013-07-172-8/+48
| | | | | | | | | Previously, we would simply abort the path when we saw a default member initialization; now, we actually attempt to evaluate it. Like default arguments, the contents of these expressions are not actually part of the current function, so we fall back to constant evaluation. llvm-svn: 186521
* [analyzer] Handle C string default values for const char * arguments.Jordan Rose2013-07-173-1/+21
| | | | | | | | | | Previously, SValBuilder knew how to evaluate StringLiterals, but couldn't handle an array-to-pointer decay for constant values. Additionally, RegionStore was being too strict about loading from an array, refusing to return a 'char' value from a 'const char' array. Both of these have been fixed. llvm-svn: 186520
* [analyzer] Treat std::initializer_list as opaque rather than aborting.Jordan Rose2013-07-174-4/+56
| | | | | | | | | | | | | | Previously, the use of a std::initializer_list (actually, a CXXStdInitializerListExpr) would cause the analyzer to give up on the rest of the path. Now, it just uses an opaque symbolic value for the initializer_list and continues on. At some point in the future we can add proper support for initializer_list, with access to the elements in the InitListExpr. <rdar://problem/14340207> llvm-svn: 186519
* Option parsing tables: remove some unnecessary #definesHans Wennborg2013-07-174-14/+4
| | | | | | Also make some strings static and add missing #undef's llvm-svn: 186518
* OptParser.td: typoHans Wennborg2013-07-171-2/+2
| | | | llvm-svn: 186517
* Re-introduces ELF core file support for Linux x86-64Ashok Thirumurthi2013-07-1719-46/+1440
| | | | | | | | | | Usage: 'lldb a.out -c core'. TODO: FreeBSD support. TODO: Support for AVX registers. TODO: Refactor so that RegisterContextCore* don't inherit from classes that use ProcessMonitor to fix the build on OS/X. llvm-svn: 186516
* Improve line breaking before multi-line strings.Daniel Jasper2013-07-173-30/+39
| | | | | | | | | | | | | | | | The AlwaysBreakBeforeMultilineStrings rule does not really make sense if it does not a column gain. Before (in Google style): f( "aaaa" "bbbb"); After: f("aaaa" "bbbb"); llvm-svn: 186515
* Add TemplateArgument related matchers to the registry.Samuel Benzaquen2013-07-172-4/+16
| | | | | | | | | | | | | | Summary: Continue adding more matchers to the dynamic registry. This time, we add TemplateArgument matchers. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1166 llvm-svn: 186514
* [Sanitizer] Always provide --default-arch argument to llvm-symbolizerAlexey Samsonov2013-07-171-1/+3
| | | | llvm-svn: 186513
* This patch checks for valid mnemonics at the beginning of parseInstruction ↵Vladimir Medic2013-07-171-0/+5
| | | | | | method, thus giving the user the right error message for non-existing instructions. llvm-svn: 186512
* Split openFileForRead into Windows and Unix versions.Rafael Espindola2013-07-174-17/+41
| | | | | | | | | | | This has some advantages: * Lets us use native, utf16 windows functions. * Easy to produce good errors on windows about trying to use a directory when we want a file. * Simplifies the unix version a bit. llvm-svn: 186511
* Fix comparisons of alloca alignment in inliner mergingHal Finkel2013-07-172-3/+45
| | | | | | | | Duncan pointed out a mistake in my fix in r186425 when only one of the allocas being compared had the target-default alignment. This is essentially his suggested solution. Thanks! llvm-svn: 186510
* Correct comment to match class nameEd Maste2013-07-172-2/+2
| | | | llvm-svn: 186509
* Add CXXCtorInitializer related matchers to the dynamic matcher registry.Samuel Benzaquen2013-07-172-6/+15
| | | | | | | | | | | | Summary: Now that CXXCtorInitializer is already supported in ASTNodeKind, add CXXCtorInitializer matchers to the dynamic matcher registry. Reviewers: klimek CC: cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1158 llvm-svn: 186508
* Implement eret and deret(return from exception) instructions for Mips. Test ↵Vladimir Medic2013-07-174-10/+49
| | | | | | examples are given. llvm-svn: 186507
* Add the tests that I forgot to 'svn add' with my previous commit (r186504).Joey Gouly2013-07-175-0/+82
| | | | llvm-svn: 186506
* FreeBSD: Replace GetSignalInfo with GetLwpInfoEd Maste2013-07-172-16/+16
| | | | | | | For thread support we are going to need other members of struct ptrace_lwpinfo. llvm-svn: 186505
* [ARMv8] Add support for the NEON instructions vmaxnm/vminnm.Joey Gouly2013-07-176-0/+121
| | | | | | | This adds a new class for non-predicable NEON instructions and a new DecoderNamespace for v8 NEON instructions. llvm-svn: 186504
* llvm-ar: doExtract(): Write extracted files with F_Binary. It should fix ↵NAKAMURA Takumi2013-07-171-1/+1
| | | | | | llvm/test/Object/extract.ll llvm-svn: 186503
* Replace TEST* with CHECK-DAG in vbtable testsTimur Iskhodzhanov2013-07-171-185/+161
| | | | llvm-svn: 186502
* Ensure sys::getProcessTriple always uses a normalized triple. Patch byDuncan Sands2013-07-171-1/+1
| | | | | | Thomas B. Jablin, from PR16636. llvm-svn: 186501
* [XCore] Ensure implicit operands aren't lost on the return instruction.Richard Osborne2013-07-172-2/+19
| | | | | | Patch by Robert Lytton. llvm-svn: 186500
* Tweak the cmake interaction between CMAKE_BUILD_TYPE and LLVM_ENABLE_ASSERTIONS.Duncan Sands2013-07-172-3/+3
| | | | | | | | | | | | | | The issue is that CMAKE_BUILD_TYPE=RelWithDebInfo LLVM_ENABLE_ASSERTIONS=ON was not building with assertions enabled. (I was unable to find what in the LLVM source tree was adding -DNDEBUG to the build line in this case, so decided that it must be cmake itself that was adding it - this may depend on the cmake version). The fix treats any mode that is not Debug as being the same as Release for this purpose (previously it was being assumed that cmake would only add -DNDEBUG for Release and not for RelWithDebInfo or MinSizeRel). If other versions of cmake don't add -DNDEBUG for RelWithDebInfo then that's OK: with this change you just get a useless but harmless -UNDEBUG or -DNDEBUG. llvm-svn: 186499
* [analyzer] Add very limited support for temporary destructorsPavel Labath2013-07-177-4/+84
| | | | | | | | | | | | | | | | | Summary: This patch enables ExprEndgine to reason about temporary object destructors. However, these destructor calls are never inlined, since this feature is still broken. Still, this is sufficient to properly handle noreturn temporary destructors and close bug #15599. I have also enabled the cfg-temporary-dtors analyzer option by default. Reviewers: jordan_rose CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1131 llvm-svn: 186498
* tsan: disable one more interceptor that causes recursionDmitry Vyukov2013-07-171-0/+1
| | | | llvm-svn: 186497
* Teach x86 fast-isel to use AVX opcodes for vector stores when AVX is enabled.Craig Topper2013-07-171-6/+6
| | | | llvm-svn: 186496
* tsan: fix unitialized read warning under newer gcc (it does not have ↵Dmitry Vyukov2013-07-171-1/+1
| | | | | | visibility into asm) llvm-svn: 186495
* LLVMSymbolize.cpp: Fix build. Triple::ArchType is not a namespace.NAKAMURA Takumi2013-07-171-1/+1
| | | | llvm-svn: 186494
* llvm-symbolizer: be more careful with colons in file namesAlexey Samsonov2013-07-171-8/+7
| | | | llvm-svn: 186493
* clang/test/CodeGen/volatile-complex.c: Loosen CHECKs for -Asserts.NAKAMURA Takumi2013-07-171-8/+4
| | | | llvm-svn: 186492
* Make x86 fast-isel correctly choose between aligned and unaligned operations ↵Craig Topper2013-07-174-31/+77
| | | | | | for vector stores. Fixes PR16640. llvm-svn: 186491
* Propagate alignment for _ComplexJF Bastien2013-07-174-34/+111
| | | | | | | | _Complex load/store didn't have their alignment set properly, which was visible when GCC's torture tests use volatile _Complex. Update some existing tests to check for alignment, and add a new test which also has over-aligned volatile _Complex (since the imaginary part shouldn't be overaligned, only the real part). llvm-svn: 186490
* Fix ARMFastISel::ARMEmitIntExt shift emissionJF Bastien2013-07-171-30/+52
| | | | | | | | My patch 'r183551 - ARM FastISel integer sext/zext improvements' was incorrect when emitting ARM register-immediate ASR, LSL, LSR instructions: they are pseudo-instructions in ARMInstrInfo.td and I should have used MOVsi instead. This is not an issue when code is generated through a .s file, but is an issue when generated straight to a .o (-filetype=obj). llvm-svn: 186489
* PPC: Add CTR-register clobber to builtin setjmpHal Finkel2013-07-174-0/+59
| | | | | | | | | | | | | Because the builtin longjmp implementation uses a CTR-based indirect jump, when the control flow arrives at the builtin setjmp call, the CTR register has necessarily been clobbered. Correspondingly, this adds CTR to the list of implicit definitions of the builtin setjmp pseudo instruction. We don't need to add CTR to the implicit definitions of builtin longjmp because, even though it does clobber the CTR register, the control flow cannot return to inside the loop unless there is also a builtin setjmp call. llvm-svn: 186488
OpenPOWER on IntegriCloud