summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix linking of unnamed_addr.Rafael Espindola2013-09-042-5/+9
| | | | | | | | This was regression from r134829. When linking we have to be conservative. If one of the symbols has a significant address, then the result should have it too. llvm-svn: 189935
* Remove <windows.h> from lldb-types.h.Virgile Bello2013-09-0413-49/+83
| | | | llvm-svn: 189934
* Remove code duplication in unwrapped line parser.Manuel Klimek2013-09-041-10/+1
| | | | llvm-svn: 189933
* Implement parsing of blocks (^{ ... }) in the unwrapped line parser.Manuel Klimek2013-09-043-14/+42
| | | | | | | | | | | | | | | | | | | | | | This patch makes sure we produce the right number of unwrapped lines, a follow-up patch will make the whitespace formatting consistent. Before: void f() { int i = {[operation setCompletionBlock : ^{ [self onOperationDone]; }] } ; } After: void f() { int i = {[operation setCompletionBlock : ^{ [self onOperationDone]; }] }; } llvm-svn: 189932
* InstCombine: allow unmasked icmps to be combined with logical opsTim Northover2013-09-042-9/+59
| | | | | | | | | | "(icmp op i8 A, B)" is equivalent to "(icmp op i8 (A & 0xff), B)" as a degenerate case. Allowing this as a "masked" comparison when analysing "(icmp) &/| (icmp)" allows us to combine them in more cases. rdar://problem/7625728 llvm-svn: 189931
* InstCombine: look for masked compares with subset relationTim Northover2013-09-042-11/+197
| | | | | | | | | | | Even in cases which aren't universally optimisable like "(A & B) != 0 && (A & C) != 0", the masks can make one of the comparisons completely redundant. In this case, since we've gone to the effort of spotting masked comparisons we should combine them. rdar://problem/7625728 llvm-svn: 189930
* [asan] make use-after-return handle very deep recursion; fixes 483.xalancbmk ↵Kostya Serebryany2013-09-043-7/+32
| | | | | | in UAR mode llvm-svn: 189929
* More lambda formatting tests; update test comments.Manuel Klimek2013-09-041-2/+16
| | | | llvm-svn: 189928
* clang/test/Driver/working-directory.c: Exclude msys bash rather than ↵NAKAMURA Takumi2013-09-041-0/+1
| | | | | | tweaking expressions. llvm-svn: 189927
* Inplement aarch64 neon instructions in AdvSIMD(shift). About 24 shift ↵Hao Liu2013-09-044-45/+1215
| | | | | | | | | | instructions: sshr,ushr,ssra,usra,srshr,urshr,srsra,ursra,sri,shl,sli,sqshlu,sqshl,uqshl,shrn,sqrshr$ and 4 convert instructions: scvtf,ucvtf,fcvtzs,fcvtzu llvm-svn: 189926
* Inplement aarch64 neon instructions in AdvSIMD(shift). About 24 shift ↵Hao Liu2013-09-0412-41/+3911
| | | | | | | | | | instructions: sshr,ushr,ssra,usra,srshr,urshr,srsra,ursra,sri,shl,sli,sqshlu,sqshl,uqshl,shrn,sqrshrun,sqshrn,uqshr,sqrshrn,uqrshrn,sshll,ushll and 4 convert instructions: scvtf,ucvtf,fcvtzs,fcvtzu llvm-svn: 189925
* Fix layout of lambda captures.Manuel Klimek2013-09-043-21/+29
| | | | | | | | | | | | | | | | | | Before: int c = [ &, &a, a]{ [ =, c, &d]{ return b++; }(); }(); After: int c = [&, &a, a] { [=, c, &d] { return b++; }(); }(); llvm-svn: 189924
* Disable FindPathToBinary test on AndroidAlexey Samsonov2013-09-041-1/+1
| | | | llvm-svn: 189923
* Attempt to silence some defined but not used warnings.Eric Christopher2013-09-041-5/+6
| | | | llvm-svn: 189922
* Use Intrinsic::ID for the pattern match templates, fixing a signed/unsignedEric Christopher2013-09-041-6/+6
| | | | | | comparison warning. llvm-svn: 189921
* Only fail this on darwin since most other platforms should have a newerEric Christopher2013-09-041-1/+1
| | | | | | gdb. llvm-svn: 189920
* Disable llvm optimizations, but keep -O1 to test available_externally.Rafael Espindola2013-09-041-1/+1
| | | | llvm-svn: 189919
* Disable llvm optimizations, but keep -O1 to test available_externally.Rafael Espindola2013-09-041-4/+4
| | | | llvm-svn: 189918
* Use %clang_cc1.Rafael Espindola2013-09-041-4/+4
| | | | llvm-svn: 189917
* Clear LookupResult object if invalid candidate is found.Serge Pavlov2013-09-042-3/+56
| | | | | | | If source code is invalid, error recovery can lead to name lookup in a set containing invalid declaration. The lookup is stopped once found such declaration, but LookupResult object could remain in inconsistent state. Its destructor triggered a check, which caused assert violation. This patch fixes PR16964 and PR12791. llvm-svn: 189916
* XFAILed the static-member.cpp test since we no longer support emitting debug ↵Michael Gottesman2013-09-041-0/+1
| | | | | | info that support what Eric calls "the member hack". llvm-svn: 189915
* Revert "Revert "Remove the darwin gdb option, that version of gdb is now ↵Michael Gottesman2013-09-044-40/+8
| | | | | | | | | | | | | | dead and the rest of the compatibility should be done on a dwarf-N level."" This reverts commit r189913. Talked with Eric on IRC. I am going to XFAIL the failing test since it is using what Eric described as "the member hack" which was needed on that old GDB. Sorry for the noise! llvm-svn: 189914
* Revert "Remove the darwin gdb option, that version of gdb is now dead and ↵Michael Gottesman2013-09-044-8/+40
| | | | | | | | | | | | the rest of the compatibility should be done on a dwarf-N level." This reverts commit r189903. This commit broke the phase 1 buildbot for a while. http://lab.llvm.org:8013/builders/clang-x86_64-darwin11-nobootstrap-RAincremental/builds/6684 llvm-svn: 189913
* Add llvm namespace to llvm::next.Michael Gottesman2013-09-041-2/+2
| | | | llvm-svn: 189912
* Use llvm::next() instead of incrementing begin iterators of std::vector.Michael Gottesman2013-09-041-2/+2
| | | | | | | | | | Iterator of std::vector may be implemented as a raw pointer. In this case begin iterators are rvalues and cannot be incremented. For example, this is the case with STDCXX implementation of vector. Patch by Konstantin Tokarev <annulen@yandex.ru>. llvm-svn: 189911
* Don't pass -O0 to clang_cc1, it is the default.Rafael Espindola2013-09-0458-68/+68
| | | | llvm-svn: 189910
* clang-cl: Use "clang cl.exe" when disambiguating the diagnostic prefix.Reid Kleckner2013-09-041-2/+2
| | | | llvm-svn: 189909
* Documentation fix: remove advice to use cast/dyn_cast on TypeLocs, updatingJames Dennett2013-09-041-5/+8
| | | | | | | | | it to refer to castAs/getAs. The original change to remove the (broken) cast/dyn_cast support from TypeLoc was in r175462. (Thanks to David Blaikie for the reference.) llvm-svn: 189908
* [lld][ELF] Differentiate between Note sections(RW/RO)Shankar Easwaran2013-09-049-18/+111
| | | | | | | | | | It looks like there is a possibility of seeing RO/RW note sections and we would need to create an appropriate RO/RW segment associated with them. Adds a test too. llvm-svn: 189907
* Revert "DebugInfo: Remove explicit declaration-emissiong handling now that ↵David Blaikie2013-09-042-32/+42
| | | | | | | | | | | we have a more principled approach (the 'requires complete type' callback)" This reverts commit r189013. This is causing a segfault crash in a test case I have. Reverting while I investigate the issue. llvm-svn: 189906
* MCDwarf.h: Prune a few stray \param(s). [-Wdocumentation]NAKAMURA Takumi2013-09-041-3/+3
| | | | | | \param should be used to describe individual parameters. Use a command like \a or \c for visual enhancements. llvm-svn: 189905
* Suppress test/modularize/NoProblemsDependencies.modularize on msvc, for now. ↵NAKAMURA Takumi2013-09-041-0/+3
| | | | | | Investigating. llvm-svn: 189904
* Remove the darwin gdb option, that version of gdb is now dead andEric Christopher2013-09-044-40/+8
| | | | | | the rest of the compatibility should be done on a dwarf-N level. llvm-svn: 189903
* Make the default dwarf version 3 for darwin when we can't find oneEric Christopher2013-09-041-1/+5
| | | | | | in the module. Add a FIXME with a comment about darwin's ld. llvm-svn: 189902
* clang-cl: Avoid confusing diagnostics when clang-cl is called just cl.exeReid Kleckner2013-09-041-1/+8
| | | | llvm-svn: 189901
* Updated status for LSG issues 2122, 2169, 2177, 2140 and 2086.Marshall Clow2013-09-041-6/+6
| | | | llvm-svn: 189900
* It's a very large constant. Say so.Eric Christopher2013-09-041-1/+1
| | | | llvm-svn: 189899
* Order initializers of static data members of explicit specializationsReid Kleckner2013-09-042-13/+49
| | | | | | | | I tried to implement this properly in r189051, but I didn't have enough test coverage. Richard kindly provided more test cases than I could possibly imagine and now we should have the correct condition. llvm-svn: 189898
* [PECOFF] Ignore options starting with -?Rui Ueyama2013-09-046-21/+31
| | | | | | | | | | | The compiler is allowed to add a linker option starting with -?<name> to .drectve section. If the linker can interpret -<name>, it's processed as if there's no question mark there. If not, such option is silently ignored. This is a COFF's feature to allow the compiler to emit new linker options while keeping compatibility with older linkers. llvm-svn: 189897
* [lld][ELF] Emit note sectionsShankar Easwaran2013-09-049-0/+51
| | | | | | | | Emit note sections if the input contains a note section. Also emit a note segment. llvm-svn: 189896
* Rename *Options.td -> <flavor>Options.td.Rui Ueyama2013-09-045-41/+39
| | | | | | | | | | | | | Before this patch, name of driver implementation is not consistent with its option table file. Specifically, LDOptions has a different prefix than GnuLdDriver. This patch renames option files, so that the option files have the same prefix as the corresponding driver files. Differential Revision: http://llvm-reviews.chandlerc.com/D1591 llvm-svn: 189895
* Update status of issues 2045, 2050, 2080, 2081, 2083, 2130, 2137 and 2177. Marshall Clow2013-09-041-6/+6
| | | | llvm-svn: 189894
* Add a diagnostic group for the "ignoring (static|inline) keyword onPeter Collingbourne2013-09-042-3/+2
| | | | | | explicit template instantiation" warning. llvm-svn: 189893
* ObjectiveC migrator: Cannot use bridging annotations forFariborz Jahanian2013-09-044-60/+39
| | | | | | | ObjectiveC methods. Apply specific annotations for them instead as determined by the static analyzer. llvm-svn: 189892
* [lld][Driver] remove return after llvm_unreachableShankar Easwaran2013-09-041-1/+0
| | | | llvm-svn: 189891
* Start a TODO list for the ELF backend.Joerg Sonnenberger2013-09-041-0/+17
| | | | llvm-svn: 189890
* Clean up handling of FreeBSD thread list on Launch / AttachEd Maste2013-09-034-22/+16
| | | | | | | | Instead of directly manipulating the thread list in Launch and Attach, just rely on RefreshStateAfterStop to populate the initial list. Review: http://llvm-reviews.chandlerc.com/D1565 llvm-svn: 189889
* Fix the test on -Asserts build.Rafael Espindola2013-09-031-8/+8
| | | | llvm-svn: 189888
* [lld][Driver] The driver was creating linker inputs twiceShankar Easwaran2013-09-031-1/+5
| | | | | | | Also add a llvm_unreachable call so that the linker will trip on unhandled inputElement types. llvm-svn: 189887
* Add r159136 back now that pr13124 has been fixed.Rafael Espindola2013-09-033-0/+31
| | | | | | | | | | Original message: If a constant or a function has linkonce_odr linkage and unnamed_addr, mark hidden. Being linkonce_odr guarantees that it is available in every dso that needs it. Being a constant/function with unnamed_addr guarantees that the copies don't have to be merged. llvm-svn: 189886
OpenPOWER on IntegriCloud