summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
* constexpr applied to <string>.Howard Hinnant2012-07-201-42/+44
| | | | llvm-svn: 160563
* Further tweaks on relaxing complete type checking for function.Howard Hinnant2012-07-202-15/+16
| | | | llvm-svn: 160562
* Re-apply r160319 "Don't crash when emitting fixits following Unicode chars"Jordan Rose2012-07-203-30/+57
| | | | | | | | | This time, make sure we don't try to print fixits with newline characters, since they don't have a valid column width, and they don't look good anyway. PR13417 (and originally <rdar://problem/11877454>) llvm-svn: 160561
* Add a reverse iterator to DeclStmt, and use it when building a CFG.Jordan Rose2012-07-202-5/+12
| | | | | | | The CFG creates dummy DeclStmts with one Decl per statement, and it has to do so from last to first in order to build the graph correctly. llvm-svn: 160560
* SourceMgr: Use has_colors() instead of just is_displayed() before trying to useDaniel Dunbar2012-07-201-2/+2
| | | | | | color. llvm-svn: 160559
* raw_ostream: Add a has_colors() method.Daniel Dunbar2012-07-202-0/+9
| | | | llvm-svn: 160558
* Process: Add sys::Process::FileDescriptorHasColors().Daniel Dunbar2012-07-203-10/+20
| | | | llvm-svn: 160557
* lit: Use close_fds=True on UNIX, to avoid file descriptor pollution ofDaniel Dunbar2012-07-201-1/+5
| | | | | | subprocesses. llvm-svn: 160556
* Don't need to specify the abi as it's the default.Eric Christopher2012-07-201-1/+1
| | | | | | rdar://11842763 llvm-svn: 160554
* add a link to the libc++ websiteSylvestre Ledru2012-07-201-1/+1
| | | | llvm-svn: 160553
* Fixes an ObjC++ parse crash caused by delayed parsingFariborz Jahanian2012-07-202-1/+8
| | | | | | | | of c-functions nested in namespace in method implementations by turning off its delayed parsing until a proper solution is figured out. pr13418 llvm-svn: 160552
* CommentBriefParser: coding style fixDmitri Gribenko2012-07-201-2/+1
| | | | llvm-svn: 160551
* CommentBriefParser: use \returns if we can't find the \brief or just a plainDmitri Gribenko2012-07-203-8/+38
| | | | | | paragraph. llvm-svn: 160550
* CMake: clang should depend on clang-headers, or bin/clang would not work better.NAKAMURA Takumi2012-07-201-0/+2
| | | | llvm-svn: 160549
* Fix assertion in jump threading (PR13405).Richard Osborne2012-07-202-0/+10
| | | | | | | | GetBestDestForJumpOnUndef() assumes there is at least 1 successor, which isn't true if the block ends in an indirect branch with no successors. Fix this by bailing out earlier in this case. llvm-svn: 160546
* [asan] make sure that the crash callbacks do not get merged (Chandler's ↵Kostya Serebryany2012-07-202-22/+35
| | | | | | idea: insert an empty InlineAsm). Change the order in which the new BBs are inserted: the slow path BB is insert between old BBs, the crash BB is inserted at the end. Don't create an empty BB (introduced by recent commits). Update the test. The experimental code that does manual crash callback merge will most likely be deleted later. llvm-svn: 160544
* Don't use implicit register operands to calculate L-bit for AVX ↵Craig Topper2012-07-201-0/+2
| | | | | | instructions. Needed because super reg defs and kills are added as implicit operands on 128-bit instructions. Fixes PR13349. Patch by Jose Fonseca. llvm-svn: 160543
* Revert r160319, it caused PR13417. Add a test for PR13417.Nico Weber2012-07-204-54/+36
| | | | llvm-svn: 160542
* Let Expr::HasSideEffects() return false for NULL, bool literals, this, and ↵Nico Weber2012-07-203-1/+17
| | | | | | | | nullptr. Fixes PR13413, -Wunused-private-field now warns on unused fields initialized to NULL. llvm-svn: 160541
* Make RegisterOperand a subclass of DAGOperand so that RegisterOperands can ↵Owen Anderson2012-07-201-1/+2
| | | | | | be passed into multiclasses that take DAGOperands as multiclass parameters. llvm-svn: 160540
* Change the things we pass to Mangled::SetValue to be ConstStrings instead of Jason Molenda2012-07-201-5/+5
| | | | | | char*'s - Greg removed the methods which accept char*'s earlier today. llvm-svn: 160539
* Rename warn-unused-member.cpp to warn-unused-private-field.cpp toNico Weber2012-07-201-0/+0
| | | | | | make it match the flag it tests. llvm-svn: 160536
* Switch to the canonical pipe-based testing of clang output usingChandler Carruth2012-07-201-3/+1
| | | | | | | | FileCheck. This avoids copying files around needlessly during test runs. llvm-svn: 160535
* Remove dos line endings. Please remember to configure your windows SVNChandler Carruth2012-07-201-13/+13
| | | | | | clients to default text files to 'eol-native'. llvm-svn: 160534
* Revert r160529 due to crashes.Nick Lewycky2012-07-193-192/+9
| | | | llvm-svn: 160532
* Fix crash in machine verifier when trying to print the def of a register ↵Pete Cooper2012-07-191-0/+2
| | | | | | which has no def llvm-svn: 160531
* [analyzer] Refactor VisitObjCMessage and VisitCallExpr to rely on theAnna Zaks2012-07-195-89/+95
| | | | | | same implementation for call evaluation. llvm-svn: 160530
* Don't wipe out global variables that are probably storing pointers to heapNick Lewycky2012-07-193-9/+192
| | | | | | memory. This makes clang play nice with leak checkers. llvm-svn: 160529
* FileCheck-ize.Eric Christopher2012-07-191-24/+23
| | | | llvm-svn: 160528
OpenPOWER on IntegriCloud