summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* PR12917: Remove incorrect assumption that lambda mangling information cannotRichard Smith2012-07-226-76/+105
| | | | | | | | | | change once it's been assigned. It can change in two ways: 1) In a template instantiation, the context declaration should be the instantiated declaration, not the declaration in the template. 2) If a lambda appears in the pattern of a variadic pack expansion, the mangling number will depend on the pack length. llvm-svn: 160614
* Allow the parser to recover gracefully if a typename is used to introduce a ↵Francois Pichet2012-07-222-3/+7
| | | | | | | | | | decltype type. In Microsoft mode, we emit a warning instead of an error. This fixes a couple of errors when parsing the MSVC 11 RC headers with clang. llvm-svn: 160613
* char16_t and char32_t are defined via typedef in MSVC 11 RC. So introduce a ↵Francois Pichet2012-07-223-3/+11
| | | | | | way to disable keywords under Microsoft mode. llvm-svn: 160612
* Move the initialization of the bounds checking pass. The pass itselfChandler Carruth2012-07-222-3/+3
| | | | | | moved earlier. This fixes some layering issues. llvm-svn: 160611
* ExecutionEngine/TargetSelect.cpp: Override default triple as LLVM_HOSTTRIPLE.NAKAMURA Takumi2012-07-221-1/+1
| | | | | | In current implementation, JIT should run only on host. llvm-svn: 160610
* autoconf: Re-introduce LLVM_HOSTTRIPLE since r143500, as rework of PR11060.NAKAMURA Takumi2012-07-227-0/+20
| | | | | cmake: Add LLVM_HOSTTRIPLE. For now, it is same as TARGET_TRIPLE. llvm-svn: 160609
* Apple LWG 2067: ↵Howard Hinnant2012-07-211-6/+6
| | | | | | http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3318.html#2067 . This is the only actionable change that has been made to the C++ draft since C++11. In general it has not been decided exactly how libc++ will track changes made to C++11. New features and design changes will probably be #ifdef'd, especially if they are not backwards compatible. Defects and 'dumb mistakes' are more likely to just be put in. Decisions on telling one from the other will be made on a case by case basis. llvm-svn: 160608
* noexcept applied to <future>.Howard Hinnant2012-07-212-125/+125
| | | | llvm-svn: 160607
* noexcept applied to <thread>.Howard Hinnant2012-07-212-38/+38
| | | | llvm-svn: 160606
* noexcept applied to <condition_variable>.Howard Hinnant2012-07-213-12/+12
| | | | llvm-svn: 160605
* noexcept and constexpr applied to <mutex>.Howard Hinnant2012-07-214-54/+65
| | | | llvm-svn: 160604
* Revert r160602.Nick Lewycky2012-07-213-198/+9
| | | | llvm-svn: 160603
* Teach globalopt to play nice with leak checkers. This is a reapplication ofNick Lewycky2012-07-213-9/+198
| | | | | | | | r160529 that was subsequently reverted. The fix was to not call GV->eraseFromParent() right before the caller does the same. The existing testcases already caught this bug if run under valgrind. llvm-svn: 160602
* Fix Mips long branch pass.Akira Hatanaka2012-07-213-135/+142
| | | | | | | This pass no longer requires that the global pointer value be saved to the stack or register since it uses bal instruction to compute branch distance. llvm-svn: 160601
* Comment AST nodes: add NumHTMLStartTagCommentBits member.Dmitri Gribenko2012-07-211-0/+1
| | | | llvm-svn: 160600
* Add HIGHER and HIGHEST relocations to Mips backend.Akira Hatanaka2012-07-213-1/+8
| | | | llvm-svn: 160599
* Revert accidental commit.Akira Hatanaka2012-07-218-288/+45
| | | | llvm-svn: 160598
* Add VK_Mips_HIGHER and VK_Mips_HIGHEST to MCSymbolRefExpr::VariantKind.Akira Hatanaka2012-07-2110-46/+293
| | | | | | Test case will be added later when long branch patch is checked in. llvm-svn: 160597
* Added a fix that allows newly-constructed objectsSean Callanan2012-07-212-0/+69
| | | | | | | | | | | | | | to returned by expressions, by removing the __cxa_atexit call that would normally cause these objects to be destroyed. This also prevents many errors of the form Couldn't rewrite one of the arguments of a function call error: Couldn't materialize struct: Structure hasn't been laid out yet <rdar://problem/11309402> llvm-svn: 160596
* Comment to HTML conversion: add more CSS classes to identify function argumentsDmitri Gribenko2012-07-213-75/+78
| | | | | | | by index. This is useful if the user does not document all arguments, and we can't find a particular argument by index via :nth-of-type() CSS selector. llvm-svn: 160595
* noexcept and constexpr applied to <regex>.Howard Hinnant2012-07-211-29/+28
| | | | llvm-svn: 160594
* noexcept and constexpr applied to <ios>.Howard Hinnant2012-07-213-36/+39
| | | | llvm-svn: 160593
* noexcept applied to <valarray>.Howard Hinnant2012-07-211-11/+11
| | | | llvm-svn: 160592
* Handle backslash protection inside unquoted commands like:Jim Ingham2012-07-211-1/+12
| | | | | | | | | (lldb) file hello\ world correctly. <rdar://problem/11093911> llvm-svn: 160591
* Rename -fms-inline-asm to -fenable-experimental-ms-inline-asm.Chad Rosier2012-07-204-6/+6
| | | | llvm-svn: 160590
* baby steps toward fixing some problems with inbound GEPs that overflow, as ↵Nuno Lopes2012-07-203-3/+16
| | | | | | | | discussed 2 months ago or so. Make sure we do not emit index computations with NSW flags so that we dont get an undef value if the GEP overflows llvm-svn: 160589
* Added a fix to LLVM that corrects PC-relativeSean Callanan2012-07-201-0/+26
| | | | | | | | branch address printing in the x86 disassembler. <rdar://problem/11925357> llvm-svn: 160588
* move the bounds checking pass to the instrumentation folder, where it ↵Nuno Lopes2012-07-209-10/+9
| | | | | | | | belongs. I dunno why in the world I dropped it in the Scalar folder in the first place. No functionality change. llvm-svn: 160587
* Add "long double" to permitted list of ARM complex homogeneous aggregates.Tim Northover2012-07-202-1/+9
| | | | | | | Under AAPCS, long double is the same as double, which means it should be allowed as part of a homogeneous aggregate. llvm-svn: 160586
* constexpr applied to <complex>.Howard Hinnant2012-07-2011-22/+134
| | | | llvm-svn: 160585
* Remove unused private member variable uncovered by the recent changes to ↵Benjamin Kramer2012-07-201-2/+1
| | | | | | clang's -Wunused-private-field. llvm-svn: 160584
* Remove unused private member variables uncovered by the recent changes to ↵Benjamin Kramer2012-07-206-22/+3
| | | | | | clang's -Wunused-private-field. llvm-svn: 160583
* Fix c-index-test to compile as C89.Dmitri Gribenko2012-07-201-8/+14
| | | | llvm-svn: 160582
* Tidy up.Chad Rosier2012-07-201-7/+7
| | | | llvm-svn: 160581
* Add the mechanics for -fms-inline-asm. No easy way to test at this time.Chad Rosier2012-07-203-0/+6
| | | | llvm-svn: 160580
* noexcept applied to <random>.Howard Hinnant2012-07-202-9/+9
| | | | llvm-svn: 160579
* Add "vAttachOrWait" to debugserver, so you can implement "attach to the ↵Jim Ingham2012-07-2014-114/+159
| | | | | | process if it exists OR wait for it" without race conditions. Use that in lldb. llvm-svn: 160578
* Add libclang APIs to walk comments ASTs and an API to convert a comment to anDmitri Gribenko2012-07-2010-23/+1686
| | | | | | | | | | | HTML fragment. For testing, c-index-test now has even more output: * HTML rendering of a comment * comment AST tree dump in S-expressions like Comment::dump(), but implemented * with libclang APIs. llvm-svn: 160577
* Fix few warnings.Galina Kistanova2012-07-201-1/+1
| | | | llvm-svn: 160576
* Avoid folding loads that are unsafe to move.Jakob Stoklund Olesen2012-07-202-0/+156
| | | | | | | | | | LiveRangeEdit::foldAsLoad() can eliminate a register by folding a load into its only use. Only do that when the load is safe to move, and it won't extend any live ranges. This fixes PR13414. llvm-svn: 160575
* Revert accidental commit.Chad Rosier2012-07-201-2/+0
| | | | llvm-svn: 160574
* Add a new flag, -fms-inline-asm, that enables the output of MS-style inlineChad Rosier2012-07-204-0/+11
| | | | | | | | | | | assembly. By default, we don't emit IR for MS-style inline assembly (see r158833 as to why). This is strictly for testing purposes and should not be enabled with the expectation that things will work. This is a temporary flag and will be removed once MS-style inline assembly is fully supported. llvm-svn: 160573
* Fix a dangling StringRef bug in the auto upgrader. In one case, we resetChandler Carruth2012-07-201-2/+2
| | | | | | | | | | | CI's name, and then used the StringRef pointing at its old name. I'm fixing it by storing the name in a std::string, and hoisting the renaming logic to happen always. This is nicer anyways as it will allow the upgraded IR to have the same names as the input IR in more cases. Another bug found by AddressSanitizer. Woot. llvm-svn: 160572
* Split loop exiting edges more aggressively.Jakob Stoklund Olesen2012-07-202-13/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PHIElimination splits critical edges when it predicts it can resolve interference and eliminate copies. It doesn't split the edge if the interference wouldn't be resolved anyway because the phi-use register is live in the critical edge anyway. Teach PHIElimination to split loop exiting edges with interference, even if it wouldn't resolve the interference. This removes the necessary copies from the loop, which is still an improvement from injecting the copies into the loop. The test case demonstrates the improvement. Before: LBB0_1: cmpb $0, (%rdx) leaq 1(%rdx), %rdx movl %esi, %eax je LBB0_1 After: LBB0_1: cmpb $0, (%rdx) leaq 1(%rdx), %rdx je LBB0_1 movl %esi, %eax llvm-svn: 160571
* No longer assuming the number of prototype arguments is always less than the ↵Aaron Ballman2012-07-202-1/+6
| | | | | | number of formal parameters for a variadic function call. llvm-svn: 160570
* Fix PR13411: Comment parsing: failed assertion on unterminated verbatim block.Dmitri Gribenko2012-07-203-20/+74
| | | | | | | | | | The assertion was wrong in case we have a verbatim block without a closing command. Also add tests for closing command name in a verbatim block, since now it can be empty in such cases. llvm-svn: 160568
* Try to unbreak the windows build.Benjamin Kramer2012-07-201-1/+1
| | | | llvm-svn: 160567
* Relax the tolerances on some timing tests.Howard Hinnant2012-07-202-2/+2
| | | | llvm-svn: 160566
* noexcept applied to <iterator>.Howard Hinnant2012-07-202-15/+15
| | | | llvm-svn: 160565
* constexpr applied to <array>.Howard Hinnant2012-07-202-4/+18
| | | | llvm-svn: 160564
OpenPOWER on IntegriCloud