Commit Graph

16205 Commits

Author SHA1 Message Date
Reid Spencer
441cc2ab01 Implement the default constructor which causes the current program to be
opened as if it was a dynamic library so its symbols can be searched too.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18341 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 10:39:46 +00:00
Reid Spencer
7a9369065d Make the default constructor cause the program's symbols to be loaded as
if it was a dynamic library.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18340 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 10:38:54 +00:00
Reid Spencer
6f14a5b486 Make it HTML 4.01 Strict compliant.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18339 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 07:47:16 +00:00
Reid Spencer
31ce7fb6e1 * Document how to turn on doxygen documentation generation
* Document the new "LLVMLIBS=JIT" feature to make building JIT programs
  super easy.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18338 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 07:44:51 +00:00
Reid Spencer
aadc41860d No longer necessary, moved Makefile.rules
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18337 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 07:17:31 +00:00
Reid Spencer
8f631784f7 Use LLVMLIBS=JIT to get JIT libraries
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18333 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 07:17:18 +00:00
Reid Spencer
7c787c9355 Incorporate tools/Makefile.JIT
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18332 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 07:17:07 +00:00
Reid Spencer
f00b54058b Make sure the program's symbols can be dlsym'd as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18331 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 06:23:19 +00:00
Chris Lattner
928b47ae2e Revamp long/ulong comparisons to use a much more efficient sequence (thanks
to Brian and the Sun compiler for pointing out that the obvious works :)

This also enables folding all long comparisons into setcc and branch
instructions: before we could only do == and !=

For example, for:
void test(unsigned long long A, unsigned long long B) {
   if (A < B) foo();
 }

We now generate:

test:
        subl $4, %esp
        movl %esi, (%esp)
        movl 8(%esp), %eax
        movl 12(%esp), %ecx
        movl 16(%esp), %edx
        movl 20(%esp), %esi
        subl %edx, %eax
        sbbl %esi, %ecx
        jae .LBBtest_2  # UnifiedReturnBlock
.LBBtest_1:     # then
        call foo
        movl (%esp), %esi
        addl $4, %esp
        ret
.LBBtest_2:     # UnifiedReturnBlock
        movl (%esp), %esi
        addl $4, %esp
        ret

Instead of:

test:
        subl $12, %esp
        movl %esi, 8(%esp)
        movl %ebx, 4(%esp)
        movl 16(%esp), %eax
        movl 20(%esp), %ecx
        movl 24(%esp), %edx
        movl 28(%esp), %esi
        cmpl %edx, %eax
        setb %al
        cmpl %esi, %ecx
        setb %bl
        cmove %ax, %bx
        testb %bl, %bl
        je .LBBtest_2   # UnifiedReturnBlock
.LBBtest_1:     # then
        call foo
        movl 4(%esp), %ebx
        movl 8(%esp), %esi
        addl $12, %esp
        ret
.LBBtest_2:     # UnifiedReturnBlock
        movl 4(%esp), %ebx
        movl 8(%esp), %esi
        addl $12, %esp
        ret


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18330 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 05:55:24 +00:00
Reid Spencer
fbbf307b15 * Allow date command to be printed in verbose mode
* Get rid of appending -lbz2 and -lz to ExtraLibs now that we don't need
  them any more.
* Fix the dist-check target so that EXTRA_DIST can be defined AFTER the
  include of Makefile.common. This is needed because Makefile.common
  provides variable definitions that may need to be used in computing the
  value of EXTRA_DIST.
* Clean up some "distdir" target output.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18329 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 05:00:33 +00:00
Reid Spencer
513b9213fd Add "docs" as a descendable directory (at the end)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18328 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 04:57:55 +00:00
Reid Spencer
1f31942b12 * allow doxygen documentation to be enabled/disabled (default off)
* organize programs we test for properly
* add new programs needed for documentation generation
* Adjust install paths so llvm stuff doesn't muck up /usr/local or /usr if
  $prefix is set to those.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18327 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 04:56:35 +00:00
Reid Spencer
e1200219ec * Get additional configured values into the makefiles
* Provide support for ENABLE_DOXYGEN
* New tools that documentation generation requires


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18326 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 04:53:50 +00:00
Reid Spencer
1a3ba7f10e Make the check a little quieter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18325 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 04:51:58 +00:00
Reid Spencer
ca5fc7bf63 * Make this makefile compliant with LLVM makefile standards
* Implement optional doxygen doc generation
* Implement HTML and doxygen installation


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18324 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 04:47:35 +00:00
Reid Spencer
ebafced04e Moved --> doxygen.cfg.in
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18323 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 04:46:12 +00:00
Tanya Lattner
58fe2f0734 Reworked branching so we don't handle BAs specially. It just updates the branchTO regardless of what type of branch it is.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18322 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 04:39:47 +00:00
Reid Spencer
3c54b6cc73 * Get rid of extraneous directories
* Ensure things installed to same place are all getting there by using a
  variable to name that place.
* Make sure missing index.html, images and *.css files get installed.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18321 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 04:34:05 +00:00
Reid Spencer
38f98b52a6 * add llvmc and llvm-ld
* fix the links to not be in an html subdir as that's not how this gets
  installed (anymore).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18320 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 04:32:37 +00:00
Reid Spencer
e53b5c10e3 Adjust this so that doxygen doesn't barf on it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18319 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 03:47:37 +00:00
Reid Spencer
52d7a75c16 * Adjust so this falls in line with LLVM Makefile standards.
* Implement installation of doxygen and html documentation
* Fix it so it works with objdir != srcdir.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18318 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 03:45:02 +00:00
Reid Spencer
f8d3e4a07a * Fix an item list.
* Add an ENVIRONMENT section to describe LLVM_LIB_SEARCH_PATH


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18317 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 03:43:29 +00:00
Reid Spencer
ede0ae0ed8 Add a link.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18316 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 03:37:54 +00:00
Reid Spencer
22e4cdedb6 For PR393:
This file was originally doxygen.cfg, but it needs to be configured to get
the right srcdir/objdir paths for things. This is needed because building
the doxygen will now be part of the install and dist-check targets.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18315 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-29 03:33:22 +00:00
Tanya Lattner
28e5eabf65 Fixed bug where instructions in the kernel were not ordered right to preserve dependencies in a cycle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18314 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 23:36:15 +00:00
Reid Spencer
b2e4cd645a Update the test to match the optimization. The optimization can let some
casts through, but they will only be sbyte -> ubyte in this test case so
make sure we don't let any other kinds through.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18313 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 21:36:52 +00:00
Reid Spencer
6731d5c494 Fix for PR454:
* Make sure we handle signed to unsigned conversion correctly
* Move this visitSetCondInst case to its own method.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18312 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 21:31:15 +00:00
Chris Lattner
9d0087e043 The LLVM bool type shall have 1 byte alignment on PPC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18311 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 21:16:45 +00:00
Chris Lattner
8305a64dce Make DSE potentially more aggressive by being more specific about alloca sizes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18309 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 20:44:37 +00:00
Chris Lattner
eaf8f9c667 Fix DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18308 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 20:30:15 +00:00
Chris Lattner
f4a0e5093c New testcase. The store is not dead here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18307 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 19:54:02 +00:00
Chris Lattner
63eb93025d Fix SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c, and hopefully
PR449


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18306 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 17:56:47 +00:00
Chris Lattner
96d7dac55f new testcase for PR463
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18304 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 16:47:46 +00:00
Chris Lattner
7891593359 Fix PR463
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18303 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 16:45:45 +00:00
Reid Spencer
2ded5d0053 Correct the RUN line to remove unneeded parameters and make sure the test
case is testing the right thing.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18302 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 08:15:33 +00:00
Reid Spencer
d3938b14ea Test case for PR454
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18301 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 04:29:29 +00:00
Reid Spencer
8dde18fc50 Compute the firstFileOffset correctly after reading the LLVM symbol table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18300 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 03:13:02 +00:00
Chris Lattner
04cf0c29a2 Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18299 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 01:25:20 +00:00
Chris Lattner
a17138424f New testcase for PR447
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18298 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 01:22:49 +00:00
Chris Lattner
87c74b7ec4 Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18297 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 00:43:59 +00:00
Chris Lattner
1b64141716 New testcase for PR360
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18296 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 00:39:58 +00:00
Chris Lattner
9b5d395b41 Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18295 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 00:09:38 +00:00
Chris Lattner
393db9ddfd New testcase for PR244
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18294 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-28 00:06:07 +00:00
Chris Lattner
eeeff013cd Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18293 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-27 23:27:26 +00:00
Chris Lattner
f97bf6dd7a New testcase for PR397
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18292 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-27 23:24:23 +00:00
Chris Lattner
0db649c24a Bug fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18291 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-27 22:47:08 +00:00
Chris Lattner
df284a74ec new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18290 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-27 22:43:51 +00:00
Reid Spencer
3be58f90ec Remove a dead check at the end of the configure script that was a left over
from the bzip2 support. This dead check produced the error:
test: -ne: unary operator expected


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18289 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-27 22:01:43 +00:00
Reid Spencer
92746219db Get the cache variable name right.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18288 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-27 21:59:57 +00:00
Chris Lattner
c33bf812a2 Move this to the QOI section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18287 91177308-0d34-0410-b5e6-96231b3b80d8
2004-11-27 21:33:28 +00:00