oota-llvm.git
21 years agoThese instructions really take three operands. This fixes some assertions
Chris Lattner [Wed, 18 Jun 2003 15:09:02 +0000 (15:09 +0000)]
These instructions really take three operands.  This fixes some assertions

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

21 years agolib/CWriter/Writer.cpp: Copy AsmWriter's ConstantFP checking code here
Brian Gaeke [Tue, 17 Jun 2003 23:55:35 +0000 (23:55 +0000)]
lib/CWriter/Writer.cpp: Copy AsmWriter's ConstantFP checking code here
into a new function FPCSafeToPrint(), and use it in printConstant()
and printFunction() to decide whether we should output ConstantFPs as
floating-point constants or as references to stack-allocated variables.

lib/VMCore/AsmWriter.cpp: Fix an apparent typo in the code mentioned above.

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

21 years agoAdd #ifdef hack for MAP_ANONYMOUS being spelled MAP_ANON on some platforms.
Brian Gaeke [Tue, 17 Jun 2003 23:14:06 +0000 (23:14 +0000)]
Add #ifdef hack for MAP_ANONYMOUS being spelled MAP_ANON on some platforms.
(We're already talking about autoconf'ing this, so I'm assuming this hack
will be short-lived...I just don't want it to get lost in my working files.)

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

21 years agoMake testcase more interesting, remove absolute path from -load line
Chris Lattner [Tue, 17 Jun 2003 22:21:55 +0000 (22:21 +0000)]
Make testcase more interesting, remove absolute path from -load line

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

21 years agoInitial checkin of DAE pass
Chris Lattner [Tue, 17 Jun 2003 22:21:05 +0000 (22:21 +0000)]
Initial checkin of DAE pass

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

21 years ago* Add new CallSite::get factory method
Chris Lattner [Tue, 17 Jun 2003 22:16:59 +0000 (22:16 +0000)]
* Add new CallSite::get factory method
* add new setCalledFunction method
* FIX arg_end method which was horribly broken!

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

21 years agoAdd new op_erase method
Chris Lattner [Tue, 17 Jun 2003 22:15:55 +0000 (22:15 +0000)]
Add new op_erase method

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

21 years agoMake sure accessor is properly doxygenized. It wants two lines
Chris Lattner [Tue, 17 Jun 2003 21:44:51 +0000 (21:44 +0000)]
Make sure accessor is properly doxygenized.  It wants two lines

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

21 years agoAdd accessor
Chris Lattner [Tue, 17 Jun 2003 21:44:31 +0000 (21:44 +0000)]
Add accessor

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

21 years agoFix to mesh with Johns recent changes
Chris Lattner [Tue, 17 Jun 2003 20:55:04 +0000 (20:55 +0000)]
Fix to mesh with Johns recent changes

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

21 years agoUse $(PLATFORMLIBDL) to selectively bring in -ldl only on those platforms where
Brian Gaeke [Tue, 17 Jun 2003 20:09:18 +0000 (20:09 +0000)]
Use $(PLATFORMLIBDL) to selectively bring in -ldl only on those platforms where
it is needed.

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

21 years agoAdd variable named PLATFORMLIBDL to control OS-specific usage of libdl.
Brian Gaeke [Tue, 17 Jun 2003 20:08:02 +0000 (20:08 +0000)]
Add variable named PLATFORMLIBDL to control OS-specific usage of libdl.

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

21 years agoUse std::isnan instead of isnan. Brought back to you from the
Brian Gaeke [Tue, 17 Jun 2003 19:59:17 +0000 (19:59 +0000)]
Use std::isnan instead of isnan.  Brought back to you from the
future, by the reconciliation of the C++ and C99 standards. Someday.

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

21 years agoPut ifdefs around use of malloc.h/mallinfo, which isn't available on FreeBSD.
Brian Gaeke [Tue, 17 Jun 2003 19:54:00 +0000 (19:54 +0000)]
Put ifdefs around use of malloc.h/mallinfo, which isn't available on FreeBSD.

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

21 years agoMake CallSite's default constructable, copyable, and assignable (explicitly)
Chris Lattner [Tue, 17 Jun 2003 19:50:28 +0000 (19:50 +0000)]
Make CallSite's default constructable, copyable, and assignable (explicitly)

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

21 years agoLife is too short. Link in too much stuff on Linux to make building on sun easier
Chris Lattner [Tue, 17 Jun 2003 19:14:59 +0000 (19:14 +0000)]
Life is too short.  Link in too much stuff on Linux to make building on sun easier

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

21 years agoThe never-ending odyssey trying to get sparc to link
Chris Lattner [Tue, 17 Jun 2003 18:19:52 +0000 (18:19 +0000)]
The never-ending odyssey trying to get sparc to link

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

21 years agoMake sure to get the value of ARCH before we use it
Chris Lattner [Tue, 17 Jun 2003 17:53:35 +0000 (17:53 +0000)]
Make sure to get the value of ARCH before we use it

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

21 years agoDo not link in the Sparc JIT when building on X86. Eventually the sparc will not
Chris Lattner [Tue, 17 Jun 2003 15:54:52 +0000 (15:54 +0000)]
Do not link in the Sparc JIT when building on X86.  Eventually the sparc will not
link in the X86 JIT either, but this makes testing easier.

For some reason, the sparc JIT was breaking the X86 JIT when it was linked in. :(

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

21 years agoApparently "sparc" is a macro on sparcs. Ugh. :)
Chris Lattner [Tue, 17 Jun 2003 15:54:02 +0000 (15:54 +0000)]
Apparently "sparc" is a macro on sparcs.  Ugh.  :)

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

21 years agoWhoops, didn't mean to check that in :(
Chris Lattner [Tue, 17 Jun 2003 15:46:34 +0000 (15:46 +0000)]
Whoops, didn't mean to check that in  :(

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

21 years agoUse more structured command line option processing
Chris Lattner [Tue, 17 Jun 2003 15:43:13 +0000 (15:43 +0000)]
Use more structured command line option processing

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

21 years ago#ifdef out code that only applies when the HOSTARCH = sparc
Chris Lattner [Tue, 17 Jun 2003 15:32:38 +0000 (15:32 +0000)]
#ifdef out code that only applies when the HOSTARCH = sparc

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

21 years agoImplement handling of constantexprs for disambiguation. This implements
Chris Lattner [Tue, 17 Jun 2003 15:25:37 +0000 (15:25 +0000)]
Implement handling of constantexprs for disambiguation.  This implements
BasicAA/featuretest.ll:constexpr_test

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

21 years agoAdd new testcase
Chris Lattner [Tue, 17 Jun 2003 15:16:35 +0000 (15:16 +0000)]
Add new testcase

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

21 years agoAvoid divide by zero errors
Chris Lattner [Tue, 17 Jun 2003 15:07:20 +0000 (15:07 +0000)]
Avoid divide by zero errors

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

21 years agoFix misspelling of ExtraSources, hopefully to unbreak the nightly tester
Chris Lattner [Tue, 17 Jun 2003 14:30:21 +0000 (14:30 +0000)]
Fix misspelling of ExtraSources, hopefully to unbreak the nightly tester
Remove evil rcs tag :)

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

21 years agoFix bug: Assembler/2003-06-17-InvokeDisassemble.llx
Chris Lattner [Tue, 17 Jun 2003 13:31:10 +0000 (13:31 +0000)]
Fix bug: Assembler/2003-06-17-InvokeDisassemble.llx

"yes, invoke instructions can have just three arguments"

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

21 years agoNew testcase
Chris Lattner [Tue, 17 Jun 2003 13:21:13 +0000 (13:21 +0000)]
New testcase

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

21 years agoFairly major change: emit fixed sized allocas in the entry block as a variable,
Chris Lattner [Tue, 17 Jun 2003 04:39:14 +0000 (04:39 +0000)]
Fairly major change: emit fixed sized allocas in the entry block as a variable,
instead of a variable pointer and an alloca.  All accesses to the variable then
use the address-of operator to access it.  This plays better with the internal
GCC code generation phases, which bail early on functions which contain allocas.
It also makes the code a bit easier to read.

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

21 years agoDon't corrupt memory when removing an instruction from the program, but
Chris Lattner [Tue, 17 Jun 2003 03:57:18 +0000 (03:57 +0000)]
Don't corrupt memory when removing an instruction from the program, but
not the worklist

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

21 years agoRegularize the names of #include-guards.
Brian Gaeke [Tue, 17 Jun 2003 00:35:55 +0000 (00:35 +0000)]
Regularize the names of #include-guards.

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

21 years agoJust _EXTEND_ the current path. Don't replace it. Replacing it makes it
Chris Lattner [Tue, 17 Jun 2003 00:27:43 +0000 (00:27 +0000)]
Just _EXTEND_ the current path.  Don't replace it.  Replacing it makes it
impossible for scripts to find user tools like sed.

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

21 years agoArg, sparc doesn't have correct things in math.h!
Chris Lattner [Tue, 17 Jun 2003 00:03:56 +0000 (00:03 +0000)]
Arg, sparc doesn't have correct things in math.h!

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

21 years agoDon't include alloca.h on FreeBSD.
Brian Gaeke [Mon, 16 Jun 2003 23:57:13 +0000 (23:57 +0000)]
Don't include alloca.h on FreeBSD.

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

21 years agoActually, change it to use explicit new/delete, which is more likely to be
Chris Lattner [Mon, 16 Jun 2003 22:29:09 +0000 (22:29 +0000)]
Actually, change it to use explicit new/delete, which is more likely to be
optimized INTO an alloca

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

21 years agoRemove usage of alloca
Chris Lattner [Mon, 16 Jun 2003 22:22:11 +0000 (22:22 +0000)]
Remove usage of alloca

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

21 years agoRemove two using decls
Chris Lattner [Mon, 16 Jun 2003 22:18:28 +0000 (22:18 +0000)]
Remove two using decls
Remove usage of alloca

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

21 years agoBasically this is the same as Makefile.Linux, at least for now.
Brian Gaeke [Mon, 16 Jun 2003 22:01:55 +0000 (22:01 +0000)]
Basically this is the same as Makefile.Linux, at least for now.

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

21 years agoIsolate machine-dependent use of <alloca.h> in "Support/Alloca.h",
Brian Gaeke [Mon, 16 Jun 2003 21:54:01 +0000 (21:54 +0000)]
Isolate machine-dependent use of <alloca.h> in "Support/Alloca.h",
so that we can easily change its use to be conditional on the result of
an autoconf test later.

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

21 years agoWhoops. I didn't mean to step on John's changes.
Brian Gaeke [Mon, 16 Jun 2003 21:18:20 +0000 (21:18 +0000)]
Whoops. I didn't mean to step on John's changes.

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

21 years agoThis version supports FreeBSD.
Brian Gaeke [Mon, 16 Jun 2003 21:14:57 +0000 (21:14 +0000)]
This version supports FreeBSD.

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

21 years agoReconfigured the TOOLS variable so that it points to the current set of tools
John Criswell [Mon, 16 Jun 2003 19:16:32 +0000 (19:16 +0000)]
Reconfigured the TOOLS variable so that it points to the current set of tools
built by the LLVM build.
Added a path for use with the TestRunner.sh script so that it can always find
the LLVM tools without having the user place them in his or her path.

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

21 years agoModified the environment variables that determine where things are located to
John Criswell [Mon, 16 Jun 2003 19:14:31 +0000 (19:14 +0000)]
Modified the environment variables that determine where things are located to
do the following:
1) Determine their default values without $HOME
2) Configure the default values as full absolute pathnames.
This should help fix the nightly test builds.

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

21 years agoRename FInfo.cpp to FunctionInfo.cpp, eliminate FInfo.h
Chris Lattner [Mon, 16 Jun 2003 15:31:52 +0000 (15:31 +0000)]
Rename FInfo.cpp to FunctionInfo.cpp, eliminate FInfo.h

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

21 years agomove contents of include/llvm/Reoptimizer/Mapping/FInfo.h into here, it is sparc...
Chris Lattner [Mon, 16 Jun 2003 15:31:09 +0000 (15:31 +0000)]
move contents of include/llvm/Reoptimizer/Mapping/FInfo.h into here, it is sparc internal

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

21 years agoMinor tweak to make testcase less simple
Chris Lattner [Mon, 16 Jun 2003 14:04:18 +0000 (14:04 +0000)]
Minor tweak to make testcase less simple

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

21 years agoNew testcase identified by joel
Chris Lattner [Mon, 16 Jun 2003 13:33:59 +0000 (13:33 +0000)]
New testcase identified by joel

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

21 years agoNew testcase identified by joel
Chris Lattner [Mon, 16 Jun 2003 13:16:20 +0000 (13:16 +0000)]
New testcase identified by joel

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

21 years agoFix final linking errors
Chris Lattner [Mon, 16 Jun 2003 12:27:12 +0000 (12:27 +0000)]
Fix final linking errors

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

21 years agoFix link errors by adding main's
Chris Lattner [Mon, 16 Jun 2003 12:25:11 +0000 (12:25 +0000)]
Fix link errors by adding main's

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

21 years agoFix link problem
Chris Lattner [Mon, 16 Jun 2003 12:23:27 +0000 (12:23 +0000)]
Fix link problem

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

21 years agoFix typeo
Chris Lattner [Mon, 16 Jun 2003 12:21:19 +0000 (12:21 +0000)]
Fix typeo

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

21 years agoAdd prototype for the new DAE pass
Chris Lattner [Mon, 16 Jun 2003 12:16:52 +0000 (12:16 +0000)]
Add prototype for the new DAE pass

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

21 years agoFix bug: Linker/2003-06-02-TypeResolveProblem2.ll
Chris Lattner [Mon, 16 Jun 2003 12:11:33 +0000 (12:11 +0000)]
Fix bug: Linker/2003-06-02-TypeResolveProblem2.ll

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

21 years agoFix bug: ADCE/2003-06-11-InvalidCFG.ll
Chris Lattner [Mon, 16 Jun 2003 12:10:45 +0000 (12:10 +0000)]
Fix bug: ADCE/2003-06-11-InvalidCFG.ll
This was because we were deleting large chunks of functions without an exit block, because the post-dominance
information was not useful.  This broke crafty and twolf.

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

21 years agoFix bug: CBackend/2003-06-11-HexConstant.ll
Chris Lattner [Mon, 16 Jun 2003 12:09:09 +0000 (12:09 +0000)]
Fix bug: CBackend/2003-06-11-HexConstant.ll
Fix bug: CBackend/2003-06-11-LiteralStringProblem.ll

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

21 years agoNodes get forwarded when they are collapsed currently.
Chris Lattner [Mon, 16 Jun 2003 12:08:18 +0000 (12:08 +0000)]
Nodes get forwarded when they are collapsed currently.

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

21 years agoRemove bogus assertion: a node with no referrers could be collapsed if field-sensitiv...
Chris Lattner [Mon, 16 Jun 2003 12:07:39 +0000 (12:07 +0000)]
Remove bogus assertion: a node with no referrers could be collapsed if field-sensitivity was disabled

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

21 years agoImplement forwarding from stores to loads of must-aliased pointers.
Chris Lattner [Mon, 16 Jun 2003 12:06:41 +0000 (12:06 +0000)]
Implement forwarding from stores to loads of must-aliased pointers.
This implements: GCSE/2003-06-13-LoadStoreEliminate.ll

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

21 years agoNew testcases for bugs and the new DAE pass
Chris Lattner [Mon, 16 Jun 2003 12:05:38 +0000 (12:05 +0000)]
New testcases for bugs and the new DAE pass

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

21 years agoFix invalid number of arguments problem
Chris Lattner [Mon, 16 Jun 2003 12:03:00 +0000 (12:03 +0000)]
Fix invalid number of arguments problem

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

21 years agoFix testcase to work with store forwarding
Chris Lattner [Mon, 16 Jun 2003 11:59:34 +0000 (11:59 +0000)]
Fix testcase to work with store forwarding

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

21 years agoFix major bug in my last checkin. :(
Chris Lattner [Fri, 13 Jun 2003 16:10:26 +0000 (16:10 +0000)]
Fix major bug in my last checkin.  :(

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

21 years agoReverted back to hand-made HTML.
John Criswell [Thu, 12 Jun 2003 19:34:44 +0000 (19:34 +0000)]
Reverted back to hand-made HTML.
Added in updates for new Makefile variables and corrected some punctuation.

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

21 years agoRemove obsolete comments about llvm-ar
Chris Lattner [Thu, 12 Jun 2003 18:57:42 +0000 (18:57 +0000)]
Remove obsolete comments about llvm-ar

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

21 years agoUpdated the documentation to reflect changes in the Makefiles for building
John Criswell [Wed, 11 Jun 2003 20:46:40 +0000 (20:46 +0000)]
Updated the documentation to reflect changes in the Makefiles for building
projects.
Fixed some small grammatical errors.
Using Netscape Composer seems to have added stuff that makes the page look
exactly the same.  Bah!  Curse my laziness!

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

21 years agoChanged the LITTLE_ENDIAN and BIG_ENDIAN macros to ENDIAN_LITTLE and ENDIAN_BIG.
John Criswell [Wed, 11 Jun 2003 19:44:51 +0000 (19:44 +0000)]
Changed the LITTLE_ENDIAN and BIG_ENDIAN macros to ENDIAN_LITTLE and ENDIAN_BIG.
This will prevent them from conflicting with macros defined by the system
header files.
When autoconf comes, this will look a lot nicer.

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

21 years agoAdded assert.h so that it compiles under newer versions of GCC.
John Criswell [Wed, 11 Jun 2003 14:17:21 +0000 (14:17 +0000)]
Added assert.h so that it compiles under newer versions of GCC.

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

21 years agoIncluded assert.h so that the code compiles under newer versions of GCC.
John Criswell [Wed, 11 Jun 2003 14:01:36 +0000 (14:01 +0000)]
Included assert.h so that the code compiles under newer versions of GCC.

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

21 years agoUpdated to the new Makefile.common.
John Criswell [Wed, 11 Jun 2003 13:57:48 +0000 (13:57 +0000)]
Updated to the new Makefile.common.
Modified the test rule so that it can be added to the regular test rule
(I believe the term is double dependency?).

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

21 years agoUpdated to use the new Makefile.common.
John Criswell [Wed, 11 Jun 2003 13:56:55 +0000 (13:56 +0000)]
Updated to use the new Makefile.common.
Replaced the hard-coded compiler variable with the one defined by
Makefile.config.

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

21 years agoModified Makefile.common to handle compilation of projects inside and outside
John Criswell [Wed, 11 Jun 2003 13:55:44 +0000 (13:55 +0000)]
Modified Makefile.common to handle compilation of projects inside and outside
of the llvm source directory.
The main modification was to add new environment variables: one set for llvm
entities and another set for source entities current being compiled.
This should make the Makefile more flexible and easier to understand as each
environment variable only does one thing.

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

21 years agoUpdated for the new projects Makefile.
John Criswell [Wed, 11 Jun 2003 13:49:11 +0000 (13:49 +0000)]
Updated for the new projects Makefile.

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

21 years agoadd some comments
Guochun Shi [Tue, 10 Jun 2003 20:04:30 +0000 (20:04 +0000)]
add some comments
add a function ModuloScheduling::dumpFinalSchedule() to print out final schedule

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

21 years agoadd an brief instruction what this pass is
Guochun Shi [Tue, 10 Jun 2003 20:03:39 +0000 (20:03 +0000)]
add an brief instruction what this pass is

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

21 years agoa simple introduction to this pass
Guochun Shi [Tue, 10 Jun 2003 20:02:16 +0000 (20:02 +0000)]
a simple introduction to this pass

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

21 years agocleaned code
Guochun Shi [Tue, 10 Jun 2003 19:09:00 +0000 (19:09 +0000)]
cleaned code
add some comments

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

21 years agodelete useless functions
Guochun Shi [Sun, 8 Jun 2003 23:16:07 +0000 (23:16 +0000)]
delete useless functions
add comment

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

21 years ago change DEBUG to DEBUG_PRINT
Guochun Shi [Sun, 8 Jun 2003 20:40:47 +0000 (20:40 +0000)]
 change DEBUG  to DEBUG_PRINT

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

21 years agoFix bug in environment setting
Chris Lattner [Sun, 8 Jun 2003 15:33:25 +0000 (15:33 +0000)]
Fix bug in environment setting

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

21 years agoAdd #include for older GCC's
Chris Lattner [Sun, 8 Jun 2003 06:43:57 +0000 (06:43 +0000)]
Add #include for older GCC's

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

21 years agoFix bug: LevelRaise/2003-06-07-EmptyArrayTest.ll
Chris Lattner [Sat, 7 Jun 2003 21:45:42 +0000 (21:45 +0000)]
Fix bug: LevelRaise/2003-06-07-EmptyArrayTest.ll

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

21 years agoNew testcase
Chris Lattner [Sat, 7 Jun 2003 21:43:56 +0000 (21:43 +0000)]
New testcase

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

21 years agoFix compilation problem on GCC 2.9x
Chris Lattner [Sat, 7 Jun 2003 20:29:58 +0000 (20:29 +0000)]
Fix compilation problem on GCC 2.9x

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

21 years agoDo not hastily change the Opcode from 'r' to 'i' type if we're not actually
Misha Brukman [Sat, 7 Jun 2003 02:34:43 +0000 (02:34 +0000)]
Do not hastily change the Opcode from 'r' to 'i' type if we're not actually
SETTING the operand to be an immediate or have verified that one of the operands
is really a SignExtended or Unextended immediate value already, which warrants
an 'i' opcode.

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

21 years agoOld versions of GCC doesn't have <ostream> :(
Chris Lattner [Fri, 6 Jun 2003 23:06:20 +0000 (23:06 +0000)]
Old versions of GCC doesn't have <ostream> :(

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

21 years agoFix compilation problem with some versions of G++
Chris Lattner [Fri, 6 Jun 2003 22:13:01 +0000 (22:13 +0000)]
Fix compilation problem with some versions of G++

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

21 years agoFix problem with perror
Chris Lattner [Fri, 6 Jun 2003 21:09:29 +0000 (21:09 +0000)]
Fix problem with perror

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

21 years agoFix warnings on Sparc
Chris Lattner [Fri, 6 Jun 2003 18:25:33 +0000 (18:25 +0000)]
Fix warnings on Sparc

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

21 years agoPrint address out as hex.
Misha Brukman [Fri, 6 Jun 2003 09:53:28 +0000 (09:53 +0000)]
Print address out as hex.

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

21 years agoAdded 'r' and 'i' versions to WRCCR.
Misha Brukman [Fri, 6 Jun 2003 09:52:58 +0000 (09:52 +0000)]
Added 'r' and 'i' versions to WRCCR.

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

21 years ago* Changed Bcc instructions to behave like BPcc instructions
Misha Brukman [Fri, 6 Jun 2003 09:52:23 +0000 (09:52 +0000)]
* Changed Bcc instructions to behave like BPcc instructions
* BPA and BPN do not take a %cc register as a parameter
* SLL/SRL/SRA{r,i}5 are there for a reason - they are ONLY 32-bit instructions
* Likewise, SLL/SRL/SRAX{r,i}6 are only 64-bit
* Added WRCCR{r,i} opcodes

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

21 years agoReturn 'int 0' instead of 'void' so that the test can be seen as successful.
Misha Brukman [Fri, 6 Jun 2003 08:00:40 +0000 (08:00 +0000)]
Return 'int 0' instead of 'void' so that the test can be seen as successful.

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

21 years agoReturn 'int 0' instead of void so that the test can be considered to pass.
Misha Brukman [Fri, 6 Jun 2003 07:58:29 +0000 (07:58 +0000)]
Return 'int 0' instead of void so that the test can be considered to pass.

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

21 years ago* Removed PreSelection pass because that is now done in the JIT
Misha Brukman [Fri, 6 Jun 2003 07:11:16 +0000 (07:11 +0000)]
* Removed PreSelection pass because that is now done in the JIT
* Removed instruction scheduling as it is too slow to run in a JIT environment
* Removed other passes because they aren't necessary and can slow JIT down

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

21 years agoDon't output explicit initializers for globals that are zero initialized
Chris Lattner [Fri, 6 Jun 2003 07:10:24 +0000 (07:10 +0000)]
Don't output explicit initializers for globals that are zero initialized

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

21 years ago::: HACK ALERT ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT :::
Misha Brukman [Fri, 6 Jun 2003 06:59:55 +0000 (06:59 +0000)]
::: HACK ALERT ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT :::

The JIT is designed to code-generate a function at-a-time. That means that any
pass can only make local changes to its function. Period.

Because the Sparc PreSelection pass claims to be a BasicBlock pass while adding
globals to the Module, it cannot be run with the other passes, because by this
time, the globals have been output already by the JIT, and the addresses of any
globals appearing AFTER this point are not recognized.

However, the PreSelection pass is a requirement for correctness in the Sparc
codegen path, so it MUST be run.

::: HACK ALERT ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT ::: HACK ALERT :::

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

21 years agoOutput function address as hex.
Misha Brukman [Fri, 6 Jun 2003 06:52:35 +0000 (06:52 +0000)]
Output function address as hex.

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

21 years agoSimplify test case: remove declaration of __main() and call to it.
Misha Brukman [Fri, 6 Jun 2003 06:50:43 +0000 (06:50 +0000)]
Simplify test case: remove declaration of __main() and call to it.

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