Chris Lattner
a428b29cdb
printName is almost always true. In the cases that mattered where it was false,
...
it was effectively set to true by this:
- if ((PrintName || isa<GlobalValue>(V)) && V->hasName())
+ if (V->hasName())
Delete printname entirely.
llvm-svn: 32265
2006-12-06 06:24:27 +00:00
Chris Lattner
3d1758e08c
Remove the 'printname' argument to WriteAsOperand. It is always true, and
...
passing false would make the asmprinter fail anyway.
llvm-svn: 32264
2006-12-06 06:16:21 +00:00
Chris Lattner
c73d71336d
The hasSlot methods are gone.
...
Remove the 'PrintName' argument to WriteAsOperand, as it is always true.
Only call getOrCreateSlot on things that are valid.
llvm-svn: 32263
2006-12-06 06:15:43 +00:00
Chris Lattner
fd152e4ed6
These asm printers shouldn't use assembly/writer.h
...
llvm-svn: 32262
2006-12-06 06:13:25 +00:00
Chris Lattner
b4df9a6e9c
remove unused api
...
llvm-svn: 32261
2006-12-06 05:55:44 +00:00
Chris Lattner
cc4a08f45b
remove unused api, simplify some code
...
llvm-svn: 32260
2006-12-06 05:55:41 +00:00
Chris Lattner
04357677e5
remove more code that was only used by the bc writer
...
llvm-svn: 32259
2006-12-06 05:50:41 +00:00
Chris Lattner
9a36bc328e
remove dead code left over from when this functionality was shared with the
...
bcwriter.
llvm-svn: 32258
2006-12-06 05:42:32 +00:00
Chris Lattner
d23555d081
reword message
...
llvm-svn: 32257
2006-12-06 05:39:18 +00:00
Chris Lattner
7ee127edad
rename createSlot -> getOrCreateSlot.
...
llvm-svn: 32256
2006-12-06 05:27:40 +00:00
Chris Lattner
8f97b3e24b
clean up some sloppy and inconsistent spacing
...
llvm-svn: 32255
2006-12-06 05:12:21 +00:00
Chris Lattner
74b8045bc5
wrap long lines
...
llvm-svn: 32254
2006-12-06 04:41:52 +00:00
Reid Spencer
3e2d6cd0d1
Fix a CmpInst writing bug by removing merge cruft that I *know* I've removed
...
before. Also, make sure we write the predicate value for Cmp instructions
using instruction format 0.
llvm-svn: 32253
2006-12-06 04:27:07 +00:00
Chris Lattner
8fac1e29c7
counter should be unsigned.
...
llvm-svn: 32252
2006-12-06 01:50:04 +00:00
Chris Lattner
a7baddddcc
eliminate fp statistic
...
llvm-svn: 32251
2006-12-06 01:48:55 +00:00
Chris Lattner
41c5ddb8cb
make all llvm tools call llvm_shutdown when they exit, static'ify some stuff.
...
With this change, I can now move -stats to print when llvm_shutdown is called.
llvm-svn: 32250
2006-12-06 01:18:01 +00:00
Chris Lattner
30bf130327
add a helper to call llvm_shutdown()
...
llvm-svn: 32249
2006-12-06 01:01:14 +00:00
Chris Lattner
3379d67d56
this is a subset of Codegen/X86/bitcast.ll, remove it.
...
llvm-svn: 32248
2006-12-06 00:46:14 +00:00
Reid Spencer
2a2cc7fc14
Fix constant folding to deal with external weak global values.
...
llvm-svn: 32247
2006-12-06 00:25:09 +00:00
Reid Spencer
a5b4e1c136
Regenerate.
...
llvm-svn: 32246
2006-12-05 23:50:48 +00:00
Reid Spencer
15979b2dc3
Remove dead var NewVarArgs.
...
llvm-svn: 32245
2006-12-05 23:46:41 +00:00
Chris Lattner
a6cad8869f
Fix Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll, fixing an out-of-
...
stack-space issue in the ppc bootstrap.
llvm-svn: 32244
2006-12-05 23:43:59 +00:00
Chris Lattner
4d21615eb9
Instcombine shouldn't fold these casts.
...
llvm-svn: 32243
2006-12-05 23:43:20 +00:00
Reid Spencer
ecfe285ee4
Regenerate.
...
llvm-svn: 32242
2006-12-05 23:29:42 +00:00
Reid Spencer
cd773b0d10
Dump the old va_arg and va_next upgrade support. No need to keep track of
...
the current basic block any more either.
llvm-svn: 32241
2006-12-05 23:28:06 +00:00
Reid Spencer
980b8e4169
Finally get the casting right in this file. Also, remove some unnecessary
...
casting because sdiv doesn't require operand signs to match any more.
llvm-svn: 32240
2006-12-05 22:39:58 +00:00
Evan Cheng
40a5de9cd9
Revert an unintended change.
...
llvm-svn: 32239
2006-12-05 22:03:40 +00:00
Evan Cheng
adeea85f7d
- Switch X86-64 JIT to large code size model.
...
- Re-enable some codegen niceties for X86-64 static relocation model codegen.
- Clean ups, etc.
llvm-svn: 32238
2006-12-05 19:50:18 +00:00
Chris Lattner
1dc35111f1
straighten out various memory ownership issues in the callgraph stuff.
...
This fixes Regression/Other/2002-01-31-CallGraph.ll.
llvm-svn: 32237
2006-12-05 19:46:12 +00:00
Chris Lattner
bd4c022c56
This needs the callgraph data structure to stick around as long as the
...
printer does.
llvm-svn: 32236
2006-12-05 19:43:42 +00:00
Reid Spencer
4cd933d737
Regenerate.
...
llvm-svn: 32235
2006-12-05 19:21:25 +00:00
Reid Spencer
52be984fa1
For PR645:
...
Keep track of global constant and variable definitions for eventual use
in resolving conflicts between global and local symbol usage.
llvm-svn: 32234
2006-12-05 19:18:29 +00:00
Reid Spencer
f024dd475f
Regenerate.
...
llvm-svn: 32233
2006-12-05 19:16:11 +00:00
Reid Spencer
7b292216d6
Remove various old upgrade hacks that are no longer needed.
...
llvm-svn: 32232
2006-12-05 19:15:41 +00:00
Reid Spencer
c87c3e5a70
Bail on the getInferredCast idea. Remove the function and convert
...
remaining uses to more specific casts.
llvm-svn: 32231
2006-12-05 19:14:13 +00:00
Chris Lattner
6a9de21df5
If we have ScalarSSE, we can select bitconvert into single instructions.
...
This compiles bitcast.ll:test3/test4 into:
_test3:
movd %xmm0, %eax
ret
_test4:
movd %edi, %xmm0
ret
llvm-svn: 32230
2006-12-05 18:45:06 +00:00
Chris Lattner
0edf53eb71
Add a perf optzn corresponding to PR1033.
...
llvm-svn: 32229
2006-12-05 18:25:10 +00:00
Chris Lattner
4ad68ab4d7
Fix PR1033 and CodeGen/X86/bitcast.ll, by expanding bitcast to a load/store pair.
...
This could be better, readme entry pending.
llvm-svn: 32228
2006-12-05 18:22:22 +00:00
Chris Lattner
c90c14424c
new testcase
...
llvm-svn: 32227
2006-12-05 18:21:52 +00:00
Rafael Espindola
5e8a6ca4c0
expand memmove and memcpy
...
llvm-svn: 32226
2006-12-05 17:57:23 +00:00
Reid Spencer
5bf28d5efe
Eliminate "control reaches end of non-void function" warnings.
...
llvm-svn: 32225
2006-12-05 17:53:26 +00:00
Rafael Espindola
38062acebb
add support for the "r" asm constraint
...
patch by Lauro Ramos Venancio
llvm-svn: 32224
2006-12-05 17:37:31 +00:00
Chris Lattner
7368984a3d
Fix typo noticed by Lauro Ramos Venancio, thanks!
...
llvm-svn: 32223
2006-12-05 17:29:40 +00:00
Rafael Espindola
da1fffc4e1
add support for weak linkage
...
llvm-svn: 32222
2006-12-05 17:00:17 +00:00
Reid Spencer
ee4fd18228
Ignore the Output directory.
...
llvm-svn: 32221
2006-12-05 16:10:16 +00:00
Evan Cheng
32c16b7d3a
JIT large code model support.
...
llvm-svn: 32220
2006-12-05 07:29:55 +00:00
Reid Spencer
28a5079f58
Can't make these fail now with just BitCast. Previous failures must have
...
been in conjunction with something else. By right, they should just be
BitCasts.
llvm-svn: 32219
2006-12-05 07:18:07 +00:00
Evan Cheng
2c48ef5aab
Asm printing bug.
...
llvm-svn: 32218
2006-12-05 06:43:58 +00:00
Evan Cheng
2c35691a02
- Fix X86-64 JIT by temporarily disabling code that treats GV address as 32-bit
...
immediate in small code model. The JIT cannot ensure GV's are placed in the
lower 4G.
- Some preliminary support for large code model.
llvm-svn: 32215
2006-12-05 04:01:03 +00:00
Evan Cheng
b16bf52453
Update
...
llvm-svn: 32214
2006-12-05 03:58:23 +00:00