aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix problems with programs that prototype printf to something unusualChris Lattner2003-09-152-4/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8538 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor cleanups, give credit, remove code that should not be necessary, andChris Lattner2003-09-151-28/+5
| | | | | | | was a "major hack" :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8524 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typos in comments.Brian Gaeke2003-09-152-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8523 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial checkin of the Setjmp/Longjmp lowering/transformation pass,Chris Lattner2003-09-151-0/+501
| | | | | | | contributed by the masterful Bill Wendling! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8520 91177308-0d34-0410-b5e6-96231b3b80d8
* Ugh, a bug fix needed because of the bug in the CallGraph codeChris Lattner2003-09-151-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8519 91177308-0d34-0410-b5e6-96231b3b80d8
* These two conditions are not exclusive!!Chris Lattner2003-09-151-3/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8518 91177308-0d34-0410-b5e6-96231b3b80d8
* Make the print output more usefulChris Lattner2003-09-151-3/+7
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8517 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: PruneEH/2003-09-14-ExternalCall.llxChris Lattner2003-09-151-1/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8516 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix bug: Inline/2003-09-14-InlineValue.llChris Lattner2003-09-151-4/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8514 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a spello Misha made while fixing one of my appostrificationsChris Lattner2003-09-151-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8510 91177308-0d34-0410-b5e6-96231b3b80d8
* Make sure to cannonicalize loops before running indvar simplifyChris Lattner2003-09-121-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8502 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not return success after checking only the FIRST USE of a gep instruction.Chris Lattner2003-09-121-3/+7
| | | | | | | | | Instead, check all uses. This fixes bug: ScalarRepl/2003-09-12-IncorrectPromote.ll This also fixes the miscompilation of Ptrdist/bc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8493 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor optimization efficiency improvement:Chris Lattner2003-09-121-7/+9
| | | | | | | | - Run mem2reg promotion first - Only rerun passes if the previous thing changed something git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8490 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed spelling and grammar.Misha Brukman2003-09-1114-57/+57
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8489 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify codeChris Lattner2003-09-111-9/+6
| | | | | | | Implement InstCombine/mul.ll:test9 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8488 91177308-0d34-0410-b5e6-96231b3b80d8
* Fixed spelling and grammar.Misha Brukman2003-09-1113-19/+19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8478 91177308-0d34-0410-b5e6-96231b3b80d8
* Apostrophes are only used for possession and quoting.Misha Brukman2003-09-111-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8473 91177308-0d34-0410-b5e6-96231b3b80d8
* Integrate functionality of the mem2reg pass directly into this pass to makeChris Lattner2003-09-111-7/+62
| | | | | | | the combination more effective git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8471 91177308-0d34-0410-b5e6-96231b3b80d8
* Renamed DominatorTree::Node::getNode() -> getBlock()Chris Lattner2003-09-117-20/+20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8469 91177308-0d34-0410-b5e6-96231b3b80d8
* Spell `definite' correctly.Misha Brukman2003-09-111-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8467 91177308-0d34-0410-b5e6-96231b3b80d8
* Spell `definitely' correctly.Misha Brukman2003-09-112-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8466 91177308-0d34-0410-b5e6-96231b3b80d8
* * Move include files from middle of file to the top where they belong, movingMisha Brukman2003-09-101-7/+5
| | | | | | | | | the #define up there too * Since we're including system headers, use the ones in include/llvm/Config * While we're here, use the canonical LLVM header ordering algorithm git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8463 91177308-0d34-0410-b5e6-96231b3b80d8
* Unwind instructions are intrinsically alive, just like returnsChris Lattner2003-09-101-3/+3
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8462 91177308-0d34-0410-b5e6-96231b3b80d8
* Rework dominator interfaces to handle changes in the post-dominanceChris Lattner2003-09-101-28/+47
| | | | | | | | construction. Now there may be multiple root blocks, and null is a special node used to mark the "virtual" exit node of a CFG. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8461 91177308-0d34-0410-b5e6-96231b3b80d8
* Rework post dominator information so that we do not have toChris Lattner2003-09-101-88/+97
| | | | | | | | | | unify all exit nodes of a function to compute post-dominance information. This does not work with functions that have both unwind and return nodes, because we cannot unify these blocks. The new implementation is better anyway. :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8460 91177308-0d34-0410-b5e6-96231b3b80d8
* Update for new UnifyFunction... APIChris Lattner2003-09-101-7/+7
| | | | | | | Remove using decl git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8458 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove #includeChris Lattner2003-09-102-2/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8457 91177308-0d34-0410-b5e6-96231b3b80d8
* Expand the pass to unify all of the unwind blocks as wellChris Lattner2003-09-101-5/+29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8456 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove a bunch of warnings from the CBE generated C codeChris Lattner2003-09-102-4/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8455 91177308-0d34-0410-b5e6-96231b3b80d8
* "the one true solution for compatibility with GCC 3.3+"Chris Lattner2003-09-102-6/+6
| | | | | | | ... or so I hope git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8454 91177308-0d34-0410-b5e6-96231b3b80d8
* Be a little more specific about what is begin generated. Only printChris Lattner2003-09-101-12/+12
| | | | | | | command line if VERBOSE=1 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8453 91177308-0d34-0410-b5e6-96231b3b80d8
* Only emit inter-field-padding if the amount of padding is != 0Chris Lattner2003-09-102-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8452 91177308-0d34-0410-b5e6-96231b3b80d8
* Make createVerifierPass return a FunctionPass *.Brian Gaeke2003-09-101-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8449 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove using declarationsChris Lattner2003-09-101-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8442 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix warning when _POSIX_MAPPED_FILES is already defined in unistd.hMisha Brukman2003-09-101-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8436 91177308-0d34-0410-b5e6-96231b3b80d8
* another trivial cleanupChris Lattner2003-09-101-3/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8435 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplification of trip counting machinery.Chris Lattner2003-09-101-73/+68
| | | | | | | | | | | - make sure to check the indvar type before anything else (efficiency) - Make sure to insert the 'add' into the program, even though it'll be dead - Wrap code at 80 columns - Other minor cleanups to reduce indentation level git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8434 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't explicitly use $SourceDir to find the tblgen files. This causes makeJohn Criswell2003-09-101-4/+4
| | | | | | | | | | | | | some confusion when trying to generate files (it probably couldn't tell that ./file and $(SourceDir)/file may be the same file). Now, just let VPATH find everything, and list the primary tblgen file first in the list of dependencies so that we can just use $< to reference it in the make rule. This should hopefully fix the nightly tester. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8433 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix spell-o'sChris Lattner2003-09-106-8/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8431 91177308-0d34-0410-b5e6-96231b3b80d8
* Spelling fixes. I think that "cannonical" is ok, but "canonical" appears toChris Lattner2003-09-101-21/+21
| | | | | | | be the canonical form for the word git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8430 91177308-0d34-0410-b5e6-96231b3b80d8
* Spelling fixesChris Lattner2003-09-101-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8429 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix up file headerChris Lattner2003-09-101-2/+4
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8428 91177308-0d34-0410-b5e6-96231b3b80d8
* clean up file header commentChris Lattner2003-09-101-5/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8427 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify some codeChris Lattner2003-09-101-8/+5
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8426 91177308-0d34-0410-b5e6-96231b3b80d8
* Spell `occurrence' correctly.Misha Brukman2003-09-092-61/+60
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8425 91177308-0d34-0410-b5e6-96231b3b80d8
* Updated to find source files using VPATH. This makes writing build rulesJohn Criswell2003-09-092-9/+18
| | | | | | | | | | | | much cleaner and easier. Labeled .td as a suffix for tblgen files in Makefile.rules. Modified build rules so that source files generated during the build are placed in the build directory and not the source directory (and not in a Debug directory). This makes the system cleaner and allows us to have a read-only source tree. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8424 91177308-0d34-0410-b5e6-96231b3b80d8
* Reverting back to the previous revision.John Criswell2003-09-091-1/+1
| | | | | | | | | | | We want to check for length 5 because we might get the "llvm." string as the name. That string is in the LLVM namespace and should be checked as such. We also don't have to worry about garbage data because (I believe) the string class will return a valid value. So, the switch statement will work and we don't have to worry about the code wandering into segfault land. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8419 91177308-0d34-0410-b5e6-96231b3b80d8
* Modified the check for intrinsic functions. All intrinsic functions have toJohn Criswell2003-09-091-1/+1
| | | | | | | | | be at least 6 characters, since something must follow the "llvm." string in the function name. This seems to fix an assertion failure with the SingleSource tests, too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8418 91177308-0d34-0410-b5e6-96231b3b80d8
* * Simplify printConstantValueOnly by moving the tail padding stuff directlyChris Lattner2003-09-092-130/+180
| | | | | | | | | | into the struct case. * Extend printConstantValueOnly to print .zero's if the initializer is zero * Delete dead isConstantFunctionPointerRef function * Emit the appropriate assembly for the various linkage types! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8417 91177308-0d34-0410-b5e6-96231b3b80d8
* Oops, look at the VOLATILE marker, not the opcodeChris Lattner2003-09-081-2/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8413 91177308-0d34-0410-b5e6-96231b3b80d8