llvm/tools
Reid Spencer 2b8036e2c8 For PR1070:
Revise the upgrade parser to keep track of types more faithfully and use
this information to resolve name conflicts resulting from collapsed type
planes. The type planes have collapsed because the integer types are now
signless so that uint and int became i32. Where two planes existed for uint
and int, only i32 exists. Any variable names depending on the type planes
to pmake the identifier unique would cause a conflict. This patch resolves
that conflict for many but not all cases.

Situations involving the integer types and pointers to them are handled
by this patch.  However, there are corner cases that are not handled
well, such as:

%t1 = type { uint, int }
%t2 = type { int, uint }

void %myfunc(%t1* one, %t2* two) {
  %var = load %t1* one
  %var = load %t2* two
}

In the scenario above, %t1 and %t2 are really the same type: { i32, i32 }
Consequently attempting to name %var twice will yield a redefinition error
when assembled.

While this patch is sufficien to allow the llvm/test suite to pass, More
work needs to be to complete the handling of these corner cases.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32810 91177308-0d34-0410-b5e6-96231b3b80d8
2007-01-02 05:44:33 +00:00
..
bugpoint For PR950: 2006-12-31 06:02:26 +00:00
gccas Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are 2006-12-07 01:30:32 +00:00
gccld Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are 2006-12-07 01:30:32 +00:00
llc make all llvm tools call llvm_shutdown when they exit, static'ify some stuff. 2006-12-06 01:18:01 +00:00
lli For PR950: 2006-12-31 06:02:26 +00:00
llvm2cpp For PR950: 2006-12-31 06:02:26 +00:00
llvm-ar make all llvm tools call llvm_shutdown when they exit, static'ify some stuff. 2006-12-06 01:18:01 +00:00
llvm-as Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are 2006-12-07 01:30:32 +00:00
llvm-bcanalyzer make all llvm tools call llvm_shutdown when they exit, static'ify some stuff. 2006-12-06 01:18:01 +00:00
llvm-config Ignore the LibDeps.txt.tmp file. 2006-12-22 02:02:45 +00:00
llvm-db make all llvm tools call llvm_shutdown when they exit, static'ify some stuff. 2006-12-06 01:18:01 +00:00
llvm-dis Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are 2006-12-07 01:30:32 +00:00
llvm-extract Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are 2006-12-07 01:30:32 +00:00
llvm-ld Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are 2006-12-07 01:30:32 +00:00
llvm-link Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are 2006-12-07 01:30:32 +00:00
llvm-nm make all llvm tools call llvm_shutdown when they exit, static'ify some stuff. 2006-12-06 01:18:01 +00:00
llvm-prof make all llvm tools call llvm_shutdown when they exit, static'ify some stuff. 2006-12-06 01:18:01 +00:00
llvm-ranlib make all llvm tools call llvm_shutdown when they exit, static'ify some stuff. 2006-12-06 01:18:01 +00:00
llvm-stub Incorporate the contents of include/llvm/Config/unistd.h as this is the 2004-12-20 04:34:36 +00:00
llvm-upgrade For PR1070: 2007-01-02 05:44:33 +00:00
llvmc Ressurrect this needed file. 2006-12-13 08:10:16 +00:00
lto Changed llvm_ostream et all to OStream. llvm_cerr, llvm_cout, llvm_null, are 2006-12-07 01:30:32 +00:00
opt Remove DSA. 2006-12-13 16:54:24 +00:00
Makefile Build llvm-update now. 2006-12-02 04:46:36 +00:00