summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make -m[no-]pascal-strings an alias of -f[no]pascal-strings in the .td fileHans Wennborg2013-07-313-10/+10
| | | | | | | | This way we don't have to translate it manually in Clang::ConstructJob. Differential Revision: http://llvm-reviews.chandlerc.com/D1249 llvm-svn: 187547
* Option parsing: remove non-SUPPORT_ALIASARGS fall-backHans Wennborg2013-07-312-16/+2
| | | | | | | | The clients of this code have been updated to all support AliasArgs. This depends on Clang r187538 and lld r187541. llvm-svn: 187546
* Fix thread name updating in Linux. "thread list" should report correct names ↵Michael Sartain2013-07-3112-41/+163
| | | | | | | | | | | always now. Created new LinuxThread class inherited from POSIXThread and removed linux / freebsd ifdefs Removed several un-needed set thread name calls CR (and multiple suggestions): mkopec llvm-svn: 187545
* [PECOFF][Driver] Prefer "/" over "-" as the indicator of the option.Rui Ueyama2013-07-311-12/+9
| | | | | | | | This patch does not change the behavior of LLD, but changes the output of the help text. We want to show the help text with Windows style indicator rather than Unix style indicator. llvm-svn: 187544
* ObjectiveC ARC: finishing off issuing error whenFariborz Jahanian2013-07-315-7/+39
| | | | | | | retainable pointer is passed to an audited CF function expecting CF type. // rdar://14569171 llvm-svn: 187543
* Optimize Host::GetThreadName() to read from /proc/$TID per Matt's suggestion.Michael Sartain2013-07-311-27/+10
| | | | | CR: mkopec llvm-svn: 187542
* Option parsing tables: pick up AliasArgs from the OPTION macro.Hans Wennborg2013-07-314-12/+24
| | | | | | | | | This depends on LLVM r187537. The SUPPORT_ALIASARGS macro will be removed once all option parsing clients have been updated. llvm-svn: 187541
* clang-format: Add more options to namespace indentation.Daniel Jasper2013-07-315-12/+88
| | | | | | | | | | | | | With this patch, clang-format can be configured to: * not indent in namespace at all (former behavior). * indent in namespace as in other blocks. * indent only in inner namespaces (as required by WebKit style). Also fix alignment of access specifiers in WebKit style. Patch started by Marek Kurdej. Thank you! llvm-svn: 187540
* [PECOFF][Driver] Rewrite the tablegen def file using multiclass to remove ↵Rui Ueyama2013-07-311-49/+35
| | | | | | duplicates. llvm-svn: 187539
* Option parsing tables: pick up AliasArgs from the OPTION macro.Hans Wennborg2013-07-314-6/+14
| | | | | | | | | This depends on LLVM r187537. The SUPPORT_ALIASARGS macro will be removed once all option parsing clients have been updated. llvm-svn: 187538
* Option parsing: add support for alias arguments.Hans Wennborg2013-07-317-8/+82
| | | | | | | | | | | | | | | | | | This makes option aliases more powerful by enabling them to pass along arguments to the option they're aliasing. For example, if we have a joined option "-foo=", we can now specify a flag option "-bar" to be an alias of that, with the argument "baz". This is especially useful for the cl.exe compatible clang driver, where many options are aliases. For example, this patch enables us to alias "/Ox" to "-O3" (-O is a joined option), and "/WX" to "-Werror" (again, -W is a joined option). Differential Revision: http://llvm-reviews.chandlerc.com/D1245 llvm-svn: 187537
* Remove dead #includes.Hans Wennborg2013-07-311-2/+0
| | | | llvm-svn: 187536
* 80-colNadav Rotem2013-07-311-9/+14
| | | | llvm-svn: 187535
* Revert "[PECOFF][Driver] Remove quotes from command line arguments."Rui Ueyama2013-07-312-32/+13
| | | | | | | | | | | | | | | This reverts commit r187390 because we should not handle argv's quotes ourselves. In Windows, unlike Unix, quotes are not processed by the shell. Instead the C startup routine parses it as described in http://msdn.microsoft.com/en-us/library/a1y7w461.aspx and pass the results to main(). So, at the time when the control reaches main(), quotes that should be removed has already been removed. We still need to handle quotes in the response file and in .drectve section ourselves. That will be addressed in different patches. llvm-svn: 187534
* Mark some tests as explicitly failing on clang/gcc as they pass on icc.Matt Kopec2013-07-313-6/+9
| | | | | | Also, rework the signed types test to check for signed or char type in the output as char is signed by default. llvm-svn: 187533
* ObjectiveC ARC: Do not issue bridge cast diagnostic whenFariborz Jahanian2013-07-314-8/+20
| | | | | | | | passing a retainable object arg to a CF audited function expecting a CF object type. Issue a normal type mismatch diagnostic. This is wip // rdar://14569171 llvm-svn: 187532
* comment typo.Andrew Trick2013-07-311-1/+1
| | | | llvm-svn: 187531
* Added the B9.3.19 SUBS PC, LR, #imm (Thumb2) system instruction.Kevin Enderby2013-07-314-0/+36
| | | | | | | | | | | While the .td entry is nice and all, it takes a pretty gross hack in ARMAsmParser::ParseInstruction() because of handling of other "subs" instructions to get it to match. Ran it by Jim Grosbach and he said it was about what he expected to make this work given the existing code. rdar://14214063 llvm-svn: 187530
* Implement constexpr (n3302) and fix operator *= and /=Marshall Clow2013-07-3114-104/+329
| | | | llvm-svn: 187529
* Fix declaring class template methods with an attributed typedefReid Kleckner2013-07-314-56/+74
| | | | | | | | | | | | | | This change unifies the logic for template instantiation of methods and functions declared with typedefs. It ensures that SubstFunctionType() always fills the Params out param with non-null ParmVarDecls or returns null. Reviewers: rsmith Differential Revision: http://llvm-reviews.chandlerc.com/D1135 llvm-svn: 187528
* clang-cl: add the /c, /W0 and /W1 optionsHans Wennborg2013-07-315-11/+32
| | | | | | | | | | This adds a few more clang-cl options. It also exposes two core clang options to the clang-cl mode: we need to be able to claim --driver_mode so it doesn't show up as unused in cl mode, and we need -### for tests. Differential Revision: http://llvm-reviews.chandlerc.com/D1232 llvm-svn: 187527
* Revert "R600: Non vector only instruction can be scheduled on trans unit"Tom Stellard2013-07-3129-245/+92
| | | | | | This reverts commit 98ce62780ea7185ba710868bf83c8077e8d7f6d6. llvm-svn: 187526
* Revert "TableGen: Enumerate Schedule Model too."Tom Stellard2013-07-312-12/+0
| | | | | | This reverts commit 2ca1e4a39c7e0d7a00e66ff5437c6d7ace2404a0. llvm-svn: 187525
* Revert "R600: Use SchedModel enum for is{Trans,Vector}Only functions"Tom Stellard2013-07-314-19/+23
| | | | | | This reverts commit 3f1de26cb5cc0543a6a1d71259a7a39d97139051. llvm-svn: 187524
* Fix lock hierarchy violation in Process (lock ordering of ThreadList mutex ↵Daniel Malea2013-07-311-0/+1
| | | | | | | | | | | | | | and StackFrameList mutex) - this fix ensures the ThreadList mutex is always locked before the StackFrameList mutex Situation where deadlock could occur (without this fix): Thread 1 is in Process::WillResume and locks the ThreadList mutex (on entry), and subsequently calls StackFrameList::Clear() which locks the StackFrameList mutex. Meanwhile, thread 2 is in Process::RunThreadPlan and calls Thread::SetSelectedFrame() (which locks the StackFrameList mutex) before calling GetSelectedThread (which attempts to lock the ThreadList mutex) In my testing on both Linux and Mac OS X, I was unable to reproduce any hangs with this patch applied. llvm-svn: 187522
* A few small cleanups to r187504. Thanks to dblaikie for the assist.Kaelyn Uhrain2013-07-313-8/+21
| | | | llvm-svn: 187521
* Add the LD_LIBRARY_PATH to target.env-vars for tests expecting libimf.so ↵Matt Kopec2013-07-313-3/+14
| | | | | | | | when testing with ICC. Patch from Andy Kaylor. llvm-svn: 187520
* Adds a test for 'target module dump symfile' to the LLDB suite.Ashok Thirumurthi2013-07-311-0/+4
| | | | | TODO: Improve coverage of SBTypeMember and of 'target module dump'. llvm-svn: 187519
* Backwards!Marshall Clow2013-07-311-2/+2
| | | | llvm-svn: 187518
* Implement n3469 - constexpr for chronoMarshall Clow2013-07-3110-30/+178
| | | | llvm-svn: 187517
* R600: Do not mergevector after a vector reg is usedVincent Lejeune2013-07-311-1/+10
| | | | | | | | | | If we merge vector when a vector is used, it will generate an artificial antidependency that can prevent 2 tex/vtx instructions to use the same clause and thus generate extra clauses that reduce performance. There is no test case as such situation is really hard to predict. llvm-svn: 187516
* R600: Avoid more than 4 literals in the same instruction group at schedulingVincent Lejeune2013-07-312-0/+73
| | | | llvm-svn: 187515
* R600: Non vector only instruction can be scheduled on trans unitVincent Lejeune2013-07-3129-92/+245
| | | | llvm-svn: 187514
* R600: Don't mix LDS and non-LDS instructions in the same groupVincent Lejeune2013-07-311-0/+4
| | | | | | | | There are a lot of restrictions on instruction groups that contain LDS instructions, so for now we will be conservative and not packetize anything else with them. llvm-svn: 187513
* R600: Use SchedModel enum for is{Trans,Vector}Only functionsVincent Lejeune2013-07-314-23/+19
| | | | llvm-svn: 187512
* TableGen: Enumerate Schedule Model too.Vincent Lejeune2013-07-312-0/+12
| | | | llvm-svn: 187511
* R600: Remove predicated_break instVincent Lejeune2013-07-314-59/+7
| | | | | | | | | | | | | We were using two instructions for similar purpose : break and predicated break. Only predicated_break was emitted and it was lowered at R600ControlFlowFinalizer to JUMP;CF_BREAK;POP. This commit simplify the situation by making AMDILCFGStructurizer emit IF_PREDICATE;BREAK;ENDIF; instead of predicated_break (which is now removed). There is no functionality change. llvm-svn: 187510
* ObjectiveC arc: minor refactoring in my last patchFariborz Jahanian2013-07-311-2/+5
| | | | | | to avoid future false positives. // rdar://14569171 llvm-svn: 187509
* ObjectiveC arc: Introduce a new initialization kindFariborz Jahanian2013-07-313-11/+38
| | | | | | | | for parameters passed to CF audited functions to be used for better diagnostics. Current set but unused. // rdar://14569171 llvm-svn: 187508
* Mark additional ICC failing tests as expected fail.Matt Kopec2013-07-315-0/+6
| | | | llvm-svn: 187507
* Reject bitcasts between address spaces with different sizesMatt Arsenault2013-07-3111-36/+219
| | | | llvm-svn: 187506
* [PECOFF] Add a comment about .bss section.Rui Ueyama2013-07-311-0/+9
| | | | llvm-svn: 187505
* Improve the diagnostic experience, including adding recovery, forKaelyn Uhrain2013-07-316-15/+80
| | | | | | changing '->' to '.' when there is no operator-> defined for a class. llvm-svn: 187504
* ObjectiveC arc: Move check for type conversions in arcFariborz Jahanian2013-07-313-11/+21
| | | | | | | | out of ImpCastExprToType and to the caller site as appropriate. This is in prep. to do more work for // rdar://14569171 llvm-svn: 187503
* Fix a comment.Hans Wennborg2013-07-311-1/+1
| | | | llvm-svn: 187502
* Update break conditions test to have consistent behaviour on all test suite ↵Matt Kopec2013-07-312-2/+2
| | | | | | | | compilers. Also update comment in const variables test to reflect ICC status. llvm-svn: 187501
* Set an extra debug flag when testing with ICC so that it generates the ↵Matt Kopec2013-07-314-0/+16
| | | | | | correct debug info for inlined tests. llvm-svn: 187500
* Updated the LLDB rvalue reference test to cross-reference with a bugzilla ↵Ashok Thirumurthi2013-07-311-3/+10
| | | | | | | | | | | | report, provide more detail on compiler compatibility, and to illustrate that this is an issue with expression evaluation. - Note that clang doesn't emit DW_TAG_const_type, which might be okay if there's no such thing as a non-const rvalue reference. How about foo(make_int())? llvm-svn: 187499
* Dependence: Add DEBUG support.Tobias Grosser2013-07-311-0/+12
| | | | | Contributed-by: Star Tan <tanmx_star@yeah.net> llvm-svn: 187498
* [SystemZ] Implement isLegalAddressingMode()Richard Sandiford2013-07-313-3/+46
| | | | | | | | | | The loop optimizers were assuming that scales > 1 were OK. I think this is actually a bug in TargetLoweringBase::isLegalAddressingMode(), since it seems to be trying to reject anything that isn't r+i or r+r, but it has no default case for scales other than 0, 1 or 2. Implementing the hook for z means that z can no longer test any change there though. llvm-svn: 187497
OpenPOWER on IntegriCloud