Skip to content
  1. Apr 02, 2007
  2. Mar 22, 2007
  3. Mar 21, 2007
    • Reid Spencer's avatar
      For PR1243: · 20337a5e
      Reid Spencer authored
      Okay, really fix it this time. Make sure the CurFun.Linkage is set early
      and consolidate some duplicate code.
      
      llvm-svn: 35236
      20337a5e
    • Reid Spencer's avatar
      For PR1256: · 6ae04faf
      Reid Spencer authored
      Make Signedness information pervasive throughout all types and values.
      There is no easy way to get around this. Because the GEP instruction can
      index through an arbitrarily complex value structure, it is necessary to
      keep track of signedness information throughout that structure. This change
      makes Signedness a full class, capable of representing Signedness in
      arbitrarily shaped types. The class is then used throughout llvm-upgrade to
      track signedness and differentiate between globals, locals, and functions
      based on their signedness.
      
      For PR1243:
      This patch also removes bogus warnings about renaming internal globals. It
      now only emits such warnings when renaming non-internal globals because
      they may affect linkage.
      
      llvm-svn: 35234
      6ae04faf
  4. Mar 15, 2007
  5. Mar 14, 2007
  6. Feb 19, 2007
  7. Feb 15, 2007
    • Reid Spencer's avatar
      For PR1195: · 09575bac
      Reid Spencer authored
      Change use of "packed" term to "vector" in comments, strings, variable
      names, etc.
      
      llvm-svn: 34300
      09575bac
    • Reid Spencer's avatar
      For PR1195: · d84d35ba
      Reid Spencer authored
      Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and
      PackedTyID -> VectorTyID. No functional changes.
      
      llvm-svn: 34293
      d84d35ba
  8. Feb 13, 2007
  9. Feb 12, 2007
  10. Feb 11, 2007
  11. Feb 08, 2007
    • Reid Spencer's avatar
      For PR1187: · 91a76a44
      Reid Spencer authored
      Rename function scope names that conflict with basic block names.
      
      llvm-svn: 34048
      91a76a44
    • Reid Spencer's avatar
      For PR1187: · 47b6d12e
      Reid Spencer authored
      Always rename, never give a redef error. We could check for collapsed type
      planes and generate an error if that's not the cause, but the 99.9999
      percentile case will be that its the result of collapsed type planes. So,
      rather than doing an expensive check, just rename.
      
      llvm-svn: 34047
      47b6d12e
    • Reid Spencer's avatar
      For PR1187: · c10e463e
      Reid Spencer authored
      Some changes to get the smbd.ll test case working:
      1. Move the logic for CSRETCC->sret attribute out of the ResolveDefinitions
         code and into getExistingValue. This resolves it much earlier and works
         in function scope as well.
      2. Fix handling of CSRETCC->sret for the store instruction.
      3. Rewrite the code for handling renaming to factor in linkage types.
      4. Rename a structure filed for a PATypeInfo* so it doesn't get confused
         with a field for a Type*.
      
      llvm-svn: 34043
      c10e463e
    • Reid Spencer's avatar
      For PR1187: · 4095df45
      Reid Spencer authored
      When a naming conflict arises, allow internal linkage functions to be
      renamed without warning or error.
      
      llvm-svn: 34024
      4095df45
  12. Feb 05, 2007
    • Reid Spencer's avatar
      For PR411: · 1241d6d5
      Reid Spencer authored
      Adjust to changes in Module interface:
      getMainFunction() -> getFunction("main")
      getNamedFunction(X) -> getFunction(X)
      
      llvm-svn: 33922
      1241d6d5
    • Reid Spencer's avatar
      For PR411: · 3aaaa0b2
      Reid Spencer authored
      This patch replaces the SymbolTable class with ValueSymbolTable which does
      not support types planes. This means that all symbol names in LLVM must now
      be unique. The patch addresses the necessary changes to deal with this and
      removes code no longer needed as a result. This completes the bulk of the
      changes for this PR. Some cleanup patches will follow.
      
      llvm-svn: 33918
      3aaaa0b2
  13. Feb 04, 2007
    • Reid Spencer's avatar
      For PR1151: · d9f72984
      Reid Spencer authored
      Make llvm-upgrade valgrind clean. Deleting type instances is a really
      nasty thing to do to LLVM. This was a hold-over from the re-write.
      This fixes test/Assembler/2007-01-22-UpgradeTypeMapInvalidMemory.ll and
      potentially many other bugs.
      
      llvm-svn: 33858
      d9f72984
  14. Feb 02, 2007
    • Reid Spencer's avatar
      Changes to support making the shift instructions be true BinaryOperators. · 2341c22e
      Reid Spencer authored
      This feature is needed in order to support shifts of more than 255 bits
      on large integer types.  This changes the syntax for llvm assembly to
      make shl, ashr and lshr instructions look like a binary operator:
         shl i32 %X, 1
      instead of
         shl i32 %X, i8 1
      Additionally, this should help a few passes perform additional optimizations.
      
      llvm-svn: 33776
      2341c22e
  15. Jan 30, 2007
  16. Jan 29, 2007
    • Reid Spencer's avatar
      For PR1142: · e87c917a
      Reid Spencer authored
      When an unresolved definition is found, check to see if it is only unresolved
      because the csretcc was upgraded to the sret param attribute. Such changes
      change the function type and lead to unresolved definitions. In such cases, just
      cast the function to the type expected by the CallInst. That is, cast to the
      version of the function that has the sret param attribute.
      
      llvm-svn: 33623
      e87c917a
    • Reid Spencer's avatar
      Upgrade old csret calling convention into sret parameter attribute. · 8714f002
      Reid Spencer authored
      llvm-svn: 33614
      8714f002
  17. Jan 28, 2007
    • Anton Korobeynikov's avatar
      Merge error at my side. Fixed. · 15f3028b
      Anton Korobeynikov authored
      llvm-svn: 33601
      15f3028b
    • Anton Korobeynikov's avatar
      Drop CSRET CC · 4bca4d15
      Anton Korobeynikov authored
      llvm-svn: 33598
      4bca4d15
    • Reid Spencer's avatar
      For PR1137: · dfa78fba
      Reid Spencer authored
      When a value is found to have the same name as another, try harder to
      disambiguate when its a type plane collapse issue and when it isn't. We
      traverse the type to see if it contains an integer. If it does not then
      we issue the error because it can't be resulting from integer type planes
      collapsing. Otherwise we just rename it, even if that's a bit of overkill.
      
      llvm-svn: 33594
      dfa78fba
  18. Jan 26, 2007
    • Reid Spencer's avatar
      Make sure that an upgraded index is also inserted into the VIndices · 62b741dc
      Reid Spencer authored
      otherwise it gets ignored.
      
      This fixes test/CodeGen/X86/2006-05-11-InstrSched.ll
      
      Thanks to Evan Cheng for noticing this.
      
      llvm-svn: 33546
      62b741dc
    • Reid Spencer's avatar
      0bad131b
    • Reid Spencer's avatar
      Remove extraneous ; to make some versions of bison happy. · aecf935d
      Reid Spencer authored
      llvm-svn: 33541
      aecf935d
    • Reid Spencer's avatar
      Remove the SignedType class and other dead code. Improve comments. · 697ba1a5
      Reid Spencer authored
      llvm-svn: 33538
      697ba1a5
    • Reid Spencer's avatar
      For All These Bugs: · 00a7c7f8
      Reid Spencer authored
      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.
      
      llvm-svn: 33531
      00a7c7f8
  19. Jan 21, 2007
  20. Jan 15, 2007
    • Reid Spencer's avatar
      For PR1113: · 8307a54b
      Reid Spencer authored
      Increment the counter after the second use, not after the first use. This
      fixes PR1113.
      
      Also, rename some classes for simplicity and to more naturally be
      reminscient of LLVM 1.9. This in preparation for additional classes that
      will provide a scaled down model of the LLVM 1.9 IR.
      
      llvm-svn: 33226
      8307a54b
    • Reid Spencer's avatar
      Reorganize things a bit in preparation for rewrite. Although this looks · 04a03f20
      Reid Spencer authored
      like a lot, its really only two changes:
      
      1. Move stuff that should be private to .y out of the .h file.
      2. Make all semantic values pointers.
      
      This cleans up the silly destroy methods and changes them to delete. It
      also moves the TypeInfo and ValueInfo classes into the .y where we can
      modify them more readily because they have no clients any more.
      
      This shouldn't result in any functional changes in llvm-upgrade.
      
      llvm-svn: 33211
      04a03f20
  21. Jan 13, 2007
  22. Jan 12, 2007
Loading