17 years agoThese have been removed
Chris Lattner [Sat, 27 Nov 2004 19:19:44 +0000 (19:19 +0000)]
These have been removed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18278 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove zlib from the llvm tarball. This is only used (in theory by povray-31
Chris Lattner [Sat, 27 Nov 2004 19:18:35 +0000 (19:18 +0000)]
Remove zlib from the llvm tarball.  This is only used (in theory by povray-31
which is part of llvm-test).  If anyone is interested in adding it to llvm-test,
feel free to go for it.

This is part of PR417

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18277 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove zlib from the llvm tarball. This is only used (in theory by povray-31
Chris Lattner [Sat, 27 Nov 2004 19:18:05 +0000 (19:18 +0000)]
Remove zlib from the llvm tarball.  This is only used (in theory by povray-31
which is part of llvm-test).  If anyone is interested in adding it to llvm-test,
feel free to go for it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18276 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoWhen merging to alias sets, if they are both must alias, the result is not
Chris Lattner [Sat, 27 Nov 2004 18:37:42 +0000 (18:37 +0000)]
When merging to alias sets, if they are both must alias, the result is not
a must alias set unless all of the pointers in the resultant set are must
aliased together.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18275 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoChange interface to this method a bit
Chris Lattner [Sat, 27 Nov 2004 18:37:04 +0000 (18:37 +0000)]
Change interface to this method a bit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18274 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement Regression/Transforms/InstCombine/getelementptr_cast.ll, which
Chris Lattner [Sat, 27 Nov 2004 17:55:46 +0000 (17:55 +0000)]
Implement Regression/Transforms/InstCombine/getelementptr_cast.ll, which
occurs many times in crafty

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18273 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoNew testcase
Chris Lattner [Sat, 27 Nov 2004 17:55:20 +0000 (17:55 +0000)]
New testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18272 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoDon't depend on grep or sed to be portable at all. Just compare against
Reid Spencer [Sat, 27 Nov 2004 06:44:10 +0000 (06:44 +0000)]
Don't depend on grep or sed to be portable at all. Just compare against
static test files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18271 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoPut the expected tables of contents of the test archives into separate
Reid Spencer [Sat, 27 Nov 2004 06:43:03 +0000 (06:43 +0000)]
Put the expected tables of contents of the test archives into separate
files so we don't have to process them at test time at all.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18270 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUse grep instead of sed because on Solaris sed doesn't copy null bytes and
Reid Spencer [Sat, 27 Nov 2004 06:27:30 +0000 (06:27 +0000)]
Use grep instead of sed because on Solaris sed doesn't copy null bytes and
it needs to in order for the bug in MacOSX archives to be tested correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18269 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAccommodate the braindead Solaris "diff" that doesn't understand the -q
Reid Spencer [Sat, 27 Nov 2004 06:00:36 +0000 (06:00 +0000)]
Accommodate the braindead Solaris "diff" that doesn't understand the -q

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18268 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove the ISel->AsmPrinter link via the TargetMachine that was put in
Nate Begeman [Sat, 27 Nov 2004 04:45:11 +0000 (04:45 +0000)]
Remove the ISel->AsmPrinter link via the TargetMachine that was put in
place to help bring up the PowerPC back end on Darwin.  This code is no
longer serves any purpose now that the AsmPrinter does the right thing
all the time printing GlobalValues.  --Cruft.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18267 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd a new interface
Chris Lattner [Fri, 26 Nov 2004 21:36:25 +0000 (21:36 +0000)]
Add a new interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18266 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoProvide size information when checking to see if we can LICM a load, this
Chris Lattner [Fri, 26 Nov 2004 21:20:09 +0000 (21:20 +0000)]
Provide size information when checking to see if we can LICM a load, this
allows us to hoist more loads in some cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18265 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoWhen evaluating an AA, pass in size info
Chris Lattner [Fri, 26 Nov 2004 21:05:39 +0000 (21:05 +0000)]
When evaluating an AA, pass in size info

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18264 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThere is no reason to store <x,x>, just store <x>.
Chris Lattner [Fri, 26 Nov 2004 20:25:17 +0000 (20:25 +0000)]
There is no reason to store <x,x>, just store <x>.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18263 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThe trick with globals actually works with allocas and malloc too
Chris Lattner [Fri, 26 Nov 2004 20:01:48 +0000 (20:01 +0000)]
The trick with globals actually works with allocas and malloc too

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18262 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoA store or load cannot alias a global if the accessed amount is larger then
Chris Lattner [Fri, 26 Nov 2004 19:20:01 +0000 (19:20 +0000)]
A store or load cannot alias a global if the accessed amount is larger then
the global.

This implements Regression/Analysis/BasicAA/global-size.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18261 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase basicaa should handle
Chris Lattner [Fri, 26 Nov 2004 19:19:28 +0000 (19:19 +0000)]
new testcase basicaa should handle

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18260 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoIndicate that PR427 won't be fixed.
Reid Spencer [Thu, 25 Nov 2004 22:43:58 +0000 (22:43 +0000)]
Indicate that PR427 won't be fixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18259 91177308-0d34-0410-b5e6-96231b3b80d8

17 years ago* Add features I implemented this release.
Reid Spencer [Thu, 25 Nov 2004 22:38:30 +0000 (22:38 +0000)]
* 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

17 years agoAdd LLVMbzip2 library, now required.
Reid Spencer [Thu, 25 Nov 2004 20:22:06 +0000 (20:22 +0000)]
Add LLVMbzip2 library, now required.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18255 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove HAVE_BZLIB and HAVE_BZIP2. We always have bzip2 now.
Reid Spencer [Thu, 25 Nov 2004 20:21:53 +0000 (20:21 +0000)]
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

17 years agoAlways pass -D_GNU_SOURCE to cc1plus
Reid Spencer [Thu, 25 Nov 2004 19:38:51 +0000 (19:38 +0000)]
Always pass -D_GNU_SOURCE to cc1plus

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18253 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAlways pass -D_GNU_SOURCE to cc1
Reid Spencer [Thu, 25 Nov 2004 19:38:39 +0000 (19:38 +0000)]
Always pass -D_GNU_SOURCE to cc1

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18252 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd bzip2 subdirectory
Reid Spencer [Thu, 25 Nov 2004 19:38:28 +0000 (19:38 +0000)]
Add bzip2 subdirectory

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18251 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove zlib support in favor of our own bzip2 library
Reid Spencer [Thu, 25 Nov 2004 19:38:16 +0000 (19:38 +0000)]
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

17 years agoAdjust to Compressor interface change
Reid Spencer [Thu, 25 Nov 2004 19:38:05 +0000 (19:38 +0000)]
Adjust to Compressor interface change

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18249 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRestrict the interface to not allow algorithm selection
Reid Spencer [Thu, 25 Nov 2004 19:37:42 +0000 (19:37 +0000)]
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

17 years agoAdd some instructions about ranlib'ing the CFE runtime libraries so that
Reid Spencer [Thu, 25 Nov 2004 17:13:17 +0000 (17:13 +0000)]
Add some instructions about ranlib'ing the CFE runtime libraries so that
they link faster. This should eventually be codified into the CFE's

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18247 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRevise to LLVM makefile standards.
Reid Spencer [Thu, 25 Nov 2004 16:12:25 +0000 (16:12 +0000)]
Revise to LLVM makefile standards.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18246 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoInitial Version from bzip2 Release 1.0.2.
Reid Spencer [Thu, 25 Nov 2004 16:11:36 +0000 (16:11 +0000)]
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

17 years agoCorrect the configuration variable used to find the bin directory.
Reid Spencer [Thu, 25 Nov 2004 09:36:28 +0000 (09:36 +0000)]
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

17 years agoImplement dependent library linking. It is no longer required that -lstdc++
Reid Spencer [Thu, 25 Nov 2004 09:32:08 +0000 (09:32 +0000)]
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

17 years agoRemove blank comment lines for uniformity.
Reid Spencer [Thu, 25 Nov 2004 09:29:44 +0000 (09:29 +0000)]
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

17 years agoAdd a convenience target to build all three modes: Debug, Release, Profile
Reid Spencer [Thu, 25 Nov 2004 09:08:54 +0000 (09:08 +0000)]
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

17 years agoGack. Actually use the correct variable name in setting the JIT support.
Reid Spencer [Thu, 25 Nov 2004 07:28:19 +0000 (07:28 +0000)]
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

17 years agoEnable optimization suggested by Chris Lattner to not emit reloc stubs for
Nate Begeman [Thu, 25 Nov 2004 07:09:01 +0000 (07:09 +0000)]
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

17 years agoThe PPC backend is basically stable, and has a JIT now.
Chris Lattner [Thu, 25 Nov 2004 06:33:10 +0000 (06:33 +0000)]
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

17 years agoBug fixed
Chris Lattner [Thu, 25 Nov 2004 06:31:42 +0000 (06:31 +0000)]
Bug fixed

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18237 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoNew testcase for PR451
Chris Lattner [Thu, 25 Nov 2004 06:25:13 +0000 (06:25 +0000)]
New testcase for PR451

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18236 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix the build on non ppc machines
Chris Lattner [Thu, 25 Nov 2004 06:14:45 +0000 (06:14 +0000)]
Fix the build on non ppc machines

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18235 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoPR256 fixed.
Reid Spencer [Thu, 25 Nov 2004 06:07:42 +0000 (06:07 +0000)]
PR256 fixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18234 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix the lib/System/platform link by using proper cached variable name.
Reid Spencer [Thu, 25 Nov 2004 06:03:14 +0000 (06:03 +0000)]
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

17 years agoFor PR256:
Reid Spencer [Thu, 25 Nov 2004 04:51:04 +0000 (04:51 +0000)]
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

17 years agoCache the value of this test.
Reid Spencer [Thu, 25 Nov 2004 04:44:46 +0000 (04:44 +0000)]
Cache the value of this test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18231 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTidy up the indentation. Give the cache variable a proper name.
Reid Spencer [Thu, 25 Nov 2004 04:43:54 +0000 (04:43 +0000)]
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

17 years agoEliminate duplicate "checking" message.
Reid Spencer [Thu, 25 Nov 2004 04:42:25 +0000 (04:42 +0000)]
Eliminate duplicate "checking" message.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18229 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThe JIT works enough
Chris Lattner [Thu, 25 Nov 2004 04:14:54 +0000 (04:14 +0000)]
The JIT works enough

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18228 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix encoding of fsel, fixing olden/power, McCat/bisort and several others.
Chris Lattner [Thu, 25 Nov 2004 04:11:07 +0000 (04:11 +0000)]
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

17 years agoFix encoding of fneg instruction
Chris Lattner [Thu, 25 Nov 2004 03:53:44 +0000 (03:53 +0000)]
Fix encoding of fneg instruction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18226 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix encoding of swari, fixing several programs, including Olden/mst
Chris Lattner [Thu, 25 Nov 2004 03:40:20 +0000 (03:40 +0000)]
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

17 years agoMake the check print something, give the cache var an llvm specific name.
Reid Spencer [Thu, 25 Nov 2004 03:33:03 +0000 (03:33 +0000)]
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

17 years agoThere is not a 1-1 mappign between llvm blocks and PPC blocks, do not use
Chris Lattner [Thu, 25 Nov 2004 00:33:57 +0000 (00:33 +0000)]
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

17 years ago* Rename existing relocations to be more specific
Chris Lattner [Wed, 24 Nov 2004 22:30:08 +0000 (22:30 +0000)]
* 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

17 years agoAdd the same optimization that we do loading from fixed alloca slots to
Nate Begeman [Wed, 24 Nov 2004 21:53:14 +0000 (21:53 +0000)]
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

17 years agoWrite CompilationCallback as an explicit assembly stub to avoid getting GCC's
Chris Lattner [Wed, 24 Nov 2004 21:01:46 +0000 (21:01 +0000)]
Write CompilationCallback as an explicit assembly stub to avoid getting GCC's

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18220 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoWhen rewriting the original call instruction, make sure to rewrite it to
Chris Lattner [Wed, 24 Nov 2004 18:00:02 +0000 (18:00 +0000)]
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

17 years agoForce the intregs ptr into R2 and the FPregs ptr into R3. This fixes a really
Chris Lattner [Wed, 24 Nov 2004 17:42:55 +0000 (17:42 +0000)]
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

17 years agoImplement and document prefix options with arbitrary values including an
Reid Spencer [Wed, 24 Nov 2004 06:13:42 +0000 (06:13 +0000)]
Implement and document prefix options with arbitrary values including an
= sign. This needed to support -DNAME=value options as pass-through in

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18203 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate list of failing benchmarks.
Brian Gaeke [Wed, 24 Nov 2004 04:07:42 +0000 (04:07 +0000)]
Update list of failing benchmarks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18202 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix bug in emitGEPOperation with large struct-member offsets.
Brian Gaeke [Wed, 24 Nov 2004 04:07:33 +0000 (04:07 +0000)]
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

17 years agoFix a few more tests by encoding the extsb and other XForm11 instructions
Chris Lattner [Wed, 24 Nov 2004 03:52:02 +0000 (03:52 +0000)]
Fix a few more tests by encoding the extsb and other XForm11 instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18200 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix the encoding of ORi and other DForm4 instructions. This brings us to
Chris Lattner [Wed, 24 Nov 2004 02:15:41 +0000 (02:15 +0000)]
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

17 years agoLoads are relocatable too
Chris Lattner [Wed, 24 Nov 2004 02:03:44 +0000 (02:03 +0000)]
Loads are relocatable too

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18198 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoCalls do not need a MovPCtoLR instruction
Chris Lattner [Wed, 24 Nov 2004 02:00:06 +0000 (02:00 +0000)]
Calls do not need a MovPCtoLR instruction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18197 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoGet constant pools working. This fixes even more programs, allowing us to
Chris Lattner [Wed, 24 Nov 2004 01:56:12 +0000 (01:56 +0000)]
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

17 years agoForced branches to be first to be scheduled.
Tanya Lattner [Wed, 24 Nov 2004 01:49:10 +0000 (01:49 +0000)]
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

17 years agoRewrite branches more closely to correct. This makes more stuff pass, and
Chris Lattner [Wed, 24 Nov 2004 01:35:12 +0000 (01:35 +0000)]
Rewrite branches more closely to correct.  This makes more stuff pass, and
stops the infinite loops!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18194 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoBranch instructions explicitly represent CRx in them. bEcause of this, encode
Chris Lattner [Wed, 24 Nov 2004 01:15:19 +0000 (01:15 +0000)]
Branch instructions explicitly represent CRx in them. bEcause of this, encode
them explicitly as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18193 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix encoding of bctrl, and remove some unused instructions
Nate Begeman [Wed, 24 Nov 2004 00:16:37 +0000 (00:16 +0000)]
Fix encoding of bctrl, and remove some unused instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18192 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake sure additional C++ suffixes are recognized by llvmc.
Reid Spencer [Wed, 24 Nov 2004 00:01:57 +0000 (00:01 +0000)]
Make sure additional C++ suffixes are recognized by llvmc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18191 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd the configurable configuration files for llvmc.
Reid Spencer [Tue, 23 Nov 2004 23:48:45 +0000 (23:48 +0000)]
Add the configurable configuration files for llvmc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18190 91177308-0d34-0410-b5e6-96231b3b80d8

17 years ago* Adjust the options to make them either accept multiple occurrences or be
Reid Spencer [Tue, 23 Nov 2004 23:47:58 +0000 (23:47 +0000)]
* Adjust the options to make them either accept multiple occurrences or be
  optional so that compatibility with GCC is accomplished.
* Implement the -print-file-name option in an attempt to provide the same
  functionality as GCC. Unfortunately, without loading the cpp or c config
  files, this option won't help much.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18189 91177308-0d34-0410-b5e6-96231b3b80d8

17 years ago* Don't pass empty arguments to ExecuteAndWait because it can cause the
Reid Spencer [Tue, 23 Nov 2004 23:45:49 +0000 (23:45 +0000)]
* Don't pass empty arguments to ExecuteAndWait because it can cause the
  sub-tool to start reading its standard input instead of the specified
* Clean up ouput of path names on error.
* Extend GetPathForLinkageItem to always search the LibraryPaths and thus
  make it suitable for an interface function (required by llvmc.cpp).
* Implement support for language-specific default library paths.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18188 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoConfiguration data now supports a vector of library paths.
Reid Spencer [Tue, 23 Nov 2004 23:40:06 +0000 (23:40 +0000)]
Configuration data now supports a vector of library paths.
Add the GetPathForLinkageItem method to the interface so full paths can
be generated for a given linkage item.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18187 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd the c and cpp configuration files.
Reid Spencer [Tue, 23 Nov 2004 23:38:46 +0000 (23:38 +0000)]
Add the c and cpp configuration files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18186 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemoved in favor of configurable (*.in) versions.
Reid Spencer [Tue, 23 Nov 2004 23:38:07 +0000 (23:38 +0000)]
Removed in favor of configurable (*.in) versions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18185 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake various adjustments to parsing so that the separator character doesn't
Reid Spencer [Tue, 23 Nov 2004 23:37:26 +0000 (23:37 +0000)]
Make various adjustments to parsing so that the separator character doesn't
terminate options or paths, so that SPACE tokens legally separate options
on a command line, and so that the lang.libs paths are parsed properly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18184 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSPACE is a legitimate token now, to separate option words.
Reid Spencer [Tue, 23 Nov 2004 23:35:50 +0000 (23:35 +0000)]
SPACE is a legitimate token now, to separate option words.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18183 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoHandle space, separators, bad substitutions, and library search path better
Reid Spencer [Tue, 23 Nov 2004 23:35:16 +0000 (23:35 +0000)]
Handle space, separators, bad substitutions, and library search path better
than before.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18182 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoConfigurable language configuration files.
Reid Spencer [Tue, 23 Nov 2004 23:33:08 +0000 (23:33 +0000)]
Configurable language configuration files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18181 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAllow reading of member names that begin with an _ character.
Reid Spencer [Tue, 23 Nov 2004 22:35:39 +0000 (22:35 +0000)]
Allow reading of member names that begin with an _ character.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18179 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix encoding of blr and bctr
Chris Lattner [Tue, 23 Nov 2004 22:06:24 +0000 (22:06 +0000)]
Fix encoding of blr and bctr

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18178 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdded remark about GCC 3.2.2. Someone with more knowledge of the problem
John Criswell [Tue, 23 Nov 2004 22:06:24 +0000 (22:06 +0000)]
Added remark about GCC 3.2.2.  Someone with more knowledge of the problem
can elaborate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18177 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUse the correct register class as a constaint to gcc's inline assembly, so
Nate Begeman [Tue, 23 Nov 2004 21:37:22 +0000 (21:37 +0000)]
Use the correct register class as a constaint to gcc's inline assembly, so
that we don't end up trying to use r0 as a base register.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18176 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSave/Restore arg regs and nonvolatile regs the compiler might use during
Nate Begeman [Tue, 23 Nov 2004 21:34:18 +0000 (21:34 +0000)]
Save/Restore arg regs and nonvolatile regs the compiler might use during

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18175 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix the encoding of OR, AND and many other instructions
Chris Lattner [Tue, 23 Nov 2004 21:17:35 +0000 (21:17 +0000)]
Fix the encoding of OR, AND and many other instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18174 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSupport shr long/ulong.
Brian Gaeke [Tue, 23 Nov 2004 21:10:50 +0000 (21:10 +0000)]
Support shr long/ulong.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18173 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSupport printing ConstantAggregateZeros.
Brian Gaeke [Tue, 23 Nov 2004 21:10:49 +0000 (21:10 +0000)]
Support printing ConstantAggregateZeros.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18172 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate failing SingleSource test-case list.
Brian Gaeke [Tue, 23 Nov 2004 21:10:48 +0000 (21:10 +0000)]
Update failing SingleSource test-case list.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18171 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove argtype and argcount magic, which was used by the old asmprinter.
Chris Lattner [Tue, 23 Nov 2004 20:41:34 +0000 (20:41 +0000)]
Remove argtype and argcount magic, which was used by the old asmprinter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18170 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoGet rid of flags that are dead
Chris Lattner [Tue, 23 Nov 2004 20:37:41 +0000 (20:37 +0000)]
Get rid of flags that are dead

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18169 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoWe also provide a source distribution of the GCC front-end
Misha Brukman [Tue, 23 Nov 2004 19:26:24 +0000 (19:26 +0000)]
We also provide a source distribution of the GCC front-end

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18166 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix encoding of rlwinm?
Chris Lattner [Tue, 23 Nov 2004 19:23:32 +0000 (19:23 +0000)]
Fix encoding of rlwinm?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18165 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix encodings
Chris Lattner [Tue, 23 Nov 2004 19:23:18 +0000 (19:23 +0000)]
Fix encodings

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18164 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoEnumerate CR registers
Chris Lattner [Tue, 23 Nov 2004 18:59:59 +0000 (18:59 +0000)]
Enumerate CR registers

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18162 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoInitial implementation of exiting CompilationCallback
Chris Lattner [Tue, 23 Nov 2004 18:49:46 +0000 (18:49 +0000)]
Initial implementation of exiting CompilationCallback

This should save all argument registers on entry and restore on exit, despite
that, simple things seem to work!!!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18161 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThis method is dead
Chris Lattner [Tue, 23 Nov 2004 18:47:55 +0000 (18:47 +0000)]
This method is dead

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18160 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove this method.
Chris Lattner [Tue, 23 Nov 2004 18:47:42 +0000 (18:47 +0000)]
Remove this method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18159 91177308-0d34-0410-b5e6-96231b3b80d8