Chris Lattner
4e4f7312e0
new testcase basicaa should handle
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18260 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-26 19:19:28 +00:00
Reid Spencer
043e4b1084
Indicate that PR427 won't be fixed.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18259 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 22:43:58 +00:00
Reid Spencer
4f86f9c23b
* Add features I implemented this release.
...
* Wrap long lines at 80 cols
* Indent lists so structure of document is a little more clear
* Make the page HTML 4.01 Strict compliant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18258 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 22:38:30 +00:00
Reid Spencer
bf714df962
Add LLVMbzip2 library, now required.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18255 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 20:22:06 +00:00
Reid Spencer
4a41586769
Remove HAVE_BZLIB and HAVE_BZIP2. We always have bzip2 now.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18254 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 20:21:53 +00:00
Reid Spencer
07accb5a60
Always pass -D_GNU_SOURCE to cc1plus
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18253 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 19:38:51 +00:00
Reid Spencer
c702fa3ff0
Always pass -D_GNU_SOURCE to cc1
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18252 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 19:38:39 +00:00
Reid Spencer
c48c103c33
Add bzip2 subdirectory
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18251 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 19:38:28 +00:00
Reid Spencer
f6a0acd64a
Remove zlib support in favor of our own bzip2 library
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18250 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 19:38:16 +00:00
Reid Spencer
84472d6e3c
Adjust to Compressor interface change
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18249 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 19:38:05 +00:00
Reid Spencer
50b0421caa
Restrict the interface to not allow algorithm selection
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18248 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 19:37:42 +00:00
Reid Spencer
f99e59a92c
Add some instructions about ranlib'ing the CFE runtime libraries so that
...
they link faster. This should eventually be codified into the CFE's
makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18247 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 17:13:17 +00:00
Reid Spencer
bc98a64b2a
Revise to LLVM makefile standards.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18246 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 16:12:25 +00:00
Reid Spencer
26eda77f1f
Initial Version from bzip2 Release 1.0.2.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18245 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 16:11:36 +00:00
Reid Spencer
1945a11249
Correct the configuration variable used to find the bin directory.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18244 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 09:36:28 +00:00
Reid Spencer
53c4c5672c
Implement dependent library linking. It is no longer required that -lstdc++
...
-lstdsup++ no -lc be passed on the command line to llvm linkers if the
progam being linked was compiled with the C/C++ Front End or Stacker.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18243 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 09:32:08 +00:00
Reid Spencer
719012d625
Remove blank comment lines for uniformity.
...
Make sure lines don't exceed 80 cols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18242 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 09:29:44 +00:00
Reid Spencer
df561f4ab3
Add a convenience target to build all three modes: Debug, Release, Profile
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18241 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 09:08:54 +00:00
Reid Spencer
efbe40ada6
Gack. Actually use the correct variable name in setting the JIT support.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18240 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 07:28:19 +00:00
Nate Begeman
d4c8bea47f
Enable optimization suggested by Chris Lattner to not emit reloc stubs for
...
static global variables whose addresses are taken. This allows us to
convert the following code for taking the address of a static function foo
addis r2, r30, ha16(Ll1__2E_foo_2$non_lazy_ptr-"L00001$pb")
lwz r3, lo16(Ll1__2E_foo_2$non_lazy_ptr-"L00001$pb")(r2)
which also includes linker stub code emitted at the end of the .s file not
shown here, and replace it with this:
addis r2, r30, ha16(l1__2E_foo_2-"L00001$pb")
la r3, lo16(l1__2E_foo_2-"L00001$pb")(r2)
which in addition to not needing linker help, also has no load instruction.
For those not up on PowerPC mnemonics, la is shorthand for add immediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18239 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 07:09:01 +00:00
Chris Lattner
4f7ac4c76c
The PPC backend is basically stable, and has a JIT now.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18238 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 06:33:10 +00:00
Chris Lattner
4df69b8352
Bug fixed
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18237 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 06:31:42 +00:00
Chris Lattner
fb0ac971fa
New testcase for PR451
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18236 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 06:25:13 +00:00
Chris Lattner
fde839b4ff
Fix the build on non ppc machines
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18235 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 06:14:45 +00:00
Reid Spencer
7409d1c867
PR256 fixed.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18234 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 06:07:42 +00:00
Reid Spencer
edd01b9ec5
Fix the lib/System/platform link by using proper cached variable name.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18233 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 06:03:14 +00:00
Reid Spencer
5e1d9a5f6e
For PR256:
...
* cache more values
* standardize cache value names
* organize configure script per autoconf recommendations (10 sections)
* Eliminate some redundancies and complexities in the script
* Provide better documentation in the script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18232 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 04:51:04 +00:00
Reid Spencer
1ac1d4049e
Cache the value of this test.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18231 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 04:44:46 +00:00
Reid Spencer
4f5f1406fd
Tidy up the indentation. Give the cache variable a proper name.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18230 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 04:43:54 +00:00
Reid Spencer
898ae19319
Eliminate duplicate "checking" message.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18229 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 04:42:25 +00:00
Chris Lattner
2a0c0dff0b
The JIT works enough
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18228 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 04:14:54 +00:00
Chris Lattner
5cbf3bc202
Fix encoding of fsel, fixing olden/power, McCat/bisort and several others.
...
All of Olden passes now! :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18227 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 04:11:07 +00:00
Chris Lattner
a1ab451392
Fix encoding of fneg instruction
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18226 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 03:53:44 +00:00
Chris Lattner
cd61ec837f
Fix encoding of swari, fixing several programs, including Olden/mst
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18225 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 03:40:20 +00:00
Reid Spencer
ab4e5fb61f
Make the check print something, give the cache var an llvm specific name.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18224 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 03:33:03 +00:00
Chris Lattner
b752a97ca4
There is not a 1-1 mappign between llvm blocks and PPC blocks, do not use
...
LLVM blocks as the keys for the branch rewriter. This fixes treeadd and
many other programs with the JIT.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18223 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-25 00:33:57 +00:00
Chris Lattner
5efb75daed
* Rename existing relocations to be more specific
...
* Add relocations for refernces to non-lazy darwin stubs and implement
them correctly.
With this change, we can correctly references external globals, and now
all but two UnitTests and all but 1 Regression/C tests pass.
More importantly, bugpoint-jit will start giving us useful testcases,
instead of always telling us that references to external globals don't
work :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18222 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 22:30:08 +00:00
Nate Begeman
53e4aa57c6
Add the same optimization that we do loading from fixed alloca slots to
...
storing to fixed alloca slots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18221 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 21:53:14 +00:00
Chris Lattner
73278080c8
Write CompilationCallback as an explicit assembly stub to avoid getting GCC's
...
prolog.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18220 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 21:01:46 +00:00
Chris Lattner
892afa9556
When rewriting the original call instruction, make sure to rewrite it to
...
call the right address.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18213 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 18:00:02 +00:00
Chris Lattner
fb887e010d
Force the intregs ptr into R2 and the FPregs ptr into R3. This fixes a really
...
obscure problem where we were doing:
lmw r3,0(r9)
which is undefined on PPC. Now we do:
lmw r3,0(r2)
by force, not relying on the GCC register allocator for luck :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18212 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 17:42:55 +00:00
Reid Spencer
5f8448f79c
Implement and document prefix options with arbitrary values including an
...
= sign. This needed to support -DNAME=value options as pass-through in
llvmc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18203 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 06:13:42 +00:00
Brian Gaeke
e4ed742588
Update list of failing benchmarks.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18202 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 04:07:42 +00:00
Brian Gaeke
31e575901f
Fix bug in emitGEPOperation with large struct-member offsets.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18201 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 04:07:33 +00:00
Chris Lattner
69efbdd4f3
Fix a few more tests by encoding the extsb and other XForm11 instructions
...
correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18200 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 03:52:02 +00:00
Chris Lattner
2f5091ac2a
Fix the encoding of ORi and other DForm4 instructions. This brings us to
...
36/42 SingleSource/UnitTests passing!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18199 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 02:15:41 +00:00
Chris Lattner
00a8c01999
Loads are relocatable too
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18198 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 02:03:44 +00:00
Chris Lattner
b765ff1219
Calls do not need a MovPCtoLR instruction
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18197 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 02:00:06 +00:00
Chris Lattner
b9f26da5dd
Get constant pools working. This fixes even more programs, allowing us to
...
pass 24/42 in UnitTests (up from 20).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18196 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 01:56:12 +00:00
Tanya Lattner
a6ec8f5548
Forced branches to be first to be scheduled.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18195 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-24 01:49:10 +00:00