summaryrefslogtreecommitdiffstats
path: root/llvm/test/Other
Commit message (Collapse)AuthorAgeFilesLines
...
* fix a pretty obvious typo. We test things before committing them, right?Chris Lattner2010-05-101-1/+1
| | | | llvm-svn: 103427
* Fix PR6875:David Greene2010-05-101-0/+6
| | | | | | | | | | | | | | | This includes a patch by Roman Divacky to fix the initial crash. Move the actual addition of passes from *PassManager::add to *PassManager::addImpl. That way, when adding printer passes we won't recurse infinitely. Finally, check to make sure that we are actually adding a FunctionPass to a FunctionPassManager before doing a print before or after it. Immutable passes are strange in this way because they aren't FunctionPasses yet they can be and are added to the FunctionPassManager. llvm-svn: 103425
* Add lint checks for invalid uses of memory.Dan Gohman2010-04-301-0/+18
| | | | llvm-svn: 102733
* Add several more lint checks.Dan Gohman2010-04-091-0/+21
| | | | llvm-svn: 100841
* Add a few more lint checks.Dan Gohman2010-04-081-0/+14
| | | | llvm-svn: 100825
* Add a -lint pass which checks for common sources of undefined or likelyDan Gohman2010-04-081-0/+31
| | | | | | unintended behavior. llvm-svn: 100798
* Constant-fold GEP-of-GEP into a single GEP.Dan Gohman2010-03-101-0/+31
| | | | llvm-svn: 98178
* Fix whitespace.Dan Gohman2010-03-101-6/+6
| | | | llvm-svn: 98173
* stop using anders-aaChris Lattner2010-03-011-58/+0
| | | | llvm-svn: 97492
* Teach the constant folder about union types.Dan Gohman2010-02-251-6/+48
| | | | llvm-svn: 97142
* Canonicalize sizeof and alignof on pointer types to a canonicalDan Gohman2010-02-101-7/+51
| | | | | | pointer type. llvm-svn: 95769
* Factor out alignof expression folding into a separate function andDan Gohman2010-02-021-0/+21
| | | | | | generalize it to handle more cases. llvm-svn: 95045
* Generalize target-independent folding rules for sizeof to handle moreDan Gohman2010-02-011-35/+314
| | | | | | | | | | | | | | | | | | | cases, and implement target-independent folding rules for alignof and offsetof. Also, reassociate reassociative operators when it leads to more folding. Generalize ScalarEvolution's isOffsetOf to recognize offsetof on arrays. Rename getAllocSizeExpr to getSizeOfExpr, and getFieldOffsetExpr to getOffsetOfExpr, for consistency with analagous ConstantExpr routines. Make the target-dependent folder promote GEP array indices to pointer-sized integers, to make implicit casting explicit and exposed to subsequent folding. And add a bunch of testcases for this new functionality, and a bunch of related existing functionality. llvm-svn: 94987
* Remove the folding ruleDan Gohman2010-01-281-0/+84
| | | | | | | | | | | | | | | | | getelementptr (i8* inttoptr (i64 1 to i8*), i32 -1) to inttoptr (i64 0 to i8*) from the VMCore constant folder. It didn't handle sign-extension properly in the case where the source integer is smaller than a pointer size. And, it relied on an assumption about sizeof(i8). The Analysis constant folder still folds these kinds of things; it has access to TargetData, so it can do them right. Add a testcase which tests that the VMCore constant folder doesn't miscompile this, and that the Analysis folder does fold it. llvm-svn: 94750
* -disable-output is no longer needed with -analyze.Dan Gohman2010-01-262-3/+3
| | | | llvm-svn: 94574
* fix bogus testChris Lattner2010-01-091-2/+2
| | | | llvm-svn: 93069
* Delete useless trailing semicolons.Dan Gohman2010-01-053-3/+3
| | | | llvm-svn: 92740
* Update these tests to match what Loop::print now prints.Dan Gohman2009-10-241-1/+1
| | | | llvm-svn: 85021
* Forbid arrays of function-type and structures with function-typed fields.Nick Lewycky2009-09-151-0/+6
| | | | | | | | | | While I'm there, change code that does: SomeTy == Type::getFooType(Context) into: SomeTy->getTypeID() == FooTyID to decrease the amount of useless type creation which may involve locking, etc. llvm-svn: 81846
* Eliminate more redundant llvm-as calls.Dan Gohman2009-09-114-9/+9
| | | | llvm-svn: 81540
* Change tests from "opt %s" to "opt < %s" so that opt doesn't see theDan Gohman2009-09-1112-12/+12
| | | | | | | | input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. llvm-svn: 81537
* Use opt -S instead of piping bitcode output through llvm-dis.Dan Gohman2009-09-082-2/+2
| | | | llvm-svn: 81257
* Change these tests to feed the assembly files to opt directly, insteadDan Gohman2009-09-0812-12/+12
| | | | | | of using llvm-as, now that opt supports this. llvm-svn: 81226
* Add new function attribute - noimplicitfloatDevang Patel2009-06-051-0/+4
| | | | | | | Update code generator to use this attribute and remove NoImplicitFloat target option. Update llc to set this attribute when -no-implicit-float command line option is used. llvm-svn: 72959
* Split the Add, Sub, and Mul instruction opcodes into separateDan Gohman2009-06-043-3/+3
| | | | | | | | | | | | | | | integer and floating-point opcodes, introducing FAdd, FSub, and FMul. For now, the AsmParser, BitcodeReader, and IRBuilder all preserve backwards compatability, and the Core LLVM APIs preserve backwards compatibility for IR producers. Most front-ends won't need to change immediately. This implements the first step of the plan outlined here: http://nondot.org/sabre/LLVMNotes/IntegerOverflow.txt llvm-svn: 72897
* Update call graph after inlining invoke.Devang Patel2009-03-311-0/+31
| | | | | | Patch by Jay Foad. llvm-svn: 68120
* Update another test for the LoopInfo::print changes.Dan Gohman2009-02-271-1/+1
| | | | llvm-svn: 65598
* Testcase for PR2894.Duncan Sands2008-10-151-0/+7
| | | | llvm-svn: 57604
* Remove interfaces implemented by dead pass from the list of available passes.Devang Patel2008-10-061-0/+11
| | | | | | Patch By Matthijs Kooijman. llvm-svn: 57202
* Rationalize the names of passes that print information:Duncan Sands2008-09-232-2/+2
| | | | | | | | | | | | | | | | | -callgraph => print-callgraph -callscc => print-callgraph-sccs -cfgscc => print-cfg-sccs -externalfnconstants => print-externalfnconstants -print => print-function -print-alias-sets (no change) -print-callgraph => dot-callgraph -print-cfg => dot-cfg -print-cfg-only => dot-cfg-only -print-dom-info (no change) -printm => print-module -printusedtypes => print-used-types llvm-svn: 56487
* Teach -callgraph to always print the callgraph (as theDuncan Sands2008-09-191-1/+1
| | | | | | | | description says it does), not just when -analyze is used as well. This means printing to stderr, so adjust some tests. llvm-svn: 56337
* Remove GCSE and LoadVN from the testsuite.Owen Anderson2008-08-161-1/+1
| | | | llvm-svn: 54832
* The pass manager is not able to schedule -loop-deletion -loop-index-split.Devang Patel2008-08-141-0/+5
| | | | | | | | | | | The loop-deletion pass does not preserve dom frontier, which is required by loop-index-split. When the PM checks dom frontier for loop-index-split, it has already verified that lcssa is availalble. However, new dom frontier forces new loop pass manager, which does not have lcssa yet. The PM should recheck availability of required analysis passes in such cases. llvm-svn: 54805
* Test this differently: I saw this test failDuncan Sands2008-07-281-1/+1
| | | | | | | | | because opt exited while llvm-as was still writing to the pipe, causing it to get a SIGPIPE. It seems best to change things to avoid the race altogether. llvm-svn: 54138
* Put CPPBackend tests into their own directory and run them only if they'reBill Wendling2008-07-101-7/+0
| | | | | | supported. llvm-svn: 53427
* Let some more tests ignore expected output on stderr.Matthijs Kooijman2008-06-102-2/+2
| | | | | | | | | Also, use > %t instead of -o %t for output in one test since that also works when %t already exists. This fixes 6 testcases. llvm-svn: 52178
* Change packed struct layout so that field sizesDuncan Sands2008-06-041-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | are the same as in unpacked structs, only field positions differ. This only matters for structs containing x86 long double or an apint; it may cause backwards compatibility problems if someone has bitcode containing a packed struct with a field of one of those types. The issue is that only 10 bytes are needed to hold an x86 long double: the store size is 10 bytes, but the ABI size is 12 or 16 bytes (linux/ darwin) which comes from rounding the store size up by the alignment. Because it seemed silly not to pack an x86 long double into 10 bytes in a packed struct, this is what was done. I now think this was a mistake. Reserving the ABI size for an x86 long double field even in a packed struct makes things more uniform: the ABI size is now always used when reserving space for a type. This means that developers are less likely to make mistakes. It also makes life easier for the CBE which otherwise could not represent all LLVM packed structs (PR2402). Front-end people might need to adjust the way they create LLVM structs - see following change to llvm-gcc. llvm-svn: 51928
* sabre brings to my attention that the 'tr' suffix is also obsoleteGabor Greif2008-05-201-1/+1
| | | | llvm-svn: 51349
* Rename the last test with .llx extension to .ll, resolve duplicate test by ↵Gabor Greif2008-05-201-1/+1
| | | | | | renaming to isnan2. Now that no test has llx ending there is no need to search for them from dg.exp too. llvm-svn: 51328
* Fix tests due to llvm2cpp move to llc targetAnton Korobeynikov2008-04-231-1/+1
| | | | llvm-svn: 50191
* Keep track of analysis information inherited from Module pass manager.Devang Patel2008-03-201-0/+58
| | | | llvm-svn: 48576
* Fix a bug that caused opt and other tools to silently ignoreDan Gohman2008-02-231-0/+3
| | | | | | invalid command-line options. llvm-svn: 47523
* dead passChris Lattner2008-02-191-16/+0
| | | | llvm-svn: 47324
* Remove llvm-upgrade and update tests.Tanya Lattner2008-02-1911-137/+118
| | | | llvm-svn: 47297
* Fix PR2028Devang Patel2008-02-151-0/+5
| | | | llvm-svn: 47150
* New test.Devang Patel2007-09-101-0/+32
| | | | llvm-svn: 41799
* Convert tests using "| wc -l | grep ..." to use the count script.Dan Gohman2007-08-154-4/+4
| | | | llvm-svn: 41097
* Fix PR1539. Add LoopPassPrinter.Devang Patel2007-07-051-0/+2
| | | | llvm-svn: 37909
* Convert .cvsignore filesJohn Criswell2007-06-291-3/+0
| | | | llvm-svn: 37801
* Fix PR 1526.Devang Patel2007-06-281-0/+5
| | | | llvm-svn: 37780
OpenPOWER on IntegriCloud