summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ASan] Define an internal implementation of strchr to make stack OOB tests ↵Timur Iskhodzhanov2012-02-143-1/+12
| | | | | | pass on Windows llvm-svn: 150499
* more objective-c translator for modern abi.Fariborz Jahanian2012-02-141-1/+19
| | | | | | | metadata for protocol definitions used on class qualifiers. llvm-svn: 150498
* Implement support for lambda capture pack expansions, e.g.,Douglas Gregor2012-02-149-26/+158
| | | | | | [&values...] { print(values...); } llvm-svn: 150497
* Update MachineVerifier to check the new physreg live-in rules.Lang Hames2012-02-141-0/+22
| | | | llvm-svn: 150496
* Use several weighted factors to determine typo candidate viablity.Kaelyn Uhrain2012-02-143-58/+139
| | | | | | | | | | | Replace the simple Levenshtein edit distance for typo correction candidates--and the hacky way adding namespace qualifiers would affect the edit distance--with a synthetic "edit distance" comprised of several factors and their relative weights. This also allows the typo correction callback object to convey more information about the viability of a correction candidate than simply viable or not viable. llvm-svn: 150495
* Tighten physical register invariants: Allocatable physical registers canLang Hames2012-02-143-10/+53
| | | | | | only be live in to a block if it is the function entry point or a landing pad. llvm-svn: 150494
* Simplify and robustify lambda PCH testDouglas Gregor2012-02-141-3/+1
| | | | llvm-svn: 150493
* (no commit message)Enrico Granata2012-02-141-0/+14
| | | | llvm-svn: 150492
* Implement AST (de-)serialization for lambda expressions.Douglas Gregor2012-02-148-7/+183
| | | | llvm-svn: 150491
* more modern objc translator. Focusing on metadata for methods.Fariborz Jahanian2012-02-141-17/+61
| | | | llvm-svn: 150490
* Provide a move(const T&) overload for C++03 mode to enable moving from ↵Howard Hinnant2012-02-141-0/+12
| | | | | | rvalues. This is to support proxy references. Fixes r10858112. llvm-svn: 150488
* include clang's config.h unconditionally (v2)Dylan Noblesmith2012-02-144-15/+5
| | | | | | | | | | And remove HAVE_CLANG_CONFIG_H, now that the header is generated in the autoconf build, too. Reverts r149571/restores r149504, now that config.h is generated correctly by LLVM's configure in all build configurations. llvm-svn: 150487
* ScheduleOpt: Allow to configure for which dependences to optimizeTobias Grosser2012-02-142-3/+24
| | | | | | | We can either optimize for RAW dependences or for all dependences. For the moment, I do not see a big difference here. llvm-svn: 150484
* CodeGen: Get dependences for validity and proximity separatelyTobias Grosser2012-02-141-12/+12
| | | | | | | | This change itself should not change functionality, but it will make it easier to support use different dependence kinds in for validity and proximity constraints. llvm-svn: 150483
* ScopInfo: Add Scop::getDomains()Tobias Grosser2012-02-143-10/+20
| | | | llvm-svn: 150482
* Copy IndVarSimplify pass from LLVM to PollyTobias Grosser2012-02-144-2/+2001
| | | | | | | | This allows us to enable -enable-iv-rewrite by default and releases LLVM from the burdon to keep that feature. This is an intermediate step. We plan to soon remove the need for rewritten induction variables entirely. llvm-svn: 150481
* Recommit "CodeGen: Maintain a valid CFG during code generation"Tobias Grosser2012-02-141-56/+62
| | | | | | | | | | When I first tried to commit this patch, the builder pointed after generation of a loop still into the loop body. This means that code that was supposed to be generated after the loop was generated right into the loop body. We fixed this by pointing the builder to the BB after the loop, as soon as code generation of the loop body itself is finished. llvm-svn: 150480
* [asan] Add lots of missing visibility attributes.Evgeniy Stepanov2012-02-141-11/+22
| | | | llvm-svn: 150479
* Fix PR12000. Some vector operations may use scalar operands with typesNadav Rotem2012-02-142-1/+18
| | | | | | | | that are greater than the vector element type. For example BUILD_VECTOR of type <1 x i1> with a constant i8 operand. This patch fixes the assertion. llvm-svn: 150477
* Use a simpler (and more efficient) pattern to pad vectors.Benjamin Kramer2012-02-145-25/+14
| | | | llvm-svn: 150475
* Turn push_back loops into append/insert.Benjamin Kramer2012-02-141-4/+2
| | | | llvm-svn: 150471
* Change error tests to coincide with message changes.Bill Wendling2012-02-143-3/+3
| | | | llvm-svn: 150467
* Capitalize messages so that they appear nicely with the linker's error messages.Bill Wendling2012-02-141-9/+9
| | | | llvm-svn: 150466
* Fix crash-on-invalid for 'operator int[]()' in C++11.David Blaikie2012-02-142-3/+7
| | | | | | Signed off by Richard Smith. llvm-svn: 150464
* Move old movl vector_shuffle patterns. Not needed anymore since ↵Craig Topper2012-02-142-63/+7
| | | | | | vector_shuffles shouldn't reach isel. llvm-svn: 150462
* Fix use-after-free introduced by me being an idiot.Ted Kremenek2012-02-141-6/+4
| | | | llvm-svn: 150461
* Rename getExceptionAddressRegister() to getExceptionPointerRegister() for ↵Lang Hames2012-02-144-5/+5
| | | | | | consistency with setExceptionPointerRegister(...). llvm-svn: 150460
* Remove useless if statement.Eli Friedman2012-02-141-19/+14
| | | | llvm-svn: 150459
* Add a coverage test for lambda expression IRGen.Eli Friedman2012-02-141-0/+54
| | | | llvm-svn: 150458
* Use convenience function for consistency.Lang Hames2012-02-141-2/+1
| | | | llvm-svn: 150457
* Implement new DiagnosticsRenderer that packages notes retrieved by ↵Ted Kremenek2012-02-143-10/+126
| | | | | | | | | clang_getDiagnosticSetFromTU() as child diagnostics of primary diagnostics. By using the DiagnosticRenderer, these Diagnostics now match with those generated for serialized diagnostics. llvm-svn: 150456
* Refactor DiagnosticRenderer and SDiagsRenderer to have some functionalityTed Kremenek2012-02-145-42/+72
| | | | | | | | | pulled into DiagnosticNoteRenderer, and common DiagnosticRenderer that assumes that all custom diagnostic messages are notes. Also extend DiagnosticRenderer to work with StoredDiagnostics in preparation for subsequent changes. llvm-svn: 150455
* Add helper methods to StoredDiagnostic.Ted Kremenek2012-02-141-0/+9
| | | | llvm-svn: 150454
* Fix another issue introduced by the proposed wording for core issue 1358: sinceRichard Smith2012-02-142-4/+21
| | | | | | | | | | the instantiation of a constexpr function temploid is now always constexpr, a defaulted constexpr function temploid is often ill-formed by the rule in [dcl.fct.def.default]p2 that an explicitly-defaulted constexpr function must have a constexpr implicit definition. To avoid making loads of completely reasonable code ill-formed, do not apply that rule to templates. llvm-svn: 150453
* Implement IRGen of lambda expressions which capture arrays.Eli Friedman2012-02-143-63/+29
| | | | llvm-svn: 150452
* Refactor out new function EmitInitializerForField from ↵Eli Friedman2012-02-142-50/+74
| | | | | | EmitMemberInitializer. The new function will be used to initialize the fields of lambda expressions. llvm-svn: 150451
* Add test cases exercising SBValue.GetObjectDescription() with the SBValue ↵Johnny Chen2012-02-142-0/+90
| | | | | | | | from SBTarget.FindGlobalVariables() as well as from SBFrame.GetVariables(). Both scenarios are expected to work. llvm-svn: 150450
* [tsan] fix compiler warningsKostya Serebryany2012-02-141-3/+3
| | | | llvm-svn: 150449
* Third time's the charm...?Lang Hames2012-02-141-2/+2
| | | | llvm-svn: 150447
* [analyzer] Malloc Checker: realloc: add dependency between the symbolsAnna Zaks2012-02-142-9/+47
| | | | | | | | | | | | | in realloc map. If there is no dependency, the reallocated ptr will get garbage collected before we know that realloc failed, which would lead us to missing a memory leak warning. Also added new test cases, which we can handle now. Plus minor cleanups. llvm-svn: 150446
* Fixed a bug that caused the description stringsSean Callanan2012-02-141-1/+2
| | | | | | | for assembly instructions to occasionally come out empty. llvm-svn: 150445
* Unswap swap operands, partially reducing confusion.Lang Hames2012-02-141-2/+2
| | | | llvm-svn: 150444
* Made loading sections in the DynamicLoaderDarwinKernel more robust as itGreg Clayton2012-02-141-31/+28
| | | | | | | | | seems that sections in the memory module might be quite different from the sections in the file module. Now we find all segments in the on disk file and find that segment by name in the memory module and it is ok if any sections from the file are missing in the memory image. llvm-svn: 150443
* Simple test ensuring that we perform direct initialization when ↵Douglas Gregor2012-02-141-0/+9
| | | | | | copy-capturing in lambdas llvm-svn: 150442
* [asan] fix asan-vs-gvn.ll test (it did not actually check much before this ↵Kostya Serebryany2012-02-141-4/+17
| | | | | | change) llvm-svn: 150441
* Link together the call operator produced from transforming a lambdaDouglas Gregor2012-02-143-24/+99
| | | | | | | | expression with the original call operator, so that we don't try to separately instantiate the call operator. Test and tweak a few more bits for template instantiation of lambda expressions. llvm-svn: 150440
* Add simplifyLoopLatch to LoopRotate pass.Andrew Trick2012-02-142-0/+142
| | | | | | This folds a simple loop tail into a loop latch. It covers the common (in fortran) case of postincrement loops. It's a "free" way to expose this type of loop to downstream loop optimizations that bail out on non-canonical loops (getLoopLatch is a heavily used check). llvm-svn: 150439
* whitespaceAndrew Trick2012-02-141-30/+30
| | | | llvm-svn: 150438
* Don't reserve the R0 and R1 registers here. We don't use these registers, andBill Wendling2012-02-132-4/+15
| | | | | | | marking them as "live-in" into a BB ruins some invariants that the back-end tries to maintain. llvm-svn: 150437
* Don't recalculate the size of the vector each time through the loop.Bill Wendling2012-02-131-2/+2
| | | | llvm-svn: 150436
OpenPOWER on IntegriCloud