summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use the simpler is_directory.Rafael Espindola2013-07-172-4/+2
| | | | llvm-svn: 186487
* Add simpler version of is_directory. It will be used in clang.Rafael Espindola2013-07-171-0/+7
| | | | llvm-svn: 186486
* Mark a method 'const' and another 'static'.Craig Topper2013-07-171-2/+2
| | | | llvm-svn: 186485
* Make a few more static string pointers constant.Craig Topper2013-07-171-8/+8
| | | | llvm-svn: 186484
* Don't fallback to copy + delete in rename.Rafael Espindola2013-07-171-11/+2
| | | | | | | | | Rename's documentation says "Files are renamed as if by POSIX rename()". and it is used for atomically updating output files from a temporary. Having rename fallback to a non atomic copy has the potential to hide bugs, like using a temporary file in /tmp instead of a unique name next to the final destination. llvm-svn: 186483
* Make constant string pointer into an array to remove a pointer lookup for ↵Craig Topper2013-07-172-2/+2
| | | | | | every access. llvm-svn: 186482
* raw_ostream.cpp: Introduce <fcntl.h> to let O_BINARY provided. Or, ↵NAKAMURA Takumi2013-07-172-3/+5
| | | | | | | | llvm::outs() would be set to O_TEXT by default. llvm/test/Object/check_binary_output.ll is expected to pass on win32. llvm-svn: 186480
* SLPVectorizer: Accelerate the isConsecutive check by replacing the ↵Nadav Rotem2013-07-171-10/+5
| | | | | | subtraction of the two values with a simple SCEV expression that adds the offset to one of the pointers that we compare. llvm-svn: 186479
* PPC: Implement base pointer and stack realignmentHal Finkel2013-07-176-41/+391
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This builds on some frame-lowering code that has existed since 2005 (r24224) but was disabled in 2008 (r48188) because it needed base pointer support to function correctly. This implementation follows the strategy suggested by Dale Johannesen in r48188 where the following comment was added: This does not currently work, because the delta between old and new stack pointers is added to offsets that reference incoming parameters after the prolog is generated, and the code that does that doesn't handle a variable delta. You don't want to do that anyway; a better approach is to reserve another register that retains to the incoming stack pointer, and reference parameters relative to that. And now we do exactly that. If we don't need a frame pointer, then we use r31 as a base pointer. If we do need a frame pointer, then we use r30 as a base pointer. The base pointer retains the value of the stack pointer before it was decremented in the prologue. We then use the base pointer to resolve all negative frame indicies. The basic scheme follows that for base pointers in the X86 backend. We use a base pointer when we need to dynamically realign the incoming stack pointer. This currently applies only to static objects (dynamic allocas with large alignments, and base-pointer support in SjLj lowering will come in future commits). llvm-svn: 186478
* llvm/test/CodeGen/X86/vec_setcc.ll: Add explicit ↵NAKAMURA Takumi2013-07-171-3/+3
| | | | | | -mtriple=x86_64-unknown-unknown to satisfy win32-targeted configuration. llvm-svn: 186477
* Move string pointer from being a static class member to just a static global ↵Craig Topper2013-07-172-7/+2
| | | | | | in the one file its needed in. llvm-svn: 186476
* simple plugin now works with Linux fix assert in SetPluginInfo implement ↵Michael Sartain2013-07-175-13/+76
| | | | | | | | Linux ePathTypeLLDBSystemPlugins and ePathTypeLLDBUserPlugins implement Linux Host::Backtrace and Host::GetEnvironment add .gnu_debugdata comment Differential Revision: http://llvm-reviews.chandlerc.com/D1159 llvm-svn: 186475
* More code conformance.Fariborz Jahanian2013-07-171-1/+1
| | | | llvm-svn: 186474
* ObjectiveC migrator: When adding conforming protocol,Fariborz Jahanian2013-07-173-1/+54
| | | | | | | only add outer-most conforming protocols as adding others are redundant. llvm-svn: 186473
* Add pointer format test for Windows.Howard Hinnant2013-07-161-1/+7
| | | | llvm-svn: 186472
* Avoid breaking non-trailing block comments.Alexander Kornienko2013-07-162-1/+8
| | | | | | | | | | | | | | | | Motivating example: // column limit -------------------> void ffffffffffff(int aaaaaa /* test */); Formatting before the patch: void ffffffffffff(int aaaaaa /* test */); Formatting after the patch: void ffffffffffff(int aaaaaa /* test */); llvm-svn: 186471
* Add getModuleFlag(StringRef Key) to query a module flag given Key.Manman Ren2013-07-163-11/+21
| | | | | | No functionality change. llvm-svn: 186470
* llvm/test/Object/ar-create.test: Relax a CHECK line to satisfy localized ↵NAKAMURA Takumi2013-07-161-1/+1
| | | | | | | | message catalogue. For example, 'No such file or directory' cannot be seen on Japanese version of msvcrt. llvm-svn: 186469
* llvm/test/Object/check_binary_output.ll: Mark it as XFAIL on Windows. ↵NAKAMURA Takumi2013-07-161-0/+3
| | | | | | Investigating. llvm-svn: 186468
* Follow coding convention in argument decl.Fariborz Jahanian2013-07-161-2/+2
| | | | llvm-svn: 186467
* flip the scev minus direction to simplify the code.Nadav Rotem2013-07-161-3/+3
| | | | llvm-svn: 186466
* SLPVectorizer: Improve the compile time of isConsecutive by adding a simple ↵Nadav Rotem2013-07-161-0/+18
| | | | | | | | constant-gep check before using SCEV. This check does not always work because not all of the GEPs use a constant offset, but it happens often enough to reduce the number of times we use SCEV. llvm-svn: 186465
* Make Expr::isConstantInitializer match IRGen.Eli Friedman2013-07-167-52/+95
| | | | | | | | | | Sema needs to be able to accurately determine what will be emitted as a constant initializer and what will not, so we get accurate errors in C and accurate -Wglobal-constructors warnings in C++. This makes Expr::isConstantInitializer match CGExprConstant as closely as possible. llvm-svn: 186464
* Give compiler-rt a chance to compile with mingw-w64.Anton Korobeynikov2013-07-162-0/+8
| | | | | | Patch by C. Bergström! llvm-svn: 186463
* [arcmt] Remove some dead code.Argyrios Kyrtzidis2013-07-162-28/+14
| | | | | | Patch by Rafael Espíndola. llvm-svn: 186462
* Related to r181161 - Indirect branches may not be the last branch in a basicLang Hames2013-07-161-0/+7
| | | | | | | | | | | | block. Blocks that have an indirect branch terminator, even if it's not the last terminator, should still be treated as unanalyzable. <rdar://problem/14437274> Reducing a useful regression test case is proving difficult - I hope to have one soon. llvm-svn: 186461
* ObjectiveC migrator. If a class implements a protocol'sFariborz Jahanian2013-07-163-9/+44
| | | | | | properties, then class conforms to that protocol. llvm-svn: 186460
* ARM: Add support for the Thumb2 PLI alternate literal form.Tilmann Scheller2013-07-162-0/+7
| | | | | | | | | | This adds an instruction alias to make the assembler recognize the alternate literal form: pli [PC, #+/-<imm>] See A8.8.129 in the ARM ARM (DDI 0406C.b). Fixes <rdar://problem/14403733>. llvm-svn: 186459
* Fix Rendezvous breakpoint to only be set once, resolve addr in ↵Michael Sartain2013-07-163-8/+43
| | | | | | | | BreakpointLocationList::FindByAddress Differential Revision: http://llvm-reviews.chandlerc.com/D1145 llvm-svn: 186458
* Fix typeos.Jason Molenda2013-07-161-3/+3
| | | | llvm-svn: 186457
* Don't break line comments with escaped newlines.Alexander Kornienko2013-07-163-2/+76
| | | | | | | | | | | | | | | | | | | | Summary: These can appear when comments contain command lines with quoted line breaks. As the text (including escaped newlines and '//' from consecutive lines) is a single line comment, we used to break it even when it didn't exceed column limit. This is a temporary solution, in the future we may want to support this case completely - at least adjust leading whitespace when changing indentation of the first line. Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D1146 llvm-svn: 186456
* clang-format: Improve handling of unterminated string literals.Daniel Jasper2013-07-164-29/+49
| | | | | | | Before, clang-format would simply eat these as they were recognized as whitespace. With this patch, they are mostly left alone. llvm-svn: 186454
* Update the examples for an API change.Rafael Espindola2013-07-161-1/+1
| | | | llvm-svn: 186453
* Fix crash on complex constant zero.Eli Friedman2013-07-162-3/+6
| | | | | | Fixes <rdar://problem/14442543>. llvm-svn: 186452
* Fix the build with clang and libstdc++4.7.Rafael Espindola2013-07-161-2/+2
| | | | llvm-svn: 186451
* Update for llvm API change.Rafael Espindola2013-07-161-1/+1
| | | | llvm-svn: 186450
* Update for llvm API change.Rafael Espindola2013-07-161-2/+2
| | | | llvm-svn: 186449
* Update for llvm API change.Rafael Espindola2013-07-1610-31/+25
| | | | llvm-svn: 186448
* Add a wrapper for open.Rafael Espindola2013-07-1627-119/+130
| | | | | | | This centralizes the handling of O_BINARY and opens the way for hiding more differences (like how open behaves with directories). llvm-svn: 186447
* Add tests for 'thread step out' for multithreaded programsDaniel Malea2013-07-163-0/+216
| | | | | | | | | - test with python API - test with command interpreter - test stepping a single (selected) thread - test stepping all threads in the program llvm-svn: 186446
* Finally, force the target for this test. Should unbreak non-x86 buildbots.Benjamin Kramer2013-07-161-3/+3
| | | | llvm-svn: 186445
* XFAIL this test on mingw.Rafael Espindola2013-07-161-0/+1
| | | | llvm-svn: 186444
* ObjectiveC migration: complete migrating classFariborz Jahanian2013-07-163-22/+118
| | | | | | | declaration to include list of protocols class conforms to. llvm-svn: 186443
* Label names also differ between platforms. Use a relaxed regex.Benjamin Kramer2013-07-161-4/+4
| | | | llvm-svn: 186442
* build lld unittests as part of lld-test targetNick Kledzik2013-07-161-0/+1
| | | | llvm-svn: 186441
* Fix Driver tests to check return value of parse(), simplify subclassing, and ↵Nick Kledzik2013-07-164-124/+126
| | | | | | remove unneeded instance variables llvm-svn: 186440
* Fix test not to fail when the target doesn't use leading underscores on symbols.Benjamin Kramer2013-07-161-18/+18
| | | | llvm-svn: 186439
* FileCheckize test/Driver/immediate-options.cHans Wennborg2013-07-161-6/+14
| | | | llvm-svn: 186438
* Fix formatting. No functional change.Craig Topper2013-07-161-7/+5
| | | | llvm-svn: 186437
* Cleanup testing case by using a shorter name for types.Manman Ren2013-07-161-39/+39
| | | | llvm-svn: 186436
OpenPOWER on IntegriCloud