Chris Lattner [Fri, 4 May 2007 00:51:23 +0000 (00:51 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36722
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 4 May 2007 00:45:24 +0000 (00:45 +0000)]
pass by reference, not by value
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36721
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 4 May 2007 00:44:52 +0000 (00:44 +0000)]
trivial scaffolding for param attrs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36720
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 4 May 2007 00:29:34 +0000 (00:29 +0000)]
Test load global in static mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36719
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 4 May 2007 00:26:58 +0000 (00:26 +0000)]
On Mac OS X, GV requires an extra load only when relocation-model is non-static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36718
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 3 May 2007 23:53:36 +0000 (23:53 +0000)]
New test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36717
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 3 May 2007 23:52:19 +0000 (23:52 +0000)]
Don't create indexed load / store with zero offset!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36716
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 3 May 2007 23:30:36 +0000 (23:30 +0000)]
Should never see an indexed load / store with zero offset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36714
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 3 May 2007 23:20:33 +0000 (23:20 +0000)]
Allow strength reduction to make use of addressing modes for the
address operand in a prefetch intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36713
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 22:46:43 +0000 (22:46 +0000)]
enumerate parameter attr lists.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36709
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 22:34:03 +0000 (22:34 +0000)]
Encoding calling conv info in call/invoke instrs, tree add now round trips completely
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36707
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 22:21:59 +0000 (22:21 +0000)]
the type field for a store is the type of the pointer, not the value.
With this fix I can round trip treeaadd, only losing calling conv info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36706
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 22:19:34 +0000 (22:19 +0000)]
don't bother encoding # varargs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36705
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 22:18:21 +0000 (22:18 +0000)]
fix encoding of BB names in the symtab
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36704
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 22:16:11 +0000 (22:16 +0000)]
add a new code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36703
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 22:09:51 +0000 (22:09 +0000)]
bug fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36701
91177308-0d34-0410-b5e6-
96231b3b80d8
Jeff Cohen [Thu, 3 May 2007 22:09:21 +0000 (22:09 +0000)]
Unbreak VC++ build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36700
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 22:04:19 +0000 (22:04 +0000)]
implement the rest of the instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36699
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 3 May 2007 20:55:18 +0000 (20:55 +0000)]
Use iterative while loop instead of recursive function call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36694
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 3 May 2007 20:54:42 +0000 (20:54 +0000)]
Evan's patch to avoid FPreg->intreg copy for cvt; store to mem
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36693
91177308-0d34-0410-b5e6-
96231b3b80d8
Lauro Ramos Venancio [Thu, 3 May 2007 20:28:35 +0000 (20:28 +0000)]
Debug support for arm-linux.
Patch by Raul Herbster.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36690
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 18:58:09 +0000 (18:58 +0000)]
add a few more instructions, getting close
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36688
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 3 May 2007 18:46:30 +0000 (18:46 +0000)]
Indent the .text, .data, and .bss directives in assembly output, so that
they are consistent with the other directives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36687
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 3 May 2007 18:45:06 +0000 (18:45 +0000)]
Use the explicit keyword for the SCEV class' constructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36686
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 3 May 2007 18:36:15 +0000 (18:36 +0000)]
Added -rsh-host and -rsh-user to support remote execution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36685
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 18:32:10 +0000 (18:32 +0000)]
This is a patch to fix a compile error in STLExtras.h, and
a bug in GraphWriter.cpp.
Patch by Florian Brandner
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36684
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 3 May 2007 18:20:17 +0000 (18:20 +0000)]
negatize -> negative
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36683
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 18:15:56 +0000 (18:15 +0000)]
silence annoying gcc 4.3 warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36681
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 18:15:36 +0000 (18:15 +0000)]
silence some annoying gcc 4.3 warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36680
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 18:14:56 +0000 (18:14 +0000)]
remove extraneous type qualifiers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36679
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 18:13:15 +0000 (18:13 +0000)]
remove extraneous top-level semi's
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36678
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 17:10:20 +0000 (17:10 +0000)]
remove two useless functions. Just inherit Type's implementation instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36677
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 17:09:36 +0000 (17:09 +0000)]
remove useless type qualifiers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36676
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 16:57:26 +0000 (16:57 +0000)]
avoid invalid C++ token in #error
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36674
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 16:54:34 +0000 (16:54 +0000)]
Allow i/s to match (gv+c). This fixes CodeGen/PowerPC/2007-05-03-InlineAsm-S-Constraint.ll
and PR1382
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36672
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 16:54:08 +0000 (16:54 +0000)]
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36671
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 16:52:29 +0000 (16:52 +0000)]
Fix two classes of bugs:
1. x86 backend rejected (&gv+c) for the 'i' constraint when in static mode.
2. the matcher didn't correctly reject and accept some global addresses.
the right predicate is GVRequiresExtraLoad, not "relomodel = pic".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36670
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 16:42:23 +0000 (16:42 +0000)]
add support for printing offset from global
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36669
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 16:40:25 +0000 (16:40 +0000)]
revert accidental commit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36668
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 16:39:48 +0000 (16:39 +0000)]
add support for printing offset of global
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36667
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 3 May 2007 16:38:57 +0000 (16:38 +0000)]
Sets the section names for fixed-size constants and use the mergeable
flag for ELF on x86 so that duplicate constants can be eliminated by
the linker. This matches what GCC does with its -fmerge-constants
option, which is enabled at most -O levels.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36666
91177308-0d34-0410-b5e6-
96231b3b80d8
Lauro Ramos Venancio [Thu, 3 May 2007 14:05:07 +0000 (14:05 +0000)]
Make my proxy happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36665
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 02:57:13 +0000 (02:57 +0000)]
revert reid's patch to fix these failures:
test/CodeGen/CBackend/2007-01-08-ParamAttr-ICmp.ll for PR1099 [DEJAGNU]
Applications/SPASS/SPASS [CBE]
Regression/C/2004-03-15-IndirectGoto [CBE]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36664
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 3 May 2007 02:00:18 +0000 (02:00 +0000)]
Typo. It's checking if V is multiple of 4, not multiple of 3. :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36663
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 3 May 2007 01:11:54 +0000 (01:11 +0000)]
Drop 'const'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36662
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Thu, 3 May 2007 00:42:22 +0000 (00:42 +0000)]
New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36661
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 00:32:00 +0000 (00:32 +0000)]
match a reassociated form of fnmul. This implements CodeGen/ARM/fnmul.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36660
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 00:31:40 +0000 (00:31 +0000)]
match a reassociated form of fnmul
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36659
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 00:27:11 +0000 (00:27 +0000)]
expose HonorSignDependentRoundingFPMathOption to .td files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36658
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 3 May 2007 00:16:07 +0000 (00:16 +0000)]
Add a new option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36657
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 2 May 2007 23:11:52 +0000 (23:11 +0000)]
Non-algorithmic change. Moved definitions around into separate sections
for SSE1, SSE2, SSE3, and SSSE3.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36656
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 2 May 2007 22:15:48 +0000 (22:15 +0000)]
Properly set arguments bitwidth of EHSELECT node
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36654
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 2 May 2007 21:42:20 +0000 (21:42 +0000)]
Update.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36653
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 2 May 2007 21:39:20 +0000 (21:39 +0000)]
Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces
static const int, which defauts PassID based pass identification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36652
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 2 May 2007 21:31:09 +0000 (21:31 +0000)]
Disable RTTI handling until we're ready.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36651
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 2 May 2007 21:29:39 +0000 (21:29 +0000)]
Add a rule to get the footprint of binaries and libraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36650
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 2 May 2007 20:38:25 +0000 (20:38 +0000)]
Re-install patch to enable use of PassID.
I am preparing another patch to address the failure that prompted
Chris to revert this patch earlier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36649
91177308-0d34-0410-b5e6-
96231b3b80d8
Lauro Ramos Venancio [Wed, 2 May 2007 20:37:47 +0000 (20:37 +0000)]
Fix build error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36648
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 2 May 2007 19:53:33 +0000 (19:53 +0000)]
Emit correct register move information in eh frames for X86. This allows Shootout-C++/except to pass on x86/linux
with non-llvm-compiled (e.g. "native") unwind runtime.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36647
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 2 May 2007 08:46:03 +0000 (08:46 +0000)]
Emit correct DWARF reg # for RA (return address) register
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36646
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 2 May 2007 07:43:14 +0000 (07:43 +0000)]
Test that TREE_CONSTANT is being set correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36645
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 2 May 2007 07:41:22 +0000 (07:41 +0000)]
Test that inline assembler compiles (llvm-gcc added an extra "uses" parameter
to ASM_EXPR).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36644
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 2 May 2007 05:47:22 +0000 (05:47 +0000)]
update to reflect reality
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36643
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 2 May 2007 05:46:45 +0000 (05:46 +0000)]
add reader logic for terminator instrs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36642
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 2 May 2007 05:16:49 +0000 (05:16 +0000)]
add reader support for a bunch of new instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36641
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 2 May 2007 04:27:25 +0000 (04:27 +0000)]
read a few instructions, fix some bugs. This is enough to be able to round
trip function bodies like this:
define <2 x i64> @foo(<2 x i64> %x, <2 x i64> %y) {
%tmp4 = bitcast <2 x i64> %y to <8 x i16> ; <<8 x i16>> [#uses=1]
%tmp5 = bitcast <2 x i64> %x to <8 x i16> ; <<8 x i16>> [#uses=1]
%tmp = add <8 x i16> %tmp5, %tmp4 ; <<8 x i16>> [#uses=1]
%tmp6 = bitcast <8 x i16> %tmp to <2 x i64> ; <<2 x i64>> [#uses=1]
ret <2 x i64> %tmp6
}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36640
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 2 May 2007 04:26:36 +0000 (04:26 +0000)]
use the correct code for binop instrs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36639
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 2 May 2007 04:25:31 +0000 (04:25 +0000)]
revert enough of devang's recent patches to get the tree basically working again
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36638
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 2 May 2007 04:01:44 +0000 (04:01 +0000)]
disable this assertion as a hack to get the build more unbroken :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36637
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Wed, 2 May 2007 02:17:41 +0000 (02:17 +0000)]
Make sign extension work correctly for unusual bit widths.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36635
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Wed, 2 May 2007 01:02:40 +0000 (01:02 +0000)]
Add some support for (Darwin) code-generating directives in getInlineAsmLength.
Support is incomplete, but more accurate than gcc's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36634
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 1 May 2007 22:23:12 +0000 (22:23 +0000)]
Fix couple of bugs connected with eh info:
1. Correct output offsets on Linux
2. Fix "style" of personality function. It shouldn't be indirect.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36633
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 1 May 2007 21:15:47 +0000 (21:15 +0000)]
Do not use typeinfo to identify pass in pass manager.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36632
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 1 May 2007 20:55:38 +0000 (20:55 +0000)]
Update doc to reflect changes I am about to install to fix PR 888.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36631
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 1 May 2007 20:27:19 +0000 (20:27 +0000)]
Doh. PC displacement is between the constantpool and the add instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36630
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 1 May 2007 18:49:30 +0000 (18:49 +0000)]
Test handling of TRY_CATCH_EXPRs for which the handler is a sequence of
ordinary statements, rather than a list of CATCH_EXPRs or an EH_FILTER_EXPR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36629
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 1 May 2007 10:19:31 +0000 (10:19 +0000)]
Use correct PC symbol
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36628
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 1 May 2007 10:16:06 +0000 (10:16 +0000)]
Adjust correct EH-related sections
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36627
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 1 May 2007 09:13:03 +0000 (09:13 +0000)]
eliminateFrameIndex() change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36626
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 1 May 2007 09:01:42 +0000 (09:01 +0000)]
If call frame is not part of stack frame and no dynamic alloc, eliminateFrameIndex() must adjust SP offset with size of call frames.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36625
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 1 May 2007 08:59:18 +0000 (08:59 +0000)]
Pass call frame setup SP adjustment along to eliminateFrameIndex().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36624
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 1 May 2007 08:58:27 +0000 (08:58 +0000)]
Add SPAdj parameter to account for call frame setup SP adjustment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36623
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 1 May 2007 08:53:39 +0000 (08:53 +0000)]
Forgot about chain result; also UNDEF cannot have multiple values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36622
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 1 May 2007 07:03:37 +0000 (07:03 +0000)]
fix build with non-buggy compilers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36621
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 1 May 2007 07:01:57 +0000 (07:01 +0000)]
handle function-level forward references, read binops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36620
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Tue, 1 May 2007 06:08:36 +0000 (06:08 +0000)]
A bit of feedback from Chris that I missed; error rather than asserting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36619
91177308-0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Tue, 1 May 2007 05:57:02 +0000 (05:57 +0000)]
llvm bug #1350, parts 1, 2, and 3.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36618
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 1 May 2007 05:52:21 +0000 (05:52 +0000)]
implement materializeModule, force deallocation of vector memory when we
are done with them, start implementing ParseFunctionBody
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36617
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 1 May 2007 05:51:32 +0000 (05:51 +0000)]
several bitfixes to JumpToBit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36616
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 1 May 2007 05:01:34 +0000 (05:01 +0000)]
The stream to read from is now an ivar
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36615
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 1 May 2007 04:59:48 +0000 (04:59 +0000)]
implement scafolding for lazy deserialization of function bodies
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36614
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 1 May 2007 04:59:06 +0000 (04:59 +0000)]
add JumpToBit, an explicit init method, and a default ctor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36613
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Tue, 1 May 2007 02:56:15 +0000 (02:56 +0000)]
Split target dependent test portions to target-specific directories.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36612
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 1 May 2007 02:43:46 +0000 (02:43 +0000)]
add phi
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36611
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 1 May 2007 02:14:57 +0000 (02:14 +0000)]
write the symbol table for function bodies
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36610
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 1 May 2007 02:13:26 +0000 (02:13 +0000)]
encode all of the instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36609
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 1 May 2007 02:12:05 +0000 (02:12 +0000)]
add missing opcode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36608
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 1 May 2007 00:52:08 +0000 (00:52 +0000)]
Under normal circumstances, when a frame pointer is not required, we reserve
argument space for call sites in the function immediately on entry to the
current function. This eliminates the need for add/sub sp brackets around call
sites. However, this is not always a good idea. If the "call frame" is large and
the target load / store instructions have small immediate field to encode sp
offset, this can cause poor codegen. In the worst case, this can make it
impossible to scavenge a register if the reserved spill slot is pushed too far
apart from sp / fp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36607
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 1 May 2007 00:47:46 +0000 (00:47 +0000)]
Added hook hasReservedCallFrame(). It returns true if the call frame is
included as part of the stack frame.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36606
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 1 May 2007 00:40:38 +0000 (00:40 +0000)]
Test a dag combiner crasher.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36605
91177308-0d34-0410-b5e6-
96231b3b80d8