For All These Bugs:
authorReid Spencer <rspencer@reidspencer.com>
Fri, 26 Jan 2007 08:18:34 +0000 (08:18 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 26 Jan 2007 08:18:34 +0000 (08:18 +0000)
commitefd53d57a6606bfe0549a7e4bd1f29c5582d5b75
tree74488649e9867b25e877fa85d2d049af9c782de5
parent26f238589f9bb372d24b6fb2bc32edbf046fd9ee
For All These Bugs:
PR645
PR761
PR1082
PR1122

Completely rewrite llvm-upgrade. This should be its final design. Any future
changes will use this same design.  The changes involve the following:

1. Make this work very much like the 1.9 AsmParser
2. Retain old upgrades dating back to release 1.2 time frame.
3. Merge in some of the upgrades between 1.9 and 2.0 (e.g. icmp/fcmp).
4. Attach a Signedness value (Signless, Unsigned, Signed) to every type,
   Value, Constant, Instruction, and list of those things in the Parser.
   Use these to make signedness decisions for instruction upgrades.
5. Implement unique name upgrade for function values and global values.
6. Identify rename cases that might cause problems and warn about them.
   For example: renaming a global variable with external linkage.
7. Generate a 2.0 IR using VMCore. This is necessary for numerous
   reasons and has the advantage that it never goes out of date.
8. Use the AsmPrinter to make the output nice.
9. Clean up error and warning messages from 1.9 form.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33531 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-upgrade/UpgradeInternals.h
tools/llvm-upgrade/UpgradeLexer.l
tools/llvm-upgrade/UpgradeParser.y