summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Added a memory.py module that contains a 'memfind' command which allows you ↵Greg Clayton2013-07-111-0/+181
| | | | | | to search memory for a byte pattern. llvm-svn: 186127
* Enable Mac OS X tests disabled due to llvm.org/pr16567Daniel Malea2013-07-111-9/+0
| | | | | | - thread count remains correct now that we use pthread_kill() instead of kill() to deliver signals llvm-svn: 186126
* Make CXXBaseSpecifier::getType return unqual type.Eli Friedman2013-07-112-1/+13
| | | | | | | | | | | Various pieces of code, like base initialization in Sema and RTTI IRGen, don't properly ignore qualifiers on base classes. Instead of auditing the whole codebase, just strip them off in the getter. (The type as written is still available in the TypeSourceInfo for code that cares.) Fixes PR16596. llvm-svn: 186125
* Improve TestConcurrentEvents.pyDaniel Malea2013-07-112-86/+126
| | | | | | | | | | - code cleanup, improved reporting when failures take place - ensure known thread is interrupted by using pthread_kill() instead of kill() in the signal worker thread - above should avoid llvm.org/pr16567 on Mac OS X (though kill() could still cause threads to pop out of existance temporarily) - added an additional check that all threads have exited after worker threads are all join()ed - logged llvm.org/pr16603 for the new Linux bug discovered llvm-svn: 186124
* Sync SmallBitVector with BitVector. Add unit tests for the missing methods.Benjamin Kramer2013-07-112-0/+70
| | | | llvm-svn: 186123
* Tweaks to the Python reference and example command to use the preferred ↵Enrico Granata2013-07-112-6/+6
| | | | | | print style and the (finally available :-) SetError API llvm-svn: 186122
* Fixed up comments in TargetLowering.h to conform to the LLVM Style Guide.Michael Gottesman2013-07-111-682/+613
| | | | llvm-svn: 186121
* clang-format: Fix bug concerning the alignment of "}".Daniel Jasper2013-07-112-1/+8
| | | | | | | | | | | | | | | | Before: int i; // indented 2 space more than clang-format would use. SomeReturnType // clang-format invoked on this line. SomeFunctionMakingLBraceEndInColumn80() { } // This is the indent clang-format would prefer. After: int i; // indented 2 space more than clang-format would use. SomeReturnType // clang-format invoked on this line. SomeFunctionMakingLBraceEndInColumn80() { } llvm-svn: 186120
* In response to dblaikie's comment on r186035, replacing theAdrian Prantl2013-07-111-136/+163
| | | | | | | | (reduced LLVM IR) + (full source in comment) with the (full LLVM IR) + (reduced src in comment) llvm-svn: 186119
* Add tests for the before and after modifiers.Rafael Espindola2013-07-111-0/+20
| | | | llvm-svn: 186118
* clang-format: Break before trailing annotations.Daniel Jasper2013-07-112-2/+12
| | | | | | | | | | | | | | (if they are not function-like). Before: SomeFunction(aaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaa) OVERRIDE; After: SomeFunction(aaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaa) OVERRIDE; llvm-svn: 186117
* Remove an argument that we dont use anymore.Nadav Rotem2013-07-111-15/+12
| | | | llvm-svn: 186116
* clang-format: Avoid line breaks before the first <<.Daniel Jasper2013-07-113-10/+48
| | | | | | | | | | | | | | | | | This puts a slight penalty on the linebreak before the first "<<", so that clang-format generally tries to keep things on the first line. User feedback has shown that this is generally desirable. Before: llvm::outs() << "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa =" << aaaaaaaaaaaaaaaaaaaaaaaaaaa; After: llvm::outs() << "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa =" << aaaaaaaaaaaaaaaaaaaaaaaaaaa; llvm-svn: 186115
* Adds methods to ObjectFileELF to access data in ELF segmentsAshok Thirumurthi2013-07-112-1/+40
| | | | | | | | in preparation to add support for ELF core files. Patch by Samuel Jacob! llvm-svn: 186114
* Use %llu to print a 64 bit number. Should fix the ARM bots.Rafael Espindola2013-07-111-1/+1
| | | | llvm-svn: 186113
* Fix unhandled SIGTRAP signal on Linux causing assertion.Matt Kopec2013-07-111-0/+7
| | | | llvm-svn: 186112
* Restore warning to its original text whenFariborz Jahanian2013-07-112-3/+3
| | | | | | | certain familiy of methods have the wrong type. // rdar://14408244 llvm-svn: 186111
* Add a test for llvm-ar's m operation.Rafael Espindola2013-07-111-0/+30
| | | | llvm-svn: 186110
* Fix a veritable conucopia of bugs in the readdir_r interceptors.Chandler Carruth2013-07-114-49/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First, the reason I came here: I forgot to look at readdir64_r which had the exact same bug as readdir_r. However, upon applying the same quick-fix and testing it I discovered that it still didn't work at all. As a consequence, I spent some time studying the code and thinking about it and fixed several other problems. Second, the code was checking for a null entry and result pointer, but there is no indication that null pointers are viable here. Certainly, the spec makes it extremely clear that there is no non-error case where the implementation of readdir_r fails to dereference the 'result' pointer and store NULL to it. Thus, our checking for a non-null 'result' pointer before reflecting that write in the instrumentation was trivially dead. Remove it. Third, the interceptor was marking the write to the actual dirent struct by looking at the entry pointer, but nothing in the spec requires that the dirent struct written is actually written into the entry structure provided. A threadlocal buffer would be just as conforming, and the spec goes out of its way to say the pointer to the *actual* result dirent struct is stored into *result, so *that* is where the interceptor should reflect a write occuring. This also obviates the need to even consider whether the 'entry' parameter is null. Fourth, I got to the bottom of why nothing at all worked in readdir64_r -- the interceptor structure for dirent64 was completely wrong in that it was the same as dirent. I fixed this struct to be correct (64-bit inode and 64-bit offset! just a 64-bit offset isn't enough!) and added several missing tests for the size and layout of this struct. llvm-svn: 186109
* PPC: Add some missing V_SET0 patternsHal Finkel2013-07-112-2/+33
| | | | | | | | | | We had patterns to match v4i32 immAllZerosV -> V_SET0, but not patterns for v8i16 (which occurs in the test case) or v16i8. The same was true for V_SETALLONES (so I added the associated patterns for those as well). Another bug found by llvm-stress. llvm-svn: 186108
* indvars: Improve LFTR by eliminating truncation when comparing against a ↵Andrew Trick2013-07-112-4/+48
| | | | | | | | | | | | | | | | | constant. Patch by Michele Scandale! Adds a special handling of the case where, during the loop exit condition rewriting, the exit value is a constant of bitwidth lower than the type of the induction variable: instead of introducing a trunc operation in order to match correctly the operand types, it allows to convert the constant value to an equivalent constant, depending on the initial value of the induction variable and the trip count, in order have an equivalent comparison between the induction variable and the new constant. llvm-svn: 186107
* Simplify GetBuiltinNames by hoising the NoBuiltins argument out of it.Eli Bendersky2013-07-113-9/+8
| | | | llvm-svn: 186106
* ObjectiveC arc[qoi]: When due to change of certain methods'Fariborz Jahanian2013-07-115-7/+60
| | | | | | | | result type, a diagnostic being issued, issue a 'note' mentioning reason behind the unexpected warning. // rdar://14121570. llvm-svn: 186105
* Fix "source list -n printf" on Linux (printf is symbol alias for __printf)Michael Sartain2013-07-114-30/+166
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1109 llvm-svn: 186104
* [sanitizer] Remove optional arguments from clone() invocation.Sergey Matveev2013-07-111-2/+2
| | | | | | Unbreaks compilation on older systems. Patch by Andy Jost. llvm-svn: 186103
* PPCDAGToDAGISel::isRunOfOnes should return false on zeroHal Finkel2013-07-112-1/+31
| | | | | | | | | | | | This fixes a bug (found by csmith) at -O0 where we attempt to create a RLWIMI with an out-of-range operand. Most uses of the isRunOfOnes function are guarded by a condition that the value is not zero. This was not true in two places, and in both places a zero input would result in an out-of-rage MB value (= 32). To fix this, isRunOfOnes returns false on a zero input (and I've remove one now-redundant guard). llvm-svn: 186101
* Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector ↵Craig Topper2013-07-1111-26/+26
| | | | | | size. llvm-svn: 186098
* Add back code for supporting old mingw versions. Should bring the bots back.Rafael Espindola2013-07-111-3/+13
| | | | llvm-svn: 186096
* Don't use a potentially expensive shift if all we want is one set bit.Benjamin Kramer2013-07-114-6/+6
| | | | | | No functionality change. llvm-svn: 186095
* InsertBefore is the same as AddBefore. Delete it.Rafael Espindola2013-07-111-5/+4
| | | | llvm-svn: 186094
* cpp11-migrate: Add missing file headers in unit testsEdwin Vane2013-07-113-0/+27
| | | | | | Differential: http://llvm-reviews.chandlerc.com/D1124 Author: Guillaume Papin <guillaume.papin@epitech.eu> llvm-svn: 186093
* Looks like some versions of mingw don't have errno_t. Use int.Rafael Espindola2013-07-111-1/+1
| | | | llvm-svn: 186092
* Use move semantics if possible to construct ConstantRanges.Benjamin Kramer2013-07-112-7/+16
| | | | | | | Arithmetic on ConstantRanges creates a lot of large temporary APInts that benefit from move semantics. llvm-svn: 186091
* Fix a FIXME about the format and add a test.Rafael Espindola2013-07-114-41/+44
| | | | | | | While at it, use strftime on Unix too and use the thread safe versions of localtime. llvm-svn: 186090
* Bill Fisher: This patch fixes a less likely case where '\b' can back up into ↵Howard Hinnant2013-07-112-2/+66
| | | | | | | | invalid memory, when driven by a regex_iterator (for case 1, see r185273 or http://llvm.org/bugs/show_bug.cgi?id=16240) The attached test program also supplies a test for the case 1 fix in r185273. llvm-svn: 186089
* LoopVectorize: Vectorize all accesses in address space zero with unit strideArnold Schwaighofer2013-07-112-8/+77
| | | | | | | | | | | We can vectorize them because in the case where we wrap in the address space the unvectorized code would have had to access a pointer value of zero which is undefined behavior in address space zero according to the LLVM IR semantics. (Thank you Duncan, for pointing this out to me). Fixes PR16592. llvm-svn: 186088
* Improve detection of trailing return types.Daniel Jasper2013-07-112-1/+5
| | | | | | | | | | | | Trailing return types can only occur in declaration contexts. Before: void f() { auto a = b -> c(); } After: void f() { auto a = b->c(); } llvm-svn: 186087
* Add stub GetThreadName for FreeBSD, missed in r186033.Ed Maste2013-07-111-0/+7
| | | | | | | On FreeBSD inferior thread names are available through ptrace, so we won't use Host::GetThreadName anyway. llvm-svn: 186086
* Fix indentation problem for comments in call chainsDaniel Jasper2013-07-112-1/+5
| | | | | | | | | | | | | | Before: SomeObject // Calling someFunction on SomeObject .someFunction(); After: SomeObject // Calling someFunction on SomeObject .someFunction(); llvm-svn: 186085
* Merge these tests.Rafael Espindola2013-07-115-35/+16
| | | | llvm-svn: 186084
* Use a more unique name to avoid conflicting with directory.ll tests when runningRafael Espindola2013-07-111-19/+19
| | | | | | in parallel. llvm-svn: 186083
* Add a test for llvm-ar's 'd' operation.Rafael Espindola2013-07-111-0/+30
| | | | llvm-svn: 186082
* Add tests for the 'x' operation.Rafael Espindola2013-07-111-0/+20
| | | | llvm-svn: 186081
* Remove the 'N' modifier from llvm-ar.Rafael Espindola2013-07-111-45/+11
| | | | | | | | * It is not present on OS X. * It is untested. * It is not needed for using ar in a build system. llvm-svn: 186080
* Delete dead code.Rafael Espindola2013-07-111-3/+0
| | | | llvm-svn: 186079
* Remove support for truncating names in archives.Rafael Espindola2013-07-113-42/+9
| | | | | | | | | | * All systems we support have some form of long name support. * The options has different names and semantics in different implementations ('f' on gnu, 'T' on OS X), which makes it unlikely it is normally used on build systems. * It was completely untested. llvm-svn: 186078
* Keep trailing annotations close to their argument.Daniel Jasper2013-07-112-0/+6
| | | | | | | | | | | | Before: bool aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa GUARDED_BY( aaaaaaaaaaaa); After: bool aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa GUARDED_BY(aaaaaaaaaaaa); llvm-svn: 186077
* Sync llvm-ar's help string with the options it supports.Rafael Espindola2013-07-111-3/+0
| | | | llvm-svn: 186076
* Reduce the number of indirections in the attributes implementation.Benjamin Kramer2013-07-112-178/+131
| | | | | | | | | | | - Coallocate entires for AttributeSetImpls and Nodes after the class itself. - Remove mutable iterators from immutable classes. - Remove unused context field from AttributeImpl. - Derive Enum/Align/String attribute implementations from AttributeImpl instead of having a whole new inheritance tree for them. - Derive AlignAttributeImpl from EnumAttributeImpl. llvm-svn: 186075
* [SystemZ] Add testcase missing from r186073Richard Sandiford2013-07-111-0/+266
| | | | llvm-svn: 186074
OpenPOWER on IntegriCloud