Reid Spencer [Wed, 6 Dec 2006 20:30:17 +0000 (20:30 +0000)]
For PR950:
Remove the getMaxValue and getMinValue functions from ConstantIntegral.
They don't make sense for a signless type. Also, for isMaxValue and
isMinValue, have the caller provided the signedness rather than obtaining
it from the constant's type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32287
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 6 Dec 2006 20:28:46 +0000 (20:28 +0000)]
Fix some 80 col violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32286
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 20:02:54 +0000 (20:02 +0000)]
fix the jit encoding of sradi, simplify the MDForm1 description.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32285
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 19:40:04 +0000 (19:40 +0000)]
add relocation support for ppc64 branches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32284
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 6 Dec 2006 19:00:27 +0000 (19:00 +0000)]
Detemplatize the Statistic class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32283
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 18:20:44 +0000 (18:20 +0000)]
merge the Statistic and StatisticBase classes, eliminating virtual methods
and eliminating #includes from the Statistic.h file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32282
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 18:19:53 +0000 (18:19 +0000)]
add #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32281
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 18:14:47 +0000 (18:14 +0000)]
add missing #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32280
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 17:46:33 +0000 (17:46 +0000)]
Detemplatize the Statistic class. The only type it is instantiated with
is 'unsigned'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32279
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Wed, 6 Dec 2006 17:43:18 +0000 (17:43 +0000)]
Some addresssed should be 64-bit and some shouldn't.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32278
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Wed, 6 Dec 2006 17:42:06 +0000 (17:42 +0000)]
Make it easier for gdb to find the return address.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32277
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 6 Dec 2006 13:35:10 +0000 (13:35 +0000)]
print weak references
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32276
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Wed, 6 Dec 2006 11:03:10 +0000 (11:03 +0000)]
No need to update generated files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32275
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Wed, 6 Dec 2006 10:57:33 +0000 (10:57 +0000)]
Fix build for older versios of bison.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32274
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 6 Dec 2006 08:27:42 +0000 (08:27 +0000)]
Move copyKillDeadInfo out-of-line. Add findRegisterUseOperand().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32273
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 6 Dec 2006 07:08:07 +0000 (07:08 +0000)]
Tie the ordered/unordered predicate descriptions to their meaning wrt
to QNAN values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32272
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 06:40:49 +0000 (06:40 +0000)]
Remove the dead CachedWriter class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32271
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 06:35:25 +0000 (06:35 +0000)]
Simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32270
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 6 Dec 2006 06:30:15 +0000 (06:30 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32269
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 6 Dec 2006 06:29:36 +0000 (06:29 +0000)]
Don't turn on SETCC upgrade yet!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32268
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 6 Dec 2006 06:25:46 +0000 (06:25 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32267
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 6 Dec 2006 06:25:22 +0000 (06:25 +0000)]
Fix upgrade of setcc with bool operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32266
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 06:24:27 +0000 (06:24 +0000)]
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32265
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 06:16:21 +0000 (06:16 +0000)]
Remove the 'printname' argument to WriteAsOperand. It is always true, and
passing false would make the asmprinter fail anyway.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32264
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 06:15:43 +0000 (06:15 +0000)]
The hasSlot methods are gone.
Remove the 'PrintName' argument to WriteAsOperand, as it is always true.
Only call getOrCreateSlot on things that are valid.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32263
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 06:13:25 +0000 (06:13 +0000)]
These asm printers shouldn't use assembly/writer.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32262
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 05:55:44 +0000 (05:55 +0000)]
remove unused api
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32261
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 05:55:41 +0000 (05:55 +0000)]
remove unused api, simplify some code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32260
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 05:50:41 +0000 (05:50 +0000)]
remove more code that was only used by the bc writer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32259
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 05:42:32 +0000 (05:42 +0000)]
remove dead code left over from when this functionality was shared with the
bcwriter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32258
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 05:39:18 +0000 (05:39 +0000)]
reword message
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32257
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 05:27:40 +0000 (05:27 +0000)]
rename createSlot -> getOrCreateSlot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32256
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 05:12:21 +0000 (05:12 +0000)]
clean up some sloppy and inconsistent spacing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32255
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 04:41:52 +0000 (04:41 +0000)]
wrap long lines
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32254
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 6 Dec 2006 04:27:07 +0000 (04:27 +0000)]
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32253
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 01:50:04 +0000 (01:50 +0000)]
counter should be unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32252
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 01:48:55 +0000 (01:48 +0000)]
eliminate fp statistic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32251
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 01:18:01 +0000 (01:18 +0000)]
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32250
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 01:01:14 +0000 (01:01 +0000)]
add a helper to call llvm_shutdown()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32249
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 6 Dec 2006 00:46:14 +0000 (00:46 +0000)]
this is a subset of Codegen/X86/bitcast.ll, remove it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32248
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 6 Dec 2006 00:25:09 +0000 (00:25 +0000)]
Fix constant folding to deal with external weak global values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32247
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 23:50:48 +0000 (23:50 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32246
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 23:46:41 +0000 (23:46 +0000)]
Remove dead var NewVarArgs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32245
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Dec 2006 23:43:59 +0000 (23:43 +0000)]
Fix Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll, fixing an out-of-
stack-space issue in the ppc bootstrap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32244
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Dec 2006 23:43:20 +0000 (23:43 +0000)]
Instcombine shouldn't fold these casts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32243
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 23:29:42 +0000 (23:29 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32242
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 23:28:06 +0000 (23:28 +0000)]
Dump the old va_arg and va_next upgrade support. No need to keep track of
the current basic block any more either.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32241
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 22:39:58 +0000 (22:39 +0000)]
Finally get the casting right in this file. Also, remove some unnecessary
casting because sdiv doesn't require operand signs to match any more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32240
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 5 Dec 2006 22:03:40 +0000 (22:03 +0000)]
Revert an unintended change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32239
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 5 Dec 2006 19:50:18 +0000 (19:50 +0000)]
- Switch X86-64 JIT to large code size model.
- Re-enable some codegen niceties for X86-64 static relocation model codegen.
- Clean ups, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32238
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Dec 2006 19:46:12 +0000 (19:46 +0000)]
straighten out various memory ownership issues in the callgraph stuff.
This fixes Regression/Other/2002-01-31-CallGraph.ll.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32237
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Dec 2006 19:43:42 +0000 (19:43 +0000)]
This needs the callgraph data structure to stick around as long as the
printer does.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32236
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 19:21:25 +0000 (19:21 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32235
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 19:18:29 +0000 (19:18 +0000)]
For PR645:
Keep track of global constant and variable definitions for eventual use
in resolving conflicts between global and local symbol usage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32234
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 19:16:11 +0000 (19:16 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32233
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 19:15:41 +0000 (19:15 +0000)]
Remove various old upgrade hacks that are no longer needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32232
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 19:14:13 +0000 (19:14 +0000)]
Bail on the getInferredCast idea. Remove the function and convert
remaining uses to more specific casts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32231
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Dec 2006 18:45:06 +0000 (18:45 +0000)]
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32230
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Dec 2006 18:25:10 +0000 (18:25 +0000)]
Add a perf optzn corresponding to PR1033.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32229
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Dec 2006 18:22:22 +0000 (18:22 +0000)]
Fix PR1033 and CodeGen/X86/bitcast.ll, by expanding bitcast to a load/store pair.
This could be better, readme entry pending.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32228
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Dec 2006 18:21:52 +0000 (18:21 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32227
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 5 Dec 2006 17:57:23 +0000 (17:57 +0000)]
expand memmove and memcpy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32226
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 17:53:26 +0000 (17:53 +0000)]
Eliminate "control reaches end of non-void function" warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32225
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 5 Dec 2006 17:37:31 +0000 (17:37 +0000)]
add support for the "r" asm constraint
patch by Lauro Ramos Venancio
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32224
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Dec 2006 17:29:40 +0000 (17:29 +0000)]
Fix typo noticed by Lauro Ramos Venancio, thanks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32223
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Tue, 5 Dec 2006 17:00:17 +0000 (17:00 +0000)]
add support for weak linkage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32222
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 16:10:16 +0000 (16:10 +0000)]
Ignore the Output directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32221
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 5 Dec 2006 07:29:55 +0000 (07:29 +0000)]
JIT large code model support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32220
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 07:18:07 +0000 (07:18 +0000)]
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32219
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 5 Dec 2006 06:43:58 +0000 (06:43 +0000)]
Asm printing bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32218
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 5 Dec 2006 04:01:03 +0000 (04:01 +0000)]
- 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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32215
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 5 Dec 2006 03:58:23 +0000 (03:58 +0000)]
Update
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32214
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 03:30:09 +0000 (03:30 +0000)]
Remove the last inferred casts from VMCore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32213
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 03:28:26 +0000 (03:28 +0000)]
Implement createPointerCast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32212
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 5 Dec 2006 03:25:26 +0000 (03:25 +0000)]
Implement getPointerCast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32211
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Dec 2006 01:29:01 +0000 (01:29 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32210
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 5 Dec 2006 01:26:29 +0000 (01:26 +0000)]
add an instcombine xform. This speeds up 462.libquantum from 9.78s to
7.48s. This regression is due to unforseen consequences of the cast patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32209
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 4 Dec 2006 23:54:59 +0000 (23:54 +0000)]
SCCP does not handle Packed Type properly. Disable Packed Type handling
for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32208
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 23:14:27 +0000 (23:14 +0000)]
Add cast creation functions for Pointer Casts, either BitCast or PtrToInt
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32207
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 4 Dec 2006 22:38:21 +0000 (22:38 +0000)]
Add support for 64-bit 'r' constraint. Patch by by Rafael ~Avila de EspÃndol!
This fixes PR1029 and Regression/CodeGen/X86/x86-64-asm.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32206
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 4 Dec 2006 22:37:48 +0000 (22:37 +0000)]
Testcase for PR1029, patch by Rafael
\81vila de EspÃndola
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32205
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Mon, 4 Dec 2006 22:04:42 +0000 (22:04 +0000)]
Restoration of the stack pointer after a deallocation of a alloca was not
updating the SP link.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32202
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 21:35:24 +0000 (21:35 +0000)]
Separate getCompare from get and getCompareTy from getTy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32200
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 21:34:17 +0000 (21:34 +0000)]
Separate the get and getTy functions for ICmp and FCmp into getCompare
and getCompareTy. Also, fix some incorrect comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32199
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 21:33:23 +0000 (21:33 +0000)]
Fix comment grammaro
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32198
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 21:29:24 +0000 (21:29 +0000)]
We only support 32-bit or 64-bit sequential type indices for GEP. Document
it as so.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32197
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 4 Dec 2006 21:22:45 +0000 (21:22 +0000)]
Add a comment and fix a memory leak. Thanks to Vikram for pointing this out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32196
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 20:46:05 +0000 (20:46 +0000)]
These pass on Linux now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32195
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 20:28:07 +0000 (20:28 +0000)]
Expose the sanity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32193
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 20:18:26 +0000 (20:18 +0000)]
Unclutter this by using new cast creation functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32192
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 20:17:56 +0000 (20:17 +0000)]
Implement new cast creation functions for both instructions and constant
expressions. These will get used to reduce clutter as we replace various
calls to createInferredCast and getCast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32191
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 20:13:49 +0000 (20:13 +0000)]
Fix the intrinsic debug call to make this match current definition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32190
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 20:09:02 +0000 (20:09 +0000)]
Make this test succeed on both Darwin and Linux
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32189
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 19:23:19 +0000 (19:23 +0000)]
Document the icmp and fcmp constant expressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32188
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 18:39:14 +0000 (18:39 +0000)]
XFAIL until PR1033 is fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32187
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 18:38:05 +0000 (18:38 +0000)]
Reduce the size of the ExprMapKeyType class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32186
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Mon, 4 Dec 2006 18:24:56 +0000 (18:24 +0000)]
Test case for PR1033, x86-64 code gen fails on bitcast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32185
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 4 Dec 2006 18:07:10 +0000 (18:07 +0000)]
Non-darwin gcc should default to static relocation to match gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32184
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 4 Dec 2006 18:06:24 +0000 (18:06 +0000)]
Fix test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32183
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Laskey [Mon, 4 Dec 2006 17:54:29 +0000 (17:54 +0000)]
Purpose of test is lost in upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32182
91177308-0d34-0410-b5e6-
96231b3b80d8