summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix warning about anonymous structs in anonymous unions.Eric Christopher2013-08-291-6/+8
| | | | llvm-svn: 189596
* Better support for multiline string literals (including C++11 raw string ↵Alexander Kornienko2013-08-296-29/+115
| | | | | | | | | | | | | | | | | | literals). Summary: Calculate characters in the first and the last line correctly so that we only break before the literal when needed. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D1544 llvm-svn: 189595
* Consumed analysis: improve handling of conditionals.DeLesley Hutchins2013-08-294-246/+770
| | | | | | | | | | | | | | Patch by chris.wailes@gmail.com. * The TestedVarsVisitor was folded into the ConsumedStmtVisitor. * The VarTestResult class was updated to allow these changes. * The PropagationInfo class was updated for the same reasons. * Correctly handle short-circuiting of Boolean operations. * Blocks are now marked as unreachable when we can statically prove we will never branch to them. * Unreachable blocks are skipped by the analysis. llvm-svn: 189594
* Add unique identifier field to Composite Types and Format.Manman Ren2013-08-291-5/+6
| | | | llvm-svn: 189593
* ObjectiveC migrator: remove dead code.Fariborz Jahanian2013-08-293-15/+1
| | | | llvm-svn: 189592
* clang/test/Frontend/rewrite-includes.c: Tweak expressions for r'\\', not ↵NAKAMURA Takumi2013-08-291-14/+14
| | | | | | r'\', on win32. llvm-svn: 189591
* [analyzer] Fix handling of "empty" structs with base classesPavel Labath2013-08-292-1/+32
| | | | | | | | | | | | | | | | | | | Summary: RegionStoreManager had an optimization which replaces references to empty structs with UnknownVal. Unfortunately, this check didn't take into account possible field members in base classes. To address this, I changed this test to "is empty and has no base classes". I don't consider it worth the trouble to go through base classes and check if all of them are empty. Reviewers: jordan_rose CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1547 llvm-svn: 189590
* fix FreeBSD build errorDaniel Malea2013-08-291-1/+1
| | | | | | - s/LogSP/Log */ in ProcessMonitorFreeBSD.cpp llvm-svn: 189589
* Minor updates to gen_dynamic_list script suggested by gliderAlexey Samsonov2013-08-291-42/+49
| | | | llvm-svn: 189588
* Fix tests to be more specific.Samuel Benzaquen2013-08-291-17/+13
| | | | | | | | | | | | | | | | | | The environments can inject some declaration in every translation unit, which can match very generic matchers, thus failing the tests. Summary: Fix tests to be more specific. The environments can inject some declaration in every translation unit, which can match very generic matchers, thus failing the tests. Reviewers: aaron.ballman CC: klimek, cfe-commits, revane Differential Revision: http://llvm-reviews.chandlerc.com/D1541 llvm-svn: 189587
* Mark issues 2147, 2149, 2163, 2172, 2098 and 2177 as complete. No code ↵Marshall Clow2013-08-291-6/+6
| | | | | | changes to libc++ llvm-svn: 189586
* Fixes various problems with accounting for tabs in the original code.Manuel Klimek2013-08-293-20/+75
| | | | | | | | | | | | | | | We now count the original token's column directly when lexing the tokens, where we already have all knowledge about where lines start. Before this patch, formatting: void f() { \tg(); \th(); } would incorrectly count the \t's as 1 character if only the line containing h() was reformatted, and thus indent h() at offset 1. llvm-svn: 189585
* cpp11-migrate: Add Pass-By-Value TransformGuillaume Papin2013-08-2915-0/+900
| | | | | | | | | | Currently only constructor parameters stored in class-local storage are modified to make use of the pass-by-value idiom but this is a base that can be be further improved to handle more situations. This commit is the same as r189363 with additionnal fixes for the build issues. llvm-svn: 189584
* Use new UnicodeCharSet interface.Alexander Kornienko2013-08-292-21/+41
| | | | | | | | | | | | | | Summary: This is a Clang part of http://llvm-reviews.chandlerc.com/D1534 Reviewers: jordan_rose, klimek, rsmith Reviewed By: rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1535 llvm-svn: 189583
* isCharInSet refactoring.Alexander Kornienko2013-08-293-67/+71
| | | | | | | | | | | | | | | | | | Summary: Made UnicodeCharSet a class, perform validity checking inside its constructor instead of each isCharInSet call, use std::binary_search instead of own implementation. This patch comes with a necessary change in clang (sent separately). Reviewers: jordan_rose, klimek Reviewed By: klimek CC: cfe-commits, rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D1534 llvm-svn: 189582
* [TSan] Add a couple of compiler warnings to TSan runtime compile flagsAlexey Samsonov2013-08-292-5/+11
| | | | llvm-svn: 189581
* AVX-512: added extend and truncate instructions.Elena Demikhovsky2013-08-295-29/+372
| | | | llvm-svn: 189580
* [TSan] Move build rules a bit to ensure correct dependencies of check-tsan ↵Alexey Samsonov2013-08-292-53/+51
| | | | | | command llvm-svn: 189579
* [sanitizer] Parallelize lint checker scriptAlexey Samsonov2013-08-291-28/+36
| | | | llvm-svn: 189578
* [sanitizer] Refine CMake rules for generating exported symbols and lint checkingAlexey Samsonov2013-08-294-19/+24
| | | | llvm-svn: 189577
* Discover support of 'p' packet.Hafiz Abid Qadeer2013-08-293-1/+26
| | | | | | | Some stubs only support g/G packets for registers. This change makes sure that we check if remote stub supports 'p' packet before using it. llvm-svn: 189576
* Removed useless default branch of switch statement.Serge Pavlov2013-08-291-3/+0
| | | | | | The problem was caught by sanitizer build. llvm-svn: 189575
* mangle aarch64 Neon ACLE scalar instrinsic name with BHSD suffix.Kevin Qin2013-08-292-12/+46
| | | | llvm-svn: 189574
* [PECOFF] Fix bug that section grouping may lay out atoms in a wrong order.Rui Ueyama2013-08-294-34/+40
| | | | | | | | | We added layout edges to the head atoms in grouped sections. That was wrong, because the head atom needs to be followed by the other atoms in the *same* section, not by the other section contents. With this patch, layout edges are added from tail atom, which is the last atom in a section, to head atom. llvm-svn: 189573
* [PECOFF] Fix bug that atom size was sometimes wrong.Rui Ueyama2013-08-292-2/+2
| | | | | | | | Because of a bug, the last atom of each section contained a garbage at the end of its data. In most cases the garbage is harmless but it could have cause SEGV. llvm-svn: 189572
* Change return type of Sema::DiagnoseAmbiguousLookup from bool to void.Serge Pavlov2013-08-292-14/+9
| | | | | | The function always returned true value, which was never used. llvm-svn: 189571
* [PECOFF] Add helper functions for debuggingRui Ueyama2013-08-291-0/+20
| | | | llvm-svn: 189570
* Make getDiagnosticsInGroup helper method a static function in the cpp file ↵Craig Topper2013-08-292-22/+16
| | | | | | and move the WarningOption struct into an anonymous namespace instead of clang namespace since it no longer needs to be forward declared in the header. llvm-svn: 189569
* Move individual group name strings from the OptionTable into one big char ↵Craig Topper2013-08-295-33/+42
| | | | | | array. Then only store offsets into it in the OptionTable. Saves about 4K from the clang binary and removes 400 relocation entries from DiagnosticIDs.o. llvm-svn: 189568
* Move StringToOffsetTable into the TableGen include directory so I can use it ↵Craig Topper2013-08-292-1/+1
| | | | | | in clang. llvm-svn: 189567
* Revert: r189565 - Add getUnrollingPreferences to TTIHal Finkel2013-08-294-45/+5
| | | | | | | | | | | | | | | Revert unintentional commit (of an unreviewed change). Original commit message: Add getUnrollingPreferences to TTI Allow targets to customize the default behavior of the generic loop unrolling transformation. This will be used by the PowerPC backend when targeting the A2 core (which is in-order with a deep pipeline), and using more aggressive defaults is important. llvm-svn: 189566
* Add getUnrollingPreferences to TTIHal Finkel2013-08-294-5/+45
| | | | | | | | | Allow targets to customize the default behavior of the generic loop unrolling transformation. This will be used by the PowerPC backend when targeting the A2 core (which is in-order with a deep pipeline), and using more aggressive defaults is important. llvm-svn: 189565
* Use TargetSubtargetInfo::useAA() in DAGCombineHal Finkel2013-08-291-3/+10
| | | | | | | This uses the TargetSubtargetInfo::useAA() function to control the defaults of the -combiner-alias-analysis and -combiner-global-alias-analysis options. llvm-svn: 189564
* Add useAA() to TargetSubtargetInfoHal Finkel2013-08-293-13/+27
| | | | | | | | | | | | | There are several optional (off-by-default) features in CodeGen that can make use of alias analysis. These features are important for generating code for some kinds of cores (for example the (in-order) PPC A2 core). This adds a useAA() function to TargetSubtargetInfo to allow these features to be enabled by default on a per-subtarget basis. Here is the first use of this function: To control the default of the -enable-aa-sched-mi feature. llvm-svn: 189563
* [tests] Use 'printf' instead of 'echo -e', which is not part of BSD echo.Daniel Dunbar2013-08-292-2/+2
| | | | llvm-svn: 189562
* [lit] [tests] Add missing test input file.Daniel Dunbar2013-08-291-0/+6
| | | | llvm-svn: 189561
* [tests] Use multiple statements instead of 'echo -e', which is not part of ↵Daniel Dunbar2013-08-291-1/+6
| | | | | | BSD echo. llvm-svn: 189560
* [lit] Fix internal shell's argv[0] handling.Daniel Dunbar2013-08-292-3/+5
| | | | | | | - At least on OS X, it is important for correct behavior of /bin/[ that argv[0] is passed as written, and not as the full executable path. llvm-svn: 189559
* Two more definitions required by libsupc++ (_sleb128_t and _uleb128_t)Peter Collingbourne2013-08-291-0/+3
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1542 llvm-svn: 189558
* Properly escape filenames in line directives.Eli Friedman2013-08-293-4/+8
| | | | | | | Fixes PR17018. Only partial test coverage because I don't want to try to write a test which generates a file whose name contains a newline. llvm-svn: 189557
* [lit] Add support for multiprocessing, under --use-processes for now.Daniel Dunbar2013-08-293-39/+115
| | | | llvm-svn: 189556
* [lit] Implement --max-time support by using provider cancel method.Daniel Dunbar2013-08-291-10/+16
| | | | llvm-svn: 189555
* [lit] Refactor test execution logic into lit.run.Run.Daniel Dunbar2013-08-292-123/+158
| | | | llvm-svn: 189554
* [lit] Put display lock inside the ThreadResultsConsumer.Daniel Dunbar2013-08-291-17/+9
| | | | llvm-svn: 189553
* [lit] Factor out a results consumer interface for test execution.Daniel Dunbar2013-08-291-20/+44
| | | | | | - Also, change TestProvider interface to operate on test indices. llvm-svn: 189552
* [lit] Move top-level execute code into Run object.Daniel Dunbar2013-08-294-41/+49
| | | | llvm-svn: 189551
* [lit] Factor out Run class to capture configuration + discovered tests.Daniel Dunbar2013-08-292-18/+29
| | | | llvm-svn: 189550
* [lit] Change lit.Test.ResultCode to be unique across pickling.Daniel Dunbar2013-08-291-0/+11
| | | | llvm-svn: 189549
* Remove Inheritable/NonInheritable flags from ProcessDeclAttributes. They don'tRichard Smith2013-08-295-63/+25
| | | | | | do anything useful. llvm-svn: 189548
* Fix a test to not fail for users with my name. :)Daniel Dunbar2013-08-291-0/+1
| | | | llvm-svn: 189547
OpenPOWER on IntegriCloud