oota-llvm.git
19 years agoFirst cut at implementing generic link-time Optimization
Reid Spencer [Sat, 20 Nov 2004 19:43:28 +0000 (19:43 +0000)]
First cut at implementing generic link-time Optimization

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

19 years agoThe Archive class now has differentiation for BSD4.4 and SVR4 style archive
Reid Spencer [Sat, 20 Nov 2004 18:01:22 +0000 (18:01 +0000)]
The Archive class now has differentiation for BSD4.4 and SVR4 style archive
symbol tables. Adjust our usage to compensate.

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

19 years agoTest floating point constants
Reid Spencer [Sat, 20 Nov 2004 07:29:51 +0000 (07:29 +0000)]
Test floating point constants

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

19 years agoDistinguish between BSD4.4 and SVR4 symbol tables
Reid Spencer [Sat, 20 Nov 2004 07:29:40 +0000 (07:29 +0000)]
Distinguish between BSD4.4 and SVR4 symbol tables

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

19 years agoAn llvm-ar test.
Reid Spencer [Sat, 20 Nov 2004 07:25:41 +0000 (07:25 +0000)]
An llvm-ar test.

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

19 years agoProvide the srcdir variable.
Reid Spencer [Sat, 20 Nov 2004 07:25:10 +0000 (07:25 +0000)]
Provide the srcdir variable.

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

19 years agoDescribe the Archive test suite.
Reid Spencer [Sat, 20 Nov 2004 07:24:28 +0000 (07:24 +0000)]
Describe the Archive test suite.

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

19 years agoContents separated into individual tests.
Reid Spencer [Sat, 20 Nov 2004 07:23:56 +0000 (07:23 +0000)]
Contents separated into individual tests.

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

19 years agoThis method was never implemented
Chris Lattner [Sat, 20 Nov 2004 04:19:47 +0000 (04:19 +0000)]
This method was never implemented

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

19 years agoRemove this method, it's not clear how it could be implemented indep of 32 or 64...
Chris Lattner [Sat, 20 Nov 2004 04:17:17 +0000 (04:17 +0000)]
Remove this method, it's not clear how it could be implemented indep of 32 or 64-bit mode

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

19 years agogetJITStubForFunction is optional and unimplemented, just remove it for now.
Chris Lattner [Sat, 20 Nov 2004 04:15:38 +0000 (04:15 +0000)]
getJITStubForFunction is optional and unimplemented, just remove it for now.

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

19 years agogetJITStubForFunction is optional and unimplemented, just remove it.
Chris Lattner [Sat, 20 Nov 2004 04:14:44 +0000 (04:14 +0000)]
getJITStubForFunction is optional and unimplemented, just remove it.

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

19 years agoAdd getCurrentPCOffset() and addRelocation() methods.
Chris Lattner [Sat, 20 Nov 2004 03:46:14 +0000 (03:46 +0000)]
Add getCurrentPCOffset() and addRelocation() methods.
Add stub support for relocations to finishFunction

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

19 years agoAdd getCurrentPCOffset() and addRelocation() methods.
Chris Lattner [Sat, 20 Nov 2004 03:44:39 +0000 (03:44 +0000)]
Add getCurrentPCOffset() and addRelocation() methods.

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

19 years agoAdd the getRelocationType method that I forgot
Chris Lattner [Sat, 20 Nov 2004 03:43:50 +0000 (03:43 +0000)]
Add the getRelocationType method that I forgot

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

19 years agoAllow targets to implement relocation support.
Chris Lattner [Sat, 20 Nov 2004 03:43:27 +0000 (03:43 +0000)]
Allow targets to implement relocation support.

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

19 years agoImplement vacopy and vanext.
Brian Gaeke [Sat, 20 Nov 2004 03:32:12 +0000 (03:32 +0000)]
Implement vacopy and vanext.

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

19 years agoAdd accessor
Chris Lattner [Sat, 20 Nov 2004 03:11:07 +0000 (03:11 +0000)]
Add accessor

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

19 years agoNew file
Chris Lattner [Sat, 20 Nov 2004 03:05:50 +0000 (03:05 +0000)]
New file

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

19 years agoAllow constructor parameter to override aggregating args; fix spacing
Misha Brukman [Sat, 20 Nov 2004 02:20:27 +0000 (02:20 +0000)]
Allow constructor parameter to override aggregating args; fix spacing

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

19 years agoRemove dead #include
Chris Lattner [Sat, 20 Nov 2004 02:17:03 +0000 (02:17 +0000)]
Remove dead #include

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

19 years agoIf we're going to mention mv and cp, clearly, we also need `rm'
Misha Brukman [Sat, 20 Nov 2004 01:27:40 +0000 (01:27 +0000)]
If we're going to mention mv and cp, clearly, we also need `rm'

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

19 years agoRevert the patch that adds Function* for each 64-bit libc div/mul/rem that we
Misha Brukman [Sat, 20 Nov 2004 00:10:20 +0000 (00:10 +0000)]
Revert the patch that adds Function* for each 64-bit libc div/mul/rem that we
want to do; instead, we can use MachineInstr::addExternalSymbol(char*, bool) and
thus we don't have to modify the Module as we are code generating for it

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

19 years agoMade modsched hidden and changed so it matches the style of other options.
Tanya Lattner [Fri, 19 Nov 2004 23:34:33 +0000 (23:34 +0000)]
Made modsched hidden and changed so it matches the style of other options.

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

19 years agoFix grammar
Misha Brukman [Fri, 19 Nov 2004 23:09:40 +0000 (23:09 +0000)]
Fix grammar

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

19 years agoForgot to join srcdir and subdir for complete path for input files.
Tanya Lattner [Fri, 19 Nov 2004 23:00:19 +0000 (23:00 +0000)]
Forgot to join srcdir and subdir for complete path for input files.

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

19 years agoAdding srcdir arg. Added ability to specify the path to an input file. This is needed...
Tanya Lattner [Fri, 19 Nov 2004 22:46:23 +0000 (22:46 +0000)]
Adding srcdir arg. Added ability to specify the path to an input file. This is needed for when srcdir != objdir.

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

19 years agoAdding srcdir arg
Tanya Lattner [Fri, 19 Nov 2004 22:45:25 +0000 (22:45 +0000)]
Adding srcdir arg

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

19 years agoAdd protoypes for 64-bit long/ulong div, mul, and rem functions
Misha Brukman [Fri, 19 Nov 2004 22:14:35 +0000 (22:14 +0000)]
Add protoypes for 64-bit long/ulong div, mul, and rem functions

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

19 years agoFix file comment header
Misha Brukman [Fri, 19 Nov 2004 22:09:21 +0000 (22:09 +0000)]
Fix file comment header

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

19 years agoIgnore files generated by pod2html
Misha Brukman [Fri, 19 Nov 2004 21:54:43 +0000 (21:54 +0000)]
Ignore files generated by pod2html

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

19 years ago* Remove disk space requirements, they vary wildly, depend on the number of
Misha Brukman [Fri, 19 Nov 2004 21:53:22 +0000 (21:53 +0000)]
* Remove disk space requirements, they vary wildly, depend on the number of
  tools built, the build type, and we don't keep them up-to-date on all
  platforms
* AIX, Linux on PowerPC aren't fully-supported systems

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

19 years agoHandle GhostLinkage case for completeness (should not be seen by the asm writer)
Misha Brukman [Fri, 19 Nov 2004 21:49:19 +0000 (21:49 +0000)]
Handle GhostLinkage case for completeness (should not be seen by the asm writer)

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

19 years agoTest case for reading MacOSX archives.
Reid Spencer [Fri, 19 Nov 2004 21:30:15 +0000 (21:30 +0000)]
Test case for reading MacOSX archives.

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

19 years agoMacOSX test archive (buggy).
Reid Spencer [Fri, 19 Nov 2004 21:29:45 +0000 (21:29 +0000)]
MacOSX test archive (buggy).

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

19 years agoAdd VANext and VAArg stubs.
Brian Gaeke [Fri, 19 Nov 2004 21:08:18 +0000 (21:08 +0000)]
Add VANext and VAArg stubs.

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

19 years agoImplement va_start.
Brian Gaeke [Fri, 19 Nov 2004 20:57:24 +0000 (20:57 +0000)]
Implement va_start.

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

19 years agoDont' forget to switch back to decimal output
Chris Lattner [Fri, 19 Nov 2004 20:57:07 +0000 (20:57 +0000)]
Dont' forget to switch back to decimal output

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

19 years agoMatch change in MachineCodeEmitter prototype.
Chris Lattner [Fri, 19 Nov 2004 20:56:46 +0000 (20:56 +0000)]
Match change in MachineCodeEmitter prototype.

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

19 years agoExternal symbols are const char*'s now, change this to match.
Chris Lattner [Fri, 19 Nov 2004 20:56:22 +0000 (20:56 +0000)]
External symbols are const char*'s now, change this to match.

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

19 years agoInstead of storing std::string's for ExternalSymbol references, rely on the
Chris Lattner [Fri, 19 Nov 2004 20:46:15 +0000 (20:46 +0000)]
Instead of storing std::string's for ExternalSymbol references, rely on the
fact that all ExternalSymbols are actually string literals with static storage.
Thus we don't have to do anything special to hold them and we certainly don't
have to copy string data around.

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

19 years agoFirst part of varargs support: getting all varargs which could possibly
Brian Gaeke [Fri, 19 Nov 2004 20:31:08 +0000 (20:31 +0000)]
First part of varargs support: getting all varargs which could possibly
be in registers into memory.

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

19 years agoFix a bug that caused stuff like this:
Chris Lattner [Fri, 19 Nov 2004 19:45:44 +0000 (19:45 +0000)]
Fix a bug that caused stuff like this:
main at ./eh.cpp:1414 ->          printf("a\n");

to be printed, instead of this:

main at ./eh.cpp:14
14 ->          printf("a\n");

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

19 years agova_end can safely be codegen'd to nothing on v8.
Brian Gaeke [Fri, 19 Nov 2004 19:21:34 +0000 (19:21 +0000)]
va_end can safely be codegen'd to nothing on v8.

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

19 years agoA very sorry stub implementation of varargs intrinsics...
Brian Gaeke [Fri, 19 Nov 2004 18:53:59 +0000 (18:53 +0000)]
A very sorry stub implementation of varargs intrinsics...

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

19 years agoUpdate list of expected test failures.
Brian Gaeke [Fri, 19 Nov 2004 18:48:29 +0000 (18:48 +0000)]
Update list of expected test failures.

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

19 years agoFix bug in casting to long/ulong.
Brian Gaeke [Fri, 19 Nov 2004 18:48:10 +0000 (18:48 +0000)]
Fix bug in casting to long/ulong.

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

19 years agoMake sure we can read an archive after it has been ranlib'd
Reid Spencer [Fri, 19 Nov 2004 18:44:31 +0000 (18:44 +0000)]
Make sure we can read an archive after it has been ranlib'd

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

19 years agoFix memory leaks, patch contributed by Morten Ofstad!
Chris Lattner [Fri, 19 Nov 2004 17:09:48 +0000 (17:09 +0000)]
Fix memory leaks, patch contributed by Morten Ofstad!

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

19 years agoPatches to avoid "leaking" memory on process exit. Patch contributed by
Chris Lattner [Fri, 19 Nov 2004 17:08:15 +0000 (17:08 +0000)]
Patches to avoid "leaking" memory on process exit.  Patch contributed by
Morten Ofstad!

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

19 years agoCorrect the computation of when to add the padding. It is not based on the
Reid Spencer [Fri, 19 Nov 2004 17:08:00 +0000 (17:08 +0000)]
Correct the computation of when to add the padding. It is not based on the
member's size. It is based on the oddness/evenness of the file pointer.
This fixes a bug with llvm-ar not being able to read archives produced by
llvm-ranlib when there are members with odd long file name lengths.

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

19 years agoFix the exposed prototype for the lower packed pass, thanks to
Chris Lattner [Fri, 19 Nov 2004 16:49:34 +0000 (16:49 +0000)]
Fix the exposed prototype for the lower packed pass, thanks to
Morten Ofstad.

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

19 years agoAdd hooks to free all memory allocated by the singleton factories in these
Chris Lattner [Fri, 19 Nov 2004 16:39:44 +0000 (16:39 +0000)]
Add hooks to free all memory allocated by the singleton factories in these
files.  Patch contributed by Morten Ofstad!

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

19 years agoAdd static functions to clear singleton maps. Patch contributed by
Chris Lattner [Fri, 19 Nov 2004 16:39:04 +0000 (16:39 +0000)]
Add static functions to clear singleton maps.  Patch contributed by
Morten Ofstad!

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

19 years agoThese methods are long gone, ConstantPointerRef is dead.
Chris Lattner [Fri, 19 Nov 2004 16:25:42 +0000 (16:25 +0000)]
These methods are long gone, ConstantPointerRef is dead.

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

19 years agoCPR is dead.
Chris Lattner [Fri, 19 Nov 2004 16:24:57 +0000 (16:24 +0000)]
CPR is dead.

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

19 years agoAdd note that this is for old bytecode files.
Chris Lattner [Fri, 19 Nov 2004 16:24:05 +0000 (16:24 +0000)]
Add note that this is for old bytecode files.

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

19 years agoMission accomplished!
Chris Lattner [Fri, 19 Nov 2004 16:22:24 +0000 (16:22 +0000)]
Mission accomplished!

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

19 years agoAllow this to compile even on machines that HAVE the bzlib library but do
Reid Spencer [Fri, 19 Nov 2004 15:56:28 +0000 (15:56 +0000)]
Allow this to compile even on machines that HAVE the bzlib library but do
NOT have the bzlib.h header file. Go figure.

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

19 years agoThis is a horrible hack to work around libstdc++ bugs :(
Chris Lattner [Fri, 19 Nov 2004 08:44:07 +0000 (08:44 +0000)]
This is a horrible hack to work around libstdc++ bugs :(

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

19 years agoEliminate another 6k register copies that the register allocator would just
Nate Begeman [Fri, 19 Nov 2004 08:01:16 +0000 (08:01 +0000)]
Eliminate another 6k register copies that the register allocator would just
coalesce out of hbd.  Speeds up compilation by 2% (0.6s)

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

19 years agoFix a bug in the checkin where I adjusted this code to work when
Chris Lattner [Fri, 19 Nov 2004 07:09:40 +0000 (07:09 +0000)]
Fix a bug in the checkin where I adjusted this code to work when
LinkModules nukes the second module argument.

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

19 years agoUndo last change as its unnecessary.
Reid Spencer [Fri, 19 Nov 2004 04:59:07 +0000 (04:59 +0000)]
Undo last change as its unnecessary.

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

19 years agoTest case for xpg4 style archive files.
Reid Spencer [Fri, 19 Nov 2004 04:46:10 +0000 (04:46 +0000)]
Test case for xpg4 style archive files.

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

19 years agoTest reading of SVR4 style archives with llvm-ar
Reid Spencer [Fri, 19 Nov 2004 04:45:19 +0000 (04:45 +0000)]
Test reading of SVR4 style archives with llvm-ar

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

19 years agoTest case for reading SVR4 style archives.
Reid Spencer [Fri, 19 Nov 2004 04:33:13 +0000 (04:33 +0000)]
Test case for reading SVR4 style archives.

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

19 years agoDon't save an iterator, just use post-increment.
Reid Spencer [Fri, 19 Nov 2004 03:44:10 +0000 (03:44 +0000)]
Don't save an iterator, just use post-increment.

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

19 years agoSolaris built archives in SVR4 and XPG4 styles.
Reid Spencer [Fri, 19 Nov 2004 03:41:57 +0000 (03:41 +0000)]
Solaris built archives in SVR4 and XPG4 styles.

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

19 years agoEliminate unsightly ;;
Reid Spencer [Fri, 19 Nov 2004 03:27:05 +0000 (03:27 +0000)]
Eliminate unsightly ;;

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

19 years agoA test file that goes into the test archive.
Reid Spencer [Fri, 19 Nov 2004 03:24:02 +0000 (03:24 +0000)]
A test file that goes into the test archive.

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

19 years agoMake a cast explicit.
Reid Spencer [Fri, 19 Nov 2004 03:20:09 +0000 (03:20 +0000)]
Make a cast explicit.

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

19 years agoMake findModulesDefiningSymbols modify its symbols argument so we can \
Reid Spencer [Fri, 19 Nov 2004 03:18:22 +0000 (03:18 +0000)]
Make findModulesDefiningSymbols modify its symbols argument so we can \
eliminate symbols defined by the archive efficiently

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

19 years agoReduce the amount of work in LinkInArchive by not searching the archive for
Reid Spencer [Fri, 19 Nov 2004 03:13:25 +0000 (03:13 +0000)]
Reduce the amount of work in LinkInArchive by not searching the archive for
symbols it has already identified as not defining.

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

19 years agoObligatory DejaGnu/expect file.
Reid Spencer [Fri, 19 Nov 2004 02:26:35 +0000 (02:26 +0000)]
Obligatory DejaGnu/expect file.

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

19 years agoGenerate fewer reg-reg copies for the register allocator to deal with.
Nate Begeman [Fri, 19 Nov 2004 02:06:40 +0000 (02:06 +0000)]
Generate fewer reg-reg copies for the register allocator to deal with.
This eliminates over 2000 in hbd alone.

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

19 years agoFixed a typo.
Tanya Lattner [Fri, 19 Nov 2004 01:26:37 +0000 (01:26 +0000)]
Fixed a typo.

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

19 years agoAdded link to information on Statistic which is in the Programmers Manual.
Tanya Lattner [Fri, 19 Nov 2004 01:25:14 +0000 (01:25 +0000)]
Added link to information on Statistic which is in the Programmers Manual.

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

19 years agoDelete stoppoints that occur for the same source line.
Chris Lattner [Thu, 18 Nov 2004 21:41:39 +0000 (21:41 +0000)]
Delete stoppoints that occur for the same source line.

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

19 years agoAdd support for llvm.dbg.stoppoint
Chris Lattner [Thu, 18 Nov 2004 21:41:16 +0000 (21:41 +0000)]
Add support for llvm.dbg.stoppoint

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

19 years agoLine numbers are go for 1.4! :)
Chris Lattner [Thu, 18 Nov 2004 21:25:11 +0000 (21:25 +0000)]
Line numbers are go for 1.4! :)

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

19 years agolibpng is not even used by povray3.1 in the current configuration, just
Chris Lattner [Thu, 18 Nov 2004 21:21:54 +0000 (21:21 +0000)]
libpng is not even used by povray3.1 in the current configuration, just
drop it completely.

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

19 years agoAdd MMC
Chris Lattner [Thu, 18 Nov 2004 21:04:21 +0000 (21:04 +0000)]
Add MMC

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

19 years agoDuh, put tools in *bin* directory, not *tools* directory as per
Reid Spencer [Thu, 18 Nov 2004 20:04:39 +0000 (20:04 +0000)]
Duh, put tools in *bin* directory, not *tools* directory as per
PR456.

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

19 years agoRemove debugging code, unneuter this functionality
Chris Lattner [Thu, 18 Nov 2004 19:42:50 +0000 (19:42 +0000)]
Remove debugging code, unneuter this functionality

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

19 years agoremove debugging code
Chris Lattner [Thu, 18 Nov 2004 19:40:13 +0000 (19:40 +0000)]
remove debugging code

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

19 years agoFixed to fit in 80 columns.
Tanya Lattner [Thu, 18 Nov 2004 18:47:29 +0000 (18:47 +0000)]
Fixed to fit in 80 columns.

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

19 years agoAdd notes about makefile changes and llvm-ar.
Reid Spencer [Thu, 18 Nov 2004 18:38:58 +0000 (18:38 +0000)]
Add notes about makefile changes and llvm-ar.

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

19 years agoAdding option to llc for ModuloScheduling. By default it is turned off.
Tanya Lattner [Thu, 18 Nov 2004 18:38:01 +0000 (18:38 +0000)]
Adding option to llc for ModuloScheduling. By default it is turned off.

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

19 years agoThese methods are inlined
Chris Lattner [Thu, 18 Nov 2004 17:47:13 +0000 (17:47 +0000)]
These methods are inlined

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

19 years agoUpdate comments, now that CPR's are gone, inline the methods
Chris Lattner [Thu, 18 Nov 2004 17:46:57 +0000 (17:46 +0000)]
Update comments, now that CPR's are gone, inline the methods

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

19 years agoCheck in hook that I forgot
Chris Lattner [Thu, 18 Nov 2004 17:24:20 +0000 (17:24 +0000)]
Check in hook that I forgot

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

19 years agoFix PR456:\
Reid Spencer [Thu, 18 Nov 2004 10:03:46 +0000 (10:03 +0000)]
Fix PR456:\
Tools and libraries will be built into $(BUILD_OBJ_ROOT)/$(BuildMode)/bin and \
$(BUILD_OBJ_ROOT)/$(BuildMode)/lib, respectively. Furthermore, the example \
programs will go in $(BUILD_OBJ_ROOT)/$(BuildMode)/examples to keep them \
separate from the tools and hopefully out of the PATH. Install targets \
have not changed.

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

19 years agoInclude ltdl.h if we have it.
Reid Spencer [Thu, 18 Nov 2004 09:50:00 +0000 (09:50 +0000)]
Include ltdl.h if we have it.

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

19 years agoAdd checks for HAVE_LTDL_H and HAVE_LT_DLOPEN
Reid Spencer [Thu, 18 Nov 2004 09:49:13 +0000 (09:49 +0000)]
Add checks for HAVE_LTDL_H and HAVE_LT_DLOPEN

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

19 years agoChanges for testing presence of ltdl.h and lt_dlopen(), libtool functions
Reid Spencer [Thu, 18 Nov 2004 09:47:37 +0000 (09:47 +0000)]
Changes for testing presence of ltdl.h and lt_dlopen(), libtool functions
for cross-platform dynamic loading of shared objects.

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

19 years agoRewrite LoadArgumentsToVirtualRegs, making it match almost exactly how
Brian Gaeke [Thu, 18 Nov 2004 07:43:33 +0000 (07:43 +0000)]
Rewrite LoadArgumentsToVirtualRegs, making it match almost exactly how
visitCallInst works.  Support cast of byte/short/int to long.

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

19 years agoUpdate current expected failures list - expand it to include all of
Brian Gaeke [Thu, 18 Nov 2004 07:43:32 +0000 (07:43 +0000)]
Update current expected failures list - expand it to include all of
SingleSource. Update to-do list (open-coding refers to binary operations on
longs, not to passing them into functions, which we already support.)

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

19 years agoEliminate another common source of moves that the register allocator
Nate Begeman [Thu, 18 Nov 2004 07:22:46 +0000 (07:22 +0000)]
Eliminate another common source of moves that the register allocator
shouldn't be forced to coalesce for us: folded GEP operations.  This too
fires thousands of times across the testsuite.

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

19 years agoWhen accessing the base register for global variables, use the register
Nate Begeman [Thu, 18 Nov 2004 06:51:29 +0000 (06:51 +0000)]
When accessing the base register for global variables, use the register
directly rather than making a copy for the register allocator to coalesce.
This kills thousands of live intervals across the testsuite.

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

19 years ago* There is no reason for SpillWeights to be an instance var
Chris Lattner [Thu, 18 Nov 2004 06:01:45 +0000 (06:01 +0000)]
* There is no reason for SpillWeights to be an instance var
* Do not put fixed registers into the unhandled set.  This means they will
  never find their way into the inactive, active, or handled sets, so we
  can simplify a bunch of code.

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