oota-llvm.git
19 years agoRewrite outgoing arg handling to handle more weird corner cases.
Brian Gaeke [Sun, 14 Nov 2004 03:22:07 +0000 (03:22 +0000)]
Rewrite outgoing arg handling to handle more weird corner cases.

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

19 years agoSupport UndefValue emission.
Brian Gaeke [Sun, 14 Nov 2004 03:22:05 +0000 (03:22 +0000)]
Support UndefValue emission.

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

19 years agosetting path to prcontext.tcl script. Right now it searches for tclsh in your path...
Tanya Lattner [Sat, 13 Nov 2004 23:36:18 +0000 (23:36 +0000)]
setting path to prcontext.tcl script. Right now it searches for tclsh in your path, but this should be obtained from configure.

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

19 years agoRemove debugging code
Chris Lattner [Sat, 13 Nov 2004 23:32:53 +0000 (23:32 +0000)]
Remove debugging code

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

19 years agoArgument promotion transforms functions to unconditionally load their
Chris Lattner [Sat, 13 Nov 2004 23:31:34 +0000 (23:31 +0000)]
Argument promotion transforms functions to unconditionally load their
argument pointers.  This is only valid to do if the function already
unconditionally loaded an argument or if the pointer passed in is known
to be valid.  Make sure to do the required checks.

This fixed ArgumentPromotion/control-flow.ll and the Burg program.

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

19 years agoAdd a testcase we should continue to argpromote
Chris Lattner [Sat, 13 Nov 2004 23:30:22 +0000 (23:30 +0000)]
Add a testcase we should continue to argpromote

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

19 years agoAdd a testcase for a function we cannot legally promote the argument of.
Chris Lattner [Sat, 13 Nov 2004 23:28:39 +0000 (23:28 +0000)]
Add a testcase for a function we cannot legally promote the argument of.

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

19 years agoAdd useful method, minor cleanups
Chris Lattner [Sat, 13 Nov 2004 23:28:10 +0000 (23:28 +0000)]
Add useful method, minor cleanups

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

19 years agoDon't print unneeded labels
Chris Lattner [Sat, 13 Nov 2004 23:27:11 +0000 (23:27 +0000)]
Don't print unneeded labels

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

19 years agoRun prcontext.tcl with tclsh and let it be found in the path. This should be found...
Tanya Lattner [Sat, 13 Nov 2004 23:16:17 +0000 (23:16 +0000)]
Run prcontext.tcl with tclsh and let it be found in the path. This should be found by configure.

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

19 years agoAdding subdirectory dg.exp files in order to be able to use dejagnu to only run speci...
Tanya Lattner [Sat, 13 Nov 2004 23:00:45 +0000 (23:00 +0000)]
Adding subdirectory dg.exp files in order to be able to use dejagnu to only run specific tests (located in some subdirectory of Regression)

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

19 years agoChanged to use tcl script.
Tanya Lattner [Sat, 13 Nov 2004 22:55:51 +0000 (22:55 +0000)]
Changed to use tcl script.

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

19 years agoHack around stupidity in GCC, fixing Burg with the CBE and
Chris Lattner [Sat, 13 Nov 2004 22:21:56 +0000 (22:21 +0000)]
Hack around stupidity in GCC, fixing Burg with the CBE and
CBackend/2004-11-13-FunctionPointerCast.llx

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

19 years agoNew testcase
Chris Lattner [Sat, 13 Nov 2004 22:21:15 +0000 (22:21 +0000)]
New testcase

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

19 years agoRewrote prcontext.py in tcl.
Tanya Lattner [Sat, 13 Nov 2004 21:03:22 +0000 (21:03 +0000)]
Rewrote prcontext.py in tcl.

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

19 years agoshld is a very high latency operation. Instead of emitting it for shifts of
Chris Lattner [Sat, 13 Nov 2004 20:48:57 +0000 (20:48 +0000)]
shld is a very high latency operation. Instead of emitting it for shifts of
two or three, open code the equivalent operation which is faster on athlon
and P4 (by a substantial margin).

For example, instead of compiling this:

long long X2(long long Y) { return Y << 2; }

to:

X3_2:
        movl 4(%esp), %eax
        movl 8(%esp), %edx
        shldl $2, %eax, %edx
        shll $2, %eax
        ret

Compile it to:

X2:
        movl 4(%esp), %eax
        movl 8(%esp), %ecx
        movl %eax, %edx
        shrl $30, %edx
        leal (%edx,%ecx,4), %edx
        shll $2, %eax
        ret

Likewise, for << 3, compile to:

X3:
        movl 4(%esp), %eax
        movl 8(%esp), %ecx
        movl %eax, %edx
        shrl $29, %edx
        leal (%edx,%ecx,8), %edx
        shll $3, %eax
        ret

This matches icc, except that icc open codes the shifts as adds on the P4.

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

19 years agoAdd missing check
Chris Lattner [Sat, 13 Nov 2004 20:04:38 +0000 (20:04 +0000)]
Add missing check

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

19 years agoCompile:
Chris Lattner [Sat, 13 Nov 2004 20:03:48 +0000 (20:03 +0000)]
Compile:

long long X3_2(long long Y) { return Y+Y; }
int X(int Y) { return Y+Y; }

into:

X3_2:
        movl 4(%esp), %eax
        movl 8(%esp), %edx
        addl %eax, %eax
        adcl %edx, %edx
        ret
X:
        movl 4(%esp), %eax
        addl %eax, %eax
        ret

instead of:

X3_2:
        movl 4(%esp), %eax
        movl 8(%esp), %edx
        shldl $1, %eax, %edx
        shll $1, %eax
        ret

X:
        movl 4(%esp), %eax
        shll $1, %eax
        ret

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

19 years agoSimplify handling of shifts to be the same as we do for adds. Add support
Chris Lattner [Sat, 13 Nov 2004 19:50:12 +0000 (19:50 +0000)]
Simplify handling of shifts to be the same as we do for adds.  Add support
for (X * C1) + (X * C2) (where * can be mul or shl), allowing us to fold:

   Y+Y+Y+Y+Y+Y+Y+Y

into
         %tmp.8 = shl long %Y, ubyte 3           ; <long> [#uses=1]

instead of

        %tmp.4 = shl long %Y, ubyte 2           ; <long> [#uses=1]
        %tmp.12 = shl long %Y, ubyte 2          ; <long> [#uses=1]
        %tmp.8 = add long %tmp.4, %tmp.12               ; <long> [#uses=1]

This implements add.ll:test25

Also add support for (X*C1)-(X*C2) -> X*(C1-C2), implementing sub.ll:test18

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

19 years agoNew testcase
Chris Lattner [Sat, 13 Nov 2004 19:49:39 +0000 (19:49 +0000)]
New testcase

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

19 years agoAdd support for shifts
Chris Lattner [Sat, 13 Nov 2004 19:32:45 +0000 (19:32 +0000)]
Add support for shifts

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

19 years agoFold:
Chris Lattner [Sat, 13 Nov 2004 19:31:40 +0000 (19:31 +0000)]
Fold:
   (X + (X << C2)) --> X * ((1 << C2) + 1)
   ((X << C2) + X) --> X * ((1 << C2) + 1)

This means that we now canonicalize "Y+Y+Y" into:

        %tmp.2 = mul long %Y, 3         ; <long> [#uses=1]

instead of:

        %tmp.10 = shl long %Y, ubyte 1          ; <long> [#uses=1]
        %tmp.6 = add long %Y, %tmp.10               ; <long> [#uses=1]

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

19 years agoLazily create the abort message, so only translation units that use unwind
Chris Lattner [Sat, 13 Nov 2004 19:07:32 +0000 (19:07 +0000)]
Lazily create the abort message, so only translation units that use unwind
will actually get it.

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

19 years agoFix: CodeExtractor/2004-11-12-InvokeExtract.ll
Chris Lattner [Sat, 13 Nov 2004 00:06:45 +0000 (00:06 +0000)]
Fix: CodeExtractor/2004-11-12-InvokeExtract.ll

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

19 years agoNew testcase
Chris Lattner [Sat, 13 Nov 2004 00:06:32 +0000 (00:06 +0000)]
New testcase

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

19 years agoFix a bug where the code extractor would get a bit confused handling invoke
Chris Lattner [Fri, 12 Nov 2004 23:50:44 +0000 (23:50 +0000)]
Fix a bug where the code extractor would get a bit confused handling invoke
instructions, setting DefBlock to a block it did not have dom info for.

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

19 years agoSimplify handling of constant initializers
Chris Lattner [Fri, 12 Nov 2004 22:42:57 +0000 (22:42 +0000)]
Simplify handling of constant initializers

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

19 years agoMakefile for lib/Linker
Reid Spencer [Fri, 12 Nov 2004 20:38:45 +0000 (20:38 +0000)]
Makefile for lib/Linker

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

19 years agoThis file originated in lib/VMCore/Linker.cpp but now lives in
Reid Spencer [Fri, 12 Nov 2004 20:37:43 +0000 (20:37 +0000)]
This file originated in lib/VMCore/Linker.cpp but now lives in
lib/Linker/LinkModules.cpp

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

19 years agoThis file originated in tools/gccld/Linker.cpp but now lives in
Reid Spencer [Fri, 12 Nov 2004 20:34:32 +0000 (20:34 +0000)]
This file originated in tools/gccld/Linker.cpp but now lives in
lib/Linker/LinkArchives.cpp

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

19 years ago* Clean up all the shared library output on uninstall
Reid Spencer [Fri, 12 Nov 2004 02:27:36 +0000 (02:27 +0000)]
* Clean up all the shared library output on uninstall
* Provide the correct set of input directories to the TAGS target
* Provide a CTAGS target for building Vi style ctags files.

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

19 years agoDocument the new llvm-ranlib command.
Reid Spencer [Fri, 12 Nov 2004 00:18:35 +0000 (00:18 +0000)]
Document the new llvm-ranlib command.

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

19 years agoCorrectly terminate a list.
Reid Spencer [Fri, 12 Nov 2004 00:16:51 +0000 (00:16 +0000)]
Correctly terminate a list.

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

19 years agoDocument the modifiers and the file format.
Reid Spencer [Fri, 12 Nov 2004 00:15:43 +0000 (00:15 +0000)]
Document the modifiers and the file format.

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

19 years agoMake this build in release mode
Chris Lattner [Thu, 11 Nov 2004 22:11:17 +0000 (22:11 +0000)]
Make this build in release mode

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

19 years agoAdd llvm-ar to the index.
Reid Spencer [Thu, 11 Nov 2004 09:30:00 +0000 (09:30 +0000)]
Add llvm-ar to the index.

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

19 years agoFirst attempt at llvm-ar documentation. Modifiers need a little more
Reid Spencer [Thu, 11 Nov 2004 09:21:18 +0000 (09:21 +0000)]
First attempt at llvm-ar documentation. Modifiers need a little more
explanation.

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

19 years agoActually, leave the check in. This prevents us from counting dead arguments
Chris Lattner [Thu, 11 Nov 2004 07:47:54 +0000 (07:47 +0000)]
Actually, leave the check in.  This prevents us from counting dead arguments
as IPCP opportunities.

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

19 years agoFix bug: IPConstantProp/deadarg.ll
Chris Lattner [Thu, 11 Nov 2004 07:46:29 +0000 (07:46 +0000)]
Fix bug: IPConstantProp/deadarg.ll

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

19 years agonew testcase
Chris Lattner [Thu, 11 Nov 2004 07:46:11 +0000 (07:46 +0000)]
new testcase

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

19 years agoFix documentation for Makefile target name change. install-bytecode is now
Reid Spencer [Thu, 11 Nov 2004 07:30:27 +0000 (07:30 +0000)]
Fix documentation for Makefile target name change. install-bytecode is now
just "install" in the runtime directory.

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

19 years agoMake IP Constant prop more aggressive about handling self recursive calls.
Chris Lattner [Wed, 10 Nov 2004 19:43:59 +0000 (19:43 +0000)]
Make IP Constant prop more aggressive about handling self recursive calls.
This implements IPConstantProp/recursion.ll

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

19 years agoNew testcase
Chris Lattner [Wed, 10 Nov 2004 19:43:31 +0000 (19:43 +0000)]
New testcase

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

20 years agoCorrect the name of stosd for the AT&T syntax:
John Criswell [Wed, 10 Nov 2004 04:48:15 +0000 (04:48 +0000)]
Correct the name of stosd for the AT&T syntax:
It's stosl (l for long == 32 bit).

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

20 years agoDo not let dead constant expressions hanging off of functions prevent IPCP.
Chris Lattner [Tue, 9 Nov 2004 20:47:30 +0000 (20:47 +0000)]
Do not let dead constant expressions hanging off of functions prevent IPCP.
This allows to elimination of a bunch of global pool descriptor args from
programs being pool allocated (and is also generally useful!)

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

20 years agoProvide conversion from posix time.
Reid Spencer [Tue, 9 Nov 2004 20:29:10 +0000 (20:29 +0000)]
Provide conversion from posix time.

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

20 years agoFix isBytecodeFile to correctly recognized compressed bytecode too.
Reid Spencer [Tue, 9 Nov 2004 20:27:23 +0000 (20:27 +0000)]
Fix isBytecodeFile to correctly recognized compressed bytecode too.

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

20 years ago* Implement getStatusInfo for getting stat(2) like information
Reid Spencer [Tue, 9 Nov 2004 20:26:31 +0000 (20:26 +0000)]
* Implement getStatusInfo for getting stat(2) like information
* Implement createTemporaryFile for mkstemp(3) functionality
* Fix isBytecodeFile to accept llvc magic # (compressed) as bytecode.

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

20 years agoMake sure llee can deal with compressed bytecode too.
Reid Spencer [Tue, 9 Nov 2004 20:21:25 +0000 (20:21 +0000)]
Make sure llee can deal with compressed bytecode too.

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

20 years agoRecognize compressed LLVM bytecode files.
John Criswell [Tue, 9 Nov 2004 19:37:07 +0000 (19:37 +0000)]
Recognize compressed LLVM bytecode files.
This should fix the problem of not being able to link compressed LLVM
bytecode files from LLVM libraries.

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

20 years agoTune compression:
Reid Spencer [Tue, 9 Nov 2004 17:58:09 +0000 (17:58 +0000)]
Tune compression:
bzip2: block size 9 -> 5, reduces memory by 400Kbytes, doesn't affect speed
       or compression ratio on all but the largest bytecode files (>1MB)
zip:   level 9 -> 6, this speeds up compression time by ~30% but only
       degrades the compressed size by a few bytes per megabyte. Those few
       bytes aren't worth the effort.

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

20 years agoChange this back so that I get stable numbers to reflect the change from the
Chris Lattner [Tue, 9 Nov 2004 08:05:23 +0000 (08:05 +0000)]
Change this back so that I get stable numbers to reflect the change from the
nightly testers

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

20 years agoDocument quick-test target.
Reid Spencer [Tue, 9 Nov 2004 06:32:58 +0000 (06:32 +0000)]
Document quick-test target.

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

20 years agoAdd a quick-test target that uses QUICKTEST variable to quickly run a
Reid Spencer [Tue, 9 Nov 2004 06:28:32 +0000 (06:28 +0000)]
Add a quick-test target that uses QUICKTEST variable to quickly run a
portion of the test suite. e.g.:

make quck-test QUICKTEST=Regression/Bytecode

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

20 years agoFix bug: 2004-11-08-FreeUseCrash.ll
Chris Lattner [Tue, 9 Nov 2004 05:10:56 +0000 (05:10 +0000)]
Fix bug: 2004-11-08-FreeUseCrash.ll

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

20 years agoName file properly
Chris Lattner [Tue, 9 Nov 2004 05:07:01 +0000 (05:07 +0000)]
Name file properly

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

20 years agoHrm, don't ask how I ran into this bug
Chris Lattner [Tue, 9 Nov 2004 05:06:23 +0000 (05:06 +0000)]
Hrm, don't ask how I ran into this bug

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

20 years ago* Convert tabs to spaces
Misha Brukman [Tue, 9 Nov 2004 04:27:19 +0000 (04:27 +0000)]
* Convert tabs to spaces
* Order #includes according to style guide
* Remove extraneous blank lines

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

20 years agoOutput the program name (in this case, gccld) with warning about invalid files
Misha Brukman [Tue, 9 Nov 2004 04:24:59 +0000 (04:24 +0000)]
Output the program name (in this case, gccld) with warning about invalid files

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

20 years agoAllow hbd to be bugpointable on darwin by fixing common and linkonce codegen
Nate Begeman [Tue, 9 Nov 2004 04:01:18 +0000 (04:01 +0000)]
Allow hbd to be bugpointable on darwin by fixing common and linkonce codegen

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

20 years agoHandle headers for compressed bytecode files
Misha Brukman [Mon, 8 Nov 2004 22:03:32 +0000 (22:03 +0000)]
Handle headers for compressed bytecode files

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

20 years agoDon't silently ignore invalid files: tell the user!
Misha Brukman [Mon, 8 Nov 2004 22:03:10 +0000 (22:03 +0000)]
Don't silently ignore invalid files: tell the user!

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

20 years agoFix a bug that was preventing povray and namd from pool allocating correctly.
Chris Lattner [Mon, 8 Nov 2004 21:08:46 +0000 (21:08 +0000)]
Fix a bug that was preventing povray and namd from pool allocating correctly.

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

20 years agoHandle assert_fail special
Chris Lattner [Mon, 8 Nov 2004 21:08:28 +0000 (21:08 +0000)]
Handle assert_fail special

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

20 years agoRemove extra spaces
Misha Brukman [Mon, 8 Nov 2004 19:01:03 +0000 (19:01 +0000)]
Remove extra spaces

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

20 years agoThis file is gone
Chris Lattner [Mon, 8 Nov 2004 18:46:09 +0000 (18:46 +0000)]
This file is gone

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

20 years agoAdd a --disable-compression option to gccas so the default compression of
Reid Spencer [Mon, 8 Nov 2004 17:37:04 +0000 (17:37 +0000)]
Add a --disable-compression option to gccas so the default compression of
bytecode can be defeated.

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

20 years agoMake writing compressed bytecode the default.
Reid Spencer [Mon, 8 Nov 2004 17:35:34 +0000 (17:35 +0000)]
Make writing compressed bytecode the default.

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

20 years agoImplement and document the TOOL_VERBOSE option that asks each tool invoked
Reid Spencer [Mon, 8 Nov 2004 17:32:12 +0000 (17:32 +0000)]
Implement and document the TOOL_VERBOSE option that asks each tool invoked
to be verbose about its actions too.

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

20 years agoFix typo.
Reid Spencer [Mon, 8 Nov 2004 09:10:50 +0000 (09:10 +0000)]
Fix typo.

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

20 years agoDocument compressed bytecode details.
Reid Spencer [Mon, 8 Nov 2004 08:55:21 +0000 (08:55 +0000)]
Document compressed bytecode details.

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

20 years agoFix a typo: isvalid -> isValid
Reid Spencer [Mon, 8 Nov 2004 08:27:51 +0000 (08:27 +0000)]
Fix a typo: isvalid -> isValid

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

20 years agoMove path override in test/Makefile.
Alkis Evlogimenos [Mon, 8 Nov 2004 05:44:05 +0000 (05:44 +0000)]
Move path override in test/Makefile.

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

20 years agoOverride PATH to submake so that all tools are found if the PATH is
Alkis Evlogimenos [Mon, 8 Nov 2004 05:35:03 +0000 (05:35 +0000)]
Override PATH to submake so that all tools are found if the PATH is
not set up properly (it also avoids using different tools that happen
to be in the path).

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

20 years ago* Add support for f2c and the -f2c switch to enable Fortran benchmarks
Misha Brukman [Mon, 8 Nov 2004 03:28:27 +0000 (03:28 +0000)]
* Add support for f2c and the -f2c switch to enable Fortran benchmarks
* Remove spurious spaces between variable names and `=' (they're not lined up
  anyway and there's no hope of doing that)

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

20 years agoNow using path to python found by configure.
Tanya Lattner [Mon, 8 Nov 2004 03:26:59 +0000 (03:26 +0000)]
Now using path to python found by configure.

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

20 years agoFirst draft of compendium of documents relevant to writers of LLVM machine
Misha Brukman [Mon, 8 Nov 2004 02:47:08 +0000 (02:47 +0000)]
First draft of compendium of documents relevant to writers of LLVM machine
target backends

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

20 years agoPut int the getReg cast optimization from x86 so that we generate fewer
Nate Begeman [Mon, 8 Nov 2004 02:25:40 +0000 (02:25 +0000)]
Put int the getReg cast optimization from x86 so that we generate fewer
move instructions for the register allocator to coalesce.

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

20 years agoRecommend that new users read the documentation before they get started,
Reid Spencer [Mon, 8 Nov 2004 00:29:22 +0000 (00:29 +0000)]
Recommend that new users read the documentation before they get started,
with a little twist of humor. This more than anything else will help
people get started with LLVM.

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

20 years agoCorrect and Explain the first rule of thumb better.
Reid Spencer [Mon, 8 Nov 2004 00:26:32 +0000 (00:26 +0000)]
Correct and Explain the first rule of thumb better.

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

20 years agoFix typo.
Reid Spencer [Mon, 8 Nov 2004 00:24:43 +0000 (00:24 +0000)]
Fix typo.

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

20 years agoFix grammar: use commas in a list of entities
Misha Brukman [Mon, 8 Nov 2004 00:22:22 +0000 (00:22 +0000)]
Fix grammar: use commas in a list of entities

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

20 years agoImplement ExecutionEngine::freeMachineCodeForFunction()
Misha Brukman [Sun, 7 Nov 2004 23:58:46 +0000 (23:58 +0000)]
Implement ExecutionEngine::freeMachineCodeForFunction()

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

20 years agoAdd method to delete machine code generated for a Function
Misha Brukman [Sun, 7 Nov 2004 23:58:02 +0000 (23:58 +0000)]
Add method to delete machine code generated for a Function

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

20 years agoAdd the RUNTEST autoconf onfiguration variable for Deja-gnu support. This
Reid Spencer [Sun, 7 Nov 2004 23:29:39 +0000 (23:29 +0000)]
Add the RUNTEST autoconf onfiguration variable for Deja-gnu support. This
tool runs Deja-gnu test suites. The 'make' variable RUNTEST is now set
automatically in the Makefile.config file.

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

20 years agoChanged TEST to TESTSUITE
Tanya Lattner [Sun, 7 Nov 2004 23:26:13 +0000 (23:26 +0000)]
Changed TEST to TESTSUITE

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

20 years agoFix for objdir != srcdir.
Tanya Lattner [Sun, 7 Nov 2004 23:24:21 +0000 (23:24 +0000)]
Fix for objdir != srcdir.

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

20 years agoMore srcdir != objdir changes.
Tanya Lattner [Sun, 7 Nov 2004 23:21:50 +0000 (23:21 +0000)]
More srcdir != objdir changes.

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

20 years ago* Fix file-relative links: they need '#' prepended to the target name
Misha Brukman [Sun, 7 Nov 2004 22:42:37 +0000 (22:42 +0000)]
* Fix file-relative links: they need '#' prepended to the target name
* Balance an open parenthesis

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

20 years agoUse LLVMToolDir instead of ToolDir because the latter is no longer set (?)
Misha Brukman [Sun, 7 Nov 2004 22:26:43 +0000 (22:26 +0000)]
Use LLVMToolDir instead of ToolDir because the latter is no longer set (?)

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

20 years agoMade changes to support objdir!=srcdir.
Tanya Lattner [Sun, 7 Nov 2004 22:04:21 +0000 (22:04 +0000)]
Made changes to support objdir!=srcdir.

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

20 years agoVERY large functions that are only called from one place are not really
Chris Lattner [Sun, 7 Nov 2004 21:46:47 +0000 (21:46 +0000)]
VERY large functions that are only called from one place are not really
exciting to inline.  Only inline medium or small sized functions with a
single call site.

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

20 years agoRemoved passing TARGET.
Tanya Lattner [Sun, 7 Nov 2004 21:43:57 +0000 (21:43 +0000)]
Removed passing TARGET.

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

20 years agoChanged check-dejagnu to take TESTSUITE as its args instead of TEST in order to not...
Tanya Lattner [Sun, 7 Nov 2004 21:39:41 +0000 (21:39 +0000)]
Changed check-dejagnu to take TESTSUITE as its args instead of TEST in order to not conflict with other stuff. Added path for test/Scripts. Also added a check to deal with TESTSUITE and runtest flags.

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

20 years agoDisable bogus cast elimination when the cast is used by a setcc instruction.
Nate Begeman [Sun, 7 Nov 2004 20:23:42 +0000 (20:23 +0000)]
Disable bogus cast elimination when the cast is used by a setcc instruction.

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

20 years agoAdd TARGET_TRIPLE
Reid Spencer [Sun, 7 Nov 2004 19:12:53 +0000 (19:12 +0000)]
Add TARGET_TRIPLE

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

20 years agoFirst version of this document listing the required software. Might need
Reid Spencer [Sun, 7 Nov 2004 19:07:06 +0000 (19:07 +0000)]
First version of this document listing the required software. Might need
to be made platform specific. Contents reflect my Linux build environment.

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

20 years ago* Comments & cleanup per CL code review.
Reid Spencer [Sun, 7 Nov 2004 18:20:55 +0000 (18:20 +0000)]
* Comments & cleanup per CL code review.
* Accept 'llvc' as signature for compressed bytecode

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

20 years agoAdd comments per CL code review.
Reid Spencer [Sun, 7 Nov 2004 18:19:00 +0000 (18:19 +0000)]
Add comments per CL code review.

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

20 years agoMake compression the default on writing.
Reid Spencer [Sun, 7 Nov 2004 18:18:11 +0000 (18:18 +0000)]
Make compression the default on writing.

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