summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add DW_AT_GNU_odr_signature to the set of dwarf attributes.Eric Christopher2013-07-142-0/+3
| | | | llvm-svn: 186296
* Collapse temporary variable into call.Eric Christopher2013-07-141-4/+2
| | | | llvm-svn: 186295
* Reformat line.Eric Christopher2013-07-141-2/+1
| | | | llvm-svn: 186294
* Move BlockLiteralGeneric earlier in CGDebugInfo and removeEric Christopher2013-07-142-8/+4
| | | | | | | BlockLiteralGenericSet and replace with a call to isType() on the BlockLiteralGeneric. llvm-svn: 186293
* Update a few comments and reformat a decl for clarity.Eric Christopher2013-07-141-3/+4
| | | | llvm-svn: 186292
* Use conventional syntax for branches.Anton Korobeynikov2013-07-143-4/+4
| | | | | | Patch by Job! llvm-svn: 186291
* Correct inaccurate statement in FileCheck docs.Stephen Lin2013-07-141-1/+2
| | | | llvm-svn: 186290
* ScopDetect: clang-formatTobias Grosser2013-07-141-4/+4
| | | | llvm-svn: 186289
* Dependences: Use ostream printer to print analysis outputTobias Grosser2013-07-143-11/+17
| | | | llvm-svn: 186288
* Replace C++0x in a comment with C++11Craig Topper2013-07-141-1/+1
| | | | llvm-svn: 186287
* Change cxx0x to cxx11 in diagnostic name.Craig Topper2013-07-141-1/+1
| | | | llvm-svn: 186286
* Change cxx0x to cxx11 in diagnostic name.Craig Topper2013-07-141-1/+1
| | | | llvm-svn: 186285
* Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector ↵Craig Topper2013-07-142-3/+3
| | | | | | size. llvm-svn: 186284
* Properly lower jump tables on MSP430. Patch by Job Noorman!Anton Korobeynikov2013-07-142-7/+7
| | | | llvm-svn: 186283
* The archive update test has a subtle race condition in it: if the testChandler Carruth2013-07-141-7/+15
| | | | | | | | | | | | | | | | | | is executed within the same second as the inputs for the test are checked out from the source tree, it will fail to update due to being below the resolution of the 'mtime' test used. Now, this may seem improbably to you... ok, maybe *really* improbable, but consider a system which does distributed execution of tests by shipping their inputs to another machine and runs them. That might cause the mtime to be quite recent during the test run. ;] Instead, create two files directly in the test (allowing all platforms to see the problem) and add either a use of the 'touch' command that forces one mtime to some time quite a bit in the past, or it sleeps for just over a second to be outside of the precision window. llvm-svn: 186282
* Support: No need to comment __isl_keepTobias Grosser2013-07-141-10/+9
| | | | llvm-svn: 186281
* Mass update to CodeGen tests to use CHECK-LABEL for labels corresponding to ↵Stephen Lin2013-07-14937-8028/+8028
| | | | | | | | | | | | | | | | | | | | | | | | | | function definitions for more informative error messages. No functionality change and all updated tests passed locally. This update was done with the following bash script: find test/CodeGen -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc.*debug" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_-]*\):\( *\)$FUNC: *\$/;\1\2-LABEL:\3$FUNC:/g" $TEMP done sed -i '' "s/;\(.*\)-LABEL-LABEL:/;\1-LABEL:/" $TEMP sed -i '' "s/;\(.*\)-NEXT-LABEL:/;\1-NEXT:/" $TEMP sed -i '' "s/;\(.*\)-NOT-LABEL:/;\1-NOT:/" $TEMP sed -i '' "s/;\(.*\)-DAG-LABEL:/;\1-DAG:/" $TEMP mv $TEMP $NAME fi done llvm-svn: 186280
* Make these tests more robust against IRgen choosing to emit more named metadata.Richard Smith2013-07-146-93/+92
| | | | llvm-svn: 186279
* Delete a test that is checking badly for a point bug that Clang never had ↵Richard Smith2013-07-141-12/+0
| | | | | | (and that spuriously fails with modules enabled). llvm-svn: 186278
* SLPVectorizer: change the order in which we search for vectorization ↵Nadav Rotem2013-07-141-4/+4
| | | | | | candidates. Do stores first and PHIs second. llvm-svn: 186277
* Fix build by replacing '>>' with '> >'Tobias Grosser2013-07-141-7/+5
| | | | llvm-svn: 186276
* Add missing include guards into headers in lib/Headers. While it may appearRichard Smith2013-07-144-0/+19
| | | | | | | | | | | | | | | | that these headers should not be included more than once, they are in fact included twice when building our builtins module (in order for it to generate submodules for them), and without this, any modular build enabling AVX and including any builtin header fails. Testing this is tricky because including any of these headers in a modular build is liable to fail, due to unrelated builtin headers in the same module including headers which might not be available on the system running the tests. Suggestion on that front are welcome (but we're getting close to being able to run a buildbot that has modules enabled for all tests, which would nicely solve the testing problem). llvm-svn: 186275
* Use SmallVectorImpl& instead of SmallVector to avoid repeating small vector ↵Craig Topper2013-07-1461-222/+227
| | | | | | size. llvm-svn: 186274
* Remove a bunch of old SCEVExpander FIXME's for preserving NoWrap.Andrew Trick2013-07-141-17/+11
| | | | | | | | | | | | | | | The great thing about the SCEVAddRec No-Wrap flag (unlike nsw/nuw) is that is can be preserved while normalizing (reassociating and factoring). The bad thing is that is can't be tranfered back to IR, which is one of the reasons I don't like the concept of SCEVExpander. Sorry, I can't think of a direct way to test this, which is why these were FIXMEs for so long. I just think it's a good time to finally clean it up. llvm-svn: 186273
* Teach indvars to generate nsw/nuw flags when widening an induction variable.Andrew Trick2013-07-142-1/+35
| | | | | | Fixes PR16600. llvm-svn: 186272
* Fixup to r186268 and r186269: don't append -LABEL to CHECK-NOT. No ↵Stephen Lin2013-07-144-5/+5
| | | | | | functionality change. llvm-svn: 186271
* If an unimported submodule of an imported module contains a declaration of aRichard Smith2013-07-146-3/+32
| | | | | | | global allocation or deallocation function, that should not cause that global allocation or deallocation function to become unavailable. llvm-svn: 186270
* Catch more CHECK that can be converted to CHECK-LABEL in Transforms for ↵Stephen Lin2013-07-1463-301/+301
| | | | | | | | | | | | | | | | | | | | | | easier debugging. No functionality change. This conversion was done with the following bash script: find test/Transforms -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)define\([^@]*\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3define\4@$FUNC(/g" $TEMP done mv $TEMP $NAME fi done llvm-svn: 186269
* Update Transforms tests to use CHECK-LABEL for easier debugging. No ↵Stephen Lin2013-07-14444-2477/+2477
| | | | | | | | | | | | | | | | | | | | | | functionality change. This update was done with the following bash script: find test/Transforms -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3@$FUNC(/g" $TEMP done mv $TEMP $NAME fi done llvm-svn: 186268
* Modify two Transforms tests to explicitly check for full function names in ↵Stephen Lin2013-07-142-2/+2
| | | | | | | | some cases, rather than just a common prefix. No functionality change. (This is to avoid confusing a scripted mass update of these tests to use CHECK-LABEL) llvm-svn: 186267
* Serialization support for TagDecl::IsCompleteDefinitionRequiredDavid Blaikie2013-07-143-1/+7
| | | | | | Requested by Richard Smith in post-commit review of r186262 llvm-svn: 186266
* Initialize the "IsCompleteDefinitionRequired" field in the ASTContext ctorDavid Blaikie2013-07-131-10/+7
| | | | | | | | Introduced in r186262 & found by the hexagon buildbots (but owing to this being UB, that's random chance - so there's no additional test case here) llvm-svn: 186265
* Convert Windows to Unix line endings, no functionality change.Stephen Lin2013-07-133-217/+217
| | | | llvm-svn: 186264
* Add newlines at end of test files, no functionality changeStephen Lin2013-07-1310-10/+10
| | | | llvm-svn: 186263
* PR16214, PR14467: DebugInfo: use "RequireCompleteType" to decide when to ↵David Blaikie2013-07-1311-41/+69
| | | | | | | | | | | | | | | emit the full definition of a type in -flimit-debug-info This simplifies the core benefit of -flimit-debug-info by taking a more systematic approach to avoid emitting debug info definitions for types that only require declarations. The previous ad-hoc approach (3 cases removed in this patch) had many holes. The general approach (adding a bit to TagDecl and callback through ASTConsumer) has been discussed with Richard Smith - though always open to revision. llvm-svn: 186262
* Correctly classify pack expansions as NON_CANONICAL_UNLESS_DEPENDENTDavid Blaikie2013-07-135-3/+9
| | | | | | | | | | | Test coverage for non-dependent pack expansions doesn't demonstrate a failure prior to this patch (a follow-up commit improving debug info will cover this commit specifically) but covers a related hole in our test coverage. Reviewed by Richard Smith & Eli Friedman. llvm-svn: 186261
* Simplify getTypeInfoImpl handling of 'non-canonical unless dependent' types.David Blaikie2013-07-131-26/+4
| | | | | | | | | These types are not dependent in this context, so just look through the sugar. Review by Richard Smith & Eli Friedman. llvm-svn: 186260
* ScopInfo: Add getTupe() method to MemoryAccessTobias Grosser2013-07-132-18/+23
| | | | | | We also move the enum to UPPERCASE. llvm-svn: 186259
* Convert CodeGen/*/*.ll tests to use the new CHECK-LABEL for easier ↵Stephen Lin2013-07-13255-1492/+1492
| | | | | | | | | | debugging. No functionality change and all tests pass after conversion. This was done with the following sed invocation to catch label lines demarking function boundaries: sed -i '' "s/^;\( *\)\([A-Z0-9_]*\):\( *\)test\([A-Za-z0-9_-]*\):\( *\)$/;\1\2-LABEL:\3test\4:\5/g" test/CodeGen/*/*.ll which was written conservatively to avoid false positives rather than false negatives. I scanned through all the changes and everything looks correct. llvm-svn: 186258
* Revert "Revert "PR16540: ASTVector::insert(Context, Iter, Element) doesn't ↵David Blaikie2013-07-133-2/+27
| | | | | | | | | | | compile"" This reverts commit b18b043a5a37f76803d89467e46bcac286c0ecae. Reapply with fix for the configure+make build (missing include of ASTContext.h). llvm-svn: 186257
* LoopVectorizer: Disallow reductions whose header phi is used outside the loopArnold Schwaighofer2013-07-132-2/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If an outside loop user of the reduction value uses the header phi node we cannot just reduce the vectorized phi value in the vector code epilog because we would loose VF-1 reductions. lp: p = phi (0, lv) lv = lv + 1 ... brcond , lp, outside outside: usr = add 0, p (Say the loop iterates two times, the value of p coming out of the loop is one). We cannot just transform this to: vlp: p = phi (<0,0>, lv) lv = lv + <1,1> .. brcond , lp, outside outside: p_reduced = p[0] + [1]; usr = add 0, p_reduced (Because the original loop iterated two times the vectorized loop would iterate one time, but p_reduced ends up being zero instead of one). We would have to execute VF-1 iterations in the scalar remainder loop in such cases. For now, just disable vectorization. PR16522 llvm-svn: 186256
* Revert "PR16540: ASTVector::insert(Context, Iter, Element) doesn't compile"David Blaikie2013-07-133-29/+2
| | | | | | | | | This reverts commit r186253. This is failing to link under Configure+Make on the buildbots for reasons I don't immediately understand. llvm-svn: 186255
* Dependences: Add a couple of basic test casesTobias Grosser2013-07-131-0/+296
| | | | llvm-svn: 186254
* PR16540: ASTVector::insert(Context, Iter, Element) doesn't compileDavid Blaikie2013-07-133-2/+29
| | | | | | | | | Fix some uninstantiable code in ASTVector::insert. I've added a cheap-and-dirty compile test for this, because I don't have the time to figure out a nice way to get a real ASTContext to implement executable tests - but we probably should have them for this ADT. llvm-svn: 186253
* Reduce large list of macros to the primary platform macros. DistingiushJoerg Sonnenberger2013-07-131-20/+18
| | | | | | | between ELF (Linux, FreeBSD, NetBSD) and OSX as platform for the assembler dialect. llvm-svn: 186252
* Dependences: Clarify difference between value and memory based dependencesTobias Grosser2013-07-132-7/+17
| | | | | | | We make the option a clear choice between the two analysis types and add descriptions about the difference between the two. llvm-svn: 186251
* Convert a couple of grep tests to FileCheck.Benjamin Kramer2013-07-136-31/+109
| | | | llvm-svn: 186250
* Fixes a typo caught by Arthur O'DwyerFariborz Jahanian2013-07-131-2/+2
| | | | llvm-svn: 186249
* Small style improvementsTobias Grosser2013-07-133-6/+6
| | | | llvm-svn: 186248
* Only verify the length in archive test, we can't make assumptions on the ↵Benjamin Kramer2013-07-131-2/+2
| | | | | | | | spacing. And .* did just match about anything anyways. llvm-svn: 186246
OpenPOWER on IntegriCloud