oota-llvm.git
19 years agoFixed pathname to LLVM tools.
John Criswell [Wed, 1 Dec 2004 14:12:30 +0000 (14:12 +0000)]
Fixed pathname to LLVM tools.
Thanks to Vladimir Merzliakov for finding this.

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

19 years agoBe a little more explicit about how to configure LLVM with the --prefix
Reid Spencer [Wed, 1 Dec 2004 05:15:44 +0000 (05:15 +0000)]
Be a little more explicit about how to configure LLVM with the --prefix
option so that permissions errors don't occur if the default, /usr/local,
is taken.

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

19 years agoFix typeo, thanks to Duraid for pointing it out
Chris Lattner [Wed, 1 Dec 2004 04:16:29 +0000 (04:16 +0000)]
Fix typeo, thanks to Duraid for pointing it out

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

19 years agoRevert version 1.39. It breaks the ordering of the library processing.
Reid Spencer [Tue, 30 Nov 2004 22:54:48 +0000 (22:54 +0000)]
Revert version 1.39. It breaks the ordering of the library processing.

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

19 years agoDo not let GCC emit a warning for INT64_MIN
Chris Lattner [Tue, 30 Nov 2004 21:33:58 +0000 (21:33 +0000)]
Do not let GCC emit a warning for INT64_MIN

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

19 years agoSparcs behave better if we use <alloca.h> and avoid messing with __builtin_alloca.
Brian Gaeke [Tue, 30 Nov 2004 21:27:01 +0000 (21:27 +0000)]
Sparcs behave better if we use <alloca.h> and avoid messing with __builtin_alloca.

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

19 years agoAdded TCLSH var to site.exp.
Tanya Lattner [Tue, 30 Nov 2004 19:13:06 +0000 (19:13 +0000)]
Added TCLSH var to site.exp.

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

19 years agoMove this from the C test suite
Chris Lattner [Tue, 30 Nov 2004 18:25:12 +0000 (18:25 +0000)]
Move this from the C test suite

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

19 years agoThis is a c++ test
Chris Lattner [Tue, 30 Nov 2004 18:25:05 +0000 (18:25 +0000)]
This is a c++ test

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

19 years agoAdd back -e, which apparently works in sh's echo but not tcsh's, which does
Chris Lattner [Tue, 30 Nov 2004 17:47:13 +0000 (17:47 +0000)]
Add back -e, which apparently works in sh's echo but not tcsh's, which does
not need it.  Also, grep some output so we know that this command does something.

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

19 years agoIf TESTSUITE is set, we obviously want to run dejagnu
Chris Lattner [Tue, 30 Nov 2004 17:45:08 +0000 (17:45 +0000)]
If TESTSUITE is set, we obviously want to run dejagnu

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

19 years agoFix the JIT when being used from llvm-db
Chris Lattner [Tue, 30 Nov 2004 17:41:49 +0000 (17:41 +0000)]
Fix the JIT when being used from llvm-db

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

19 years agodo not pass -e into llvm-db as a command.
Chris Lattner [Tue, 30 Nov 2004 17:13:13 +0000 (17:13 +0000)]
do not pass -e into llvm-db as a command.

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

19 years agoPut the output in the temporary location
Chris Lattner [Tue, 30 Nov 2004 17:12:00 +0000 (17:12 +0000)]
Put the output in the temporary location

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

19 years agoThis is a cross platform fail, failing on freebsd as well
Chris Lattner [Tue, 30 Nov 2004 17:10:47 +0000 (17:10 +0000)]
This is a cross platform fail, failing on freebsd as well

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

19 years agoThis pass is completely broken.
Chris Lattner [Tue, 30 Nov 2004 17:09:06 +0000 (17:09 +0000)]
This pass is completely broken.

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

19 years agoRevisionNum is read by error(), initialize it early.
Chris Lattner [Tue, 30 Nov 2004 16:58:18 +0000 (16:58 +0000)]
RevisionNum is read by error(), initialize it early.

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

19 years agoThis was fixed with the recent tester changes.
Chris Lattner [Tue, 30 Nov 2004 16:48:26 +0000 (16:48 +0000)]
This was fixed with the recent tester changes.

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

19 years agoUpdate list of failing benchmarks.
Brian Gaeke [Tue, 30 Nov 2004 08:15:44 +0000 (08:15 +0000)]
Update list of failing benchmarks.

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

19 years agoIf we're about to emit something like:
Brian Gaeke [Tue, 30 Nov 2004 08:15:15 +0000 (08:15 +0000)]
If we're about to emit something like:

  %f0 = fmovs %f0
  %f1 = fmovs %f1

then just delete the FpMOVD pseudo-instruction instead.  Also, add
statistics and debug printouts.

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

19 years agoAdd a check for the tclsh program needed by dejagnu. This can have weird
Reid Spencer [Tue, 30 Nov 2004 08:11:54 +0000 (08:11 +0000)]
Add a check for the tclsh program needed by dejagnu. This can have weird
names that have version numbers in it so this macro, DJ_AC_PATH_TCLSH will
make the necessary checks. The makefile variable TCLSH is set to the path
found.

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

19 years agoSquelch warning
Chris Lattner [Tue, 30 Nov 2004 07:47:34 +0000 (07:47 +0000)]
Squelch warning

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

19 years agoThis passes on darwin now
Chris Lattner [Tue, 30 Nov 2004 07:38:41 +0000 (07:38 +0000)]
This passes on darwin now

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

19 years agoFix several bugs in 'op x, imm' handling. Foremost is that we now emit
Chris Lattner [Tue, 30 Nov 2004 07:30:20 +0000 (07:30 +0000)]
Fix several bugs in 'op x, imm' handling.  Foremost is that we now emit

   addi r3, r3, -1
instead of
   addi r3, r3, 1

for 'sub int X, 1'.

Secondarily, this fixes several cases where we could crash given an unsigned
constant.  And fixes a couple of minor missed optimization cases, such as
xor X, ~0U -> not X

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

19 years agoUp the compression threshold to 64K so we avoid it for all but the largest
Reid Spencer [Tue, 30 Nov 2004 07:13:34 +0000 (07:13 +0000)]
Up the compression threshold to 64K so we avoid it for all but the largest
bytecode files. This should help linking substantially.

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

19 years agoFix test/Regression/Transforms/LICM/2004-09-14-AliasAnalysisInvalidate.llx
Chris Lattner [Tue, 30 Nov 2004 07:01:15 +0000 (07:01 +0000)]
Fix test/Regression/Transforms/LICM/2004-09-14-AliasAnalysisInvalidate.llx

This only fails on darwin or on X86 under valgrind.

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

19 years agoFix CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
Chris Lattner [Tue, 30 Nov 2004 06:40:04 +0000 (06:40 +0000)]
Fix CodeGen/PowerPC/2004-11-30-shr-var-crash.ll

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

19 years agoNew testcase that crashes the PPC BE
Chris Lattner [Tue, 30 Nov 2004 06:39:45 +0000 (06:39 +0000)]
New testcase that crashes the PPC BE

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

19 years agoFix test/Regression/CodeGen/PowerPC/2004-11-29-ShrCrash.ll
Chris Lattner [Tue, 30 Nov 2004 06:36:11 +0000 (06:36 +0000)]
Fix test/Regression/CodeGen/PowerPC/2004-11-29-ShrCrash.ll

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

19 years agoNew testcase
Chris Lattner [Tue, 30 Nov 2004 06:35:52 +0000 (06:35 +0000)]
New testcase

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

19 years agoAdding timeout for a test.
Tanya Lattner [Tue, 30 Nov 2004 06:29:45 +0000 (06:29 +0000)]
Adding timeout for a test.

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

19 years agoFix test/Regression/CodeGen/PowerPC/2004-11-30-shift-crash.ll
Chris Lattner [Tue, 30 Nov 2004 06:29:10 +0000 (06:29 +0000)]
Fix test/Regression/CodeGen/PowerPC/2004-11-30-shift-crash.ll

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

19 years agoNew testcase that crashes the PPC backend
Chris Lattner [Tue, 30 Nov 2004 06:28:53 +0000 (06:28 +0000)]
New testcase that crashes the PPC backend

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

19 years agoAlkis noticed that this variable is dead. Thanks!
Chris Lattner [Tue, 30 Nov 2004 04:01:44 +0000 (04:01 +0000)]
Alkis noticed that this variable is dead.  Thanks!

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

19 years agoAdd method
Chris Lattner [Tue, 30 Nov 2004 02:51:53 +0000 (02:51 +0000)]
Add method

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

19 years agoNew testcase for simplifycfg
Chris Lattner [Tue, 30 Nov 2004 00:31:16 +0000 (00:31 +0000)]
New testcase for simplifycfg

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

19 years agoIf we have something like this:
Chris Lattner [Tue, 30 Nov 2004 00:29:14 +0000 (00:29 +0000)]
If we have something like this:

  if (x) {
    code
    ...
  } else {
    code
    ...
  }

Turn it into:

  code
  if (x) {
    ...
  } else {
    ...
  }

This reduces code size and in some common cases allows us to completely
eliminate the conditional.  This turns several if/then/else blocks in loops
into straightline code in 179.art, turning the loops into single basic blocks
(good for modsched even!).

Maybe now brg will leave me alone ;-)

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

19 years agoRemove extraneous namespacification. In particular, don't define llvm::llvm::createI...
Chris Lattner [Tue, 30 Nov 2004 00:22:59 +0000 (00:22 +0000)]
Remove extraneous namespacification.  In particular, don't define llvm::llvm::createInternalGlobalMapperPass

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

19 years agoFix a typo.
John Criswell [Mon, 29 Nov 2004 21:46:29 +0000 (21:46 +0000)]
Fix a typo.
Corrected a potential grammary issue.

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

19 years agoAllow hoisting loads of globals and alloca's in conditionals.
Chris Lattner [Mon, 29 Nov 2004 21:26:12 +0000 (21:26 +0000)]
Allow hoisting loads of globals and alloca's in conditionals.

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

19 years agoMake built bytecode libraries depend on gccas/gccld as appropriate. This
Chris Lattner [Mon, 29 Nov 2004 19:47:58 +0000 (19:47 +0000)]
Make built bytecode libraries depend on gccas/gccld as appropriate.  This
should fix the stale runtime libraries problem.

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

19 years agoFix two bugs:
Reid Spencer [Mon, 29 Nov 2004 14:46:29 +0000 (14:46 +0000)]
Fix two bugs:
1. Nothing should happen on "make all". Doc generation is quick, but we
   don't want to do it unless we're installing.
2. Correct a dependency for the *.ps files .. didn't notice this before
   because of cruft in my directory. It failed on a clean build.

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

19 years agoFunctionality moved to portable lib/System/DynamicLibrary.cpp
Reid Spencer [Mon, 29 Nov 2004 14:11:41 +0000 (14:11 +0000)]
Functionality moved to portable lib/System/DynamicLibrary.cpp
implementation

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

19 years agoUse System/DynamicLibrary instead of Support/DynamicLinker
Reid Spencer [Mon, 29 Nov 2004 14:11:29 +0000 (14:11 +0000)]
Use System/DynamicLibrary instead of Support/DynamicLinker

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

19 years agoUse System/DynamicLibrary instead of Support/DynamicLinker to implement.
Reid Spencer [Mon, 29 Nov 2004 14:07:46 +0000 (14:07 +0000)]
Use System/DynamicLibrary instead of Support/DynamicLinker to implement.

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

19 years agoImplement two new functions: LoadLibraryPermanently and
Reid Spencer [Mon, 29 Nov 2004 13:33:28 +0000 (13:33 +0000)]
Implement two new functions: LoadLibraryPermanently and
SearchForAddressOfSymbol.

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

19 years agoAdd in some methods for use by the JIT. LoadLibraryPermanently brings the
Reid Spencer [Mon, 29 Nov 2004 13:27:56 +0000 (13:27 +0000)]
Add in some methods for use by the JIT. LoadLibraryPermanently brings the
library into the address space permanently. SearchForAddressOfSymbol looks
in all previously permanently loaded libraries and any currently open
libraries for a symbol, instead of just one library like GetAddressOfSymbol

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

19 years agoShared library extension is now in LTDL_SHLIB_EXT
Reid Spencer [Mon, 29 Nov 2004 12:40:21 +0000 (12:40 +0000)]
Shared library extension is now in LTDL_SHLIB_EXT

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

19 years agoWe just use ltdl's implementation for this abstraction now. Its portable to
Reid Spencer [Mon, 29 Nov 2004 12:39:10 +0000 (12:39 +0000)]
We just use ltdl's implementation for this abstraction now. Its portable to
more platforms than LLVM supports.

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

19 years agoAllow reconfig from any directory, not just the top build directory, by
Reid Spencer [Mon, 29 Nov 2004 12:37:44 +0000 (12:37 +0000)]
Allow reconfig from any directory, not just the top build directory, by
changing directory first. Also make sure that we don't attempt to run
config.status if the recheck didn't work.

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

19 years agoChanges resulting from AC_LIB_LTDL usage.
Reid Spencer [Mon, 29 Nov 2004 12:36:16 +0000 (12:36 +0000)]
Changes resulting from AC_LIB_LTDL usage.

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

19 years ago* Implement embedding libltdl into LLVM which required some rearranging.
Reid Spencer [Mon, 29 Nov 2004 12:29:58 +0000 (12:29 +0000)]
* Implement embedding libltdl into LLVM which required some rearranging.

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

19 years ago* Update instructions about upgrading libtool
Reid Spencer [Mon, 29 Nov 2004 12:28:47 +0000 (12:28 +0000)]
* Update instructions about upgrading libtool
* Add instructions about upgrading autoconf

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

19 years agoDon't include ltdl.h any more. Its nested in lib/System now.
Reid Spencer [Mon, 29 Nov 2004 12:12:11 +0000 (12:12 +0000)]
Don't include ltdl.h any more. Its nested in lib/System now.

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

19 years agoMods for compilation with llvm.
Reid Spencer [Mon, 29 Nov 2004 12:04:27 +0000 (12:04 +0000)]
Mods for compilation with llvm.

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

19 years agoOriginal version of ltdl.h from libtool 1.5.10
Reid Spencer [Mon, 29 Nov 2004 12:02:48 +0000 (12:02 +0000)]
Original version of ltdl.h from libtool 1.5.10

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

19 years agoOriginal version of ltdl.c from libtool 1.5.10
Reid Spencer [Mon, 29 Nov 2004 12:02:25 +0000 (12:02 +0000)]
Original version of ltdl.c from libtool 1.5.10

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

19 years agoConverted with autoupdate for autoconf 2.50 -> 2.59 differences.
Reid Spencer [Mon, 29 Nov 2004 11:27:12 +0000 (11:27 +0000)]
Converted with autoupdate for autoconf 2.50 -> 2.59 differences.

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

19 years agoThis file contains macros that allow us to incorporate the ltdl source into
Reid Spencer [Mon, 29 Nov 2004 10:56:45 +0000 (10:56 +0000)]
This file contains macros that allow us to incorporate the ltdl source into
our own library so that it is magically hidden and we don't have to depend
on linking with -lltdl option.

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

19 years agoImplement the default constructor which causes the current program to be
Reid Spencer [Mon, 29 Nov 2004 10:39:46 +0000 (10:39 +0000)]
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

19 years agoMake the default constructor cause the program's symbols to be loaded as
Reid Spencer [Mon, 29 Nov 2004 10:38:54 +0000 (10:38 +0000)]
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

19 years agoMake it HTML 4.01 Strict compliant.
Reid Spencer [Mon, 29 Nov 2004 07:47:16 +0000 (07:47 +0000)]
Make it HTML 4.01 Strict compliant.

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

19 years ago* Document how to turn on doxygen documentation generation
Reid Spencer [Mon, 29 Nov 2004 07:44:51 +0000 (07:44 +0000)]
* 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

19 years agoNo longer necessary, moved Makefile.rules
Reid Spencer [Mon, 29 Nov 2004 07:17:31 +0000 (07:17 +0000)]
No longer necessary, moved Makefile.rules

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

19 years agoUse LLVMLIBS=JIT to get JIT libraries
Reid Spencer [Mon, 29 Nov 2004 07:17:18 +0000 (07:17 +0000)]
Use LLVMLIBS=JIT to get JIT libraries

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

19 years agoIncorporate tools/Makefile.JIT
Reid Spencer [Mon, 29 Nov 2004 07:17:07 +0000 (07:17 +0000)]
Incorporate tools/Makefile.JIT

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

19 years agoMake sure the program's symbols can be dlsym'd as well.
Reid Spencer [Mon, 29 Nov 2004 06:23:19 +0000 (06:23 +0000)]
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

19 years agoRevamp long/ulong comparisons to use a much more efficient sequence (thanks
Chris Lattner [Mon, 29 Nov 2004 05:55:24 +0000 (05:55 +0000)]
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

19 years ago* Allow date command to be printed in verbose mode
Reid Spencer [Mon, 29 Nov 2004 05:00:33 +0000 (05:00 +0000)]
* 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

19 years agoAdd "docs" as a descendable directory (at the end)
Reid Spencer [Mon, 29 Nov 2004 04:57:55 +0000 (04:57 +0000)]
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

19 years ago* allow doxygen documentation to be enabled/disabled (default off)
Reid Spencer [Mon, 29 Nov 2004 04:56:35 +0000 (04:56 +0000)]
* 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

19 years ago* Get additional configured values into the makefiles
Reid Spencer [Mon, 29 Nov 2004 04:53:50 +0000 (04:53 +0000)]
* 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

19 years agoMake the check a little quieter.
Reid Spencer [Mon, 29 Nov 2004 04:51:58 +0000 (04:51 +0000)]
Make the check a little quieter.

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

19 years ago* Make this makefile compliant with LLVM makefile standards
Reid Spencer [Mon, 29 Nov 2004 04:47:35 +0000 (04:47 +0000)]
* 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

19 years agoMoved --> doxygen.cfg.in
Reid Spencer [Mon, 29 Nov 2004 04:46:12 +0000 (04:46 +0000)]
Moved --> doxygen.cfg.in

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

19 years agoReworked branching so we don't handle BAs specially. It just updates the branchTO...
Tanya Lattner [Mon, 29 Nov 2004 04:39:47 +0000 (04:39 +0000)]
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

19 years ago* Get rid of extraneous directories
Reid Spencer [Mon, 29 Nov 2004 04:34:05 +0000 (04:34 +0000)]
* 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

19 years ago* add llvmc and llvm-ld
Reid Spencer [Mon, 29 Nov 2004 04:32:37 +0000 (04:32 +0000)]
* 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

19 years agoAdjust this so that doxygen doesn't barf on it.
Reid Spencer [Mon, 29 Nov 2004 03:47:37 +0000 (03:47 +0000)]
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

19 years ago* Adjust so this falls in line with LLVM Makefile standards.
Reid Spencer [Mon, 29 Nov 2004 03:45:02 +0000 (03:45 +0000)]
* 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

19 years ago* Fix an item list.
Reid Spencer [Mon, 29 Nov 2004 03:43:29 +0000 (03:43 +0000)]
* 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

19 years agoAdd a link.
Reid Spencer [Mon, 29 Nov 2004 03:37:54 +0000 (03:37 +0000)]
Add a link.

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

19 years agoFor PR393:
Reid Spencer [Mon, 29 Nov 2004 03:33:22 +0000 (03:33 +0000)]
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

19 years agoFixed bug where instructions in the kernel were not ordered right to preserve depende...
Tanya Lattner [Sun, 28 Nov 2004 23:36:15 +0000 (23:36 +0000)]
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

19 years agoUpdate the test to match the optimization. The optimization can let some
Reid Spencer [Sun, 28 Nov 2004 21:36:52 +0000 (21:36 +0000)]
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

19 years agoFix for PR454:
Reid Spencer [Sun, 28 Nov 2004 21:31:15 +0000 (21:31 +0000)]
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

19 years agoThe LLVM bool type shall have 1 byte alignment on PPC.
Chris Lattner [Sun, 28 Nov 2004 21:16:45 +0000 (21:16 +0000)]
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

19 years agoMake DSE potentially more aggressive by being more specific about alloca sizes.
Chris Lattner [Sun, 28 Nov 2004 20:44:37 +0000 (20:44 +0000)]
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

19 years agoFix DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll
Chris Lattner [Sun, 28 Nov 2004 20:30:15 +0000 (20:30 +0000)]
Fix DeadStoreElimination/2004-11-28-LiveStoreDeleted.ll

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

19 years agoNew testcase. The store is not dead here.
Chris Lattner [Sun, 28 Nov 2004 19:54:02 +0000 (19:54 +0000)]
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

19 years agoFix SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c, and hopefully
Chris Lattner [Sun, 28 Nov 2004 17:56:47 +0000 (17:56 +0000)]
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

19 years agonew testcase for PR463
Chris Lattner [Sun, 28 Nov 2004 16:47:46 +0000 (16:47 +0000)]
new testcase for PR463

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

19 years agoFix PR463
Chris Lattner [Sun, 28 Nov 2004 16:45:45 +0000 (16:45 +0000)]
Fix PR463

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

19 years agoCorrect the RUN line to remove unneeded parameters and make sure the test
Reid Spencer [Sun, 28 Nov 2004 08:15:33 +0000 (08:15 +0000)]
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

19 years agoTest case for PR454
Reid Spencer [Sun, 28 Nov 2004 04:29:29 +0000 (04:29 +0000)]
Test case for PR454

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

19 years agoCompute the firstFileOffset correctly after reading the LLVM symbol table.
Reid Spencer [Sun, 28 Nov 2004 03:13:02 +0000 (03:13 +0000)]
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

19 years agoBug fixed
Chris Lattner [Sun, 28 Nov 2004 01:25:20 +0000 (01:25 +0000)]
Bug fixed

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

19 years agoNew testcase for PR447
Chris Lattner [Sun, 28 Nov 2004 01:22:49 +0000 (01:22 +0000)]
New testcase for PR447

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

19 years agoBug fixed
Chris Lattner [Sun, 28 Nov 2004 00:43:59 +0000 (00:43 +0000)]
Bug fixed

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

19 years agoNew testcase for PR360
Chris Lattner [Sun, 28 Nov 2004 00:39:58 +0000 (00:39 +0000)]
New testcase for PR360

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