oota-llvm.git
18 years agoExceptions are thrown by and through this library.
Chris Lattner [Fri, 28 Jul 2006 22:00:24 +0000 (22:00 +0000)]
Exceptions are thrown by and through this library.

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

18 years agoWriteBytecodeToFile throws, so this needs EH info.
Chris Lattner [Fri, 28 Jul 2006 21:55:54 +0000 (21:55 +0000)]
WriteBytecodeToFile throws, so this needs EH info.

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

18 years agoFix handling of asm specifiers for external globals. This unbreaks many programs
Chris Lattner [Fri, 28 Jul 2006 21:11:31 +0000 (21:11 +0000)]
Fix handling of asm specifiers for external globals. This unbreaks many programs
on leopard in the jit.

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

18 years agoMake functions with an "asm" name propagate that asm name into the cbe.c file.
Chris Lattner [Fri, 28 Jul 2006 20:58:47 +0000 (20:58 +0000)]
Make functions with an "asm" name propagate that asm name into the cbe.c file.
This fixes link errors on programs with these on targets with prefixes.

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

18 years agoReverted previous commit. Thanks, Chris.
John Criswell [Fri, 28 Jul 2006 18:30:52 +0000 (18:30 +0000)]
Reverted previous commit.  Thanks, Chris.

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

18 years agoAdded in the LGPL text and copyright information. This needs to be
John Criswell [Fri, 28 Jul 2006 18:16:00 +0000 (18:16 +0000)]
Added in the LGPL text and copyright information.  This needs to be
included in the distribution.
Also added the glibc LICENSES file, which should be included as well.

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

18 years agoUpdating the comments above SplitFunctionsOutOfModule in ExtractFunction.cpp to refle...
Patrick Jenkins [Fri, 28 Jul 2006 18:03:01 +0000 (18:03 +0000)]
Updating the comments above SplitFunctionsOutOfModule in ExtractFunction.cpp to reflect the changes made to that function. Specifically I am removing the FIXME comment because the issue has been addressed.

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

18 years agoFix some ppc64 issues with vector code.
Chris Lattner [Fri, 28 Jul 2006 16:45:47 +0000 (16:45 +0000)]
Fix some ppc64 issues with vector code.

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

18 years agoCan't spell.
Evan Cheng [Fri, 28 Jul 2006 06:33:41 +0000 (06:33 +0000)]
Can't spell.

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

18 years agoSome clean up.
Evan Cheng [Fri, 28 Jul 2006 06:05:06 +0000 (06:05 +0000)]
Some clean up.

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

18 years agoFor PR848:
Reid Spencer [Fri, 28 Jul 2006 05:05:00 +0000 (05:05 +0000)]
For PR848:
1. Get the path to the pwd binary (/bin/pwd usually) from configure.
2. Use that path to run pwd in all path variables set in Makefile.config.in
The hope is that these changes will resolve symlinks to physical paths. This
should work on all platforms where the binary pwd defaults to printing
physical paths. The shell version of pwd generally doesn't (it will print
the symlink path).

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

18 years agoThe smallvector dtor should destroy the elements.
Chris Lattner [Fri, 28 Jul 2006 05:03:42 +0000 (05:03 +0000)]
The smallvector dtor should destroy the elements.
Implement pop_back.
Chage some code to use 'iterator' instead of T*.  This unbreaks operators=.

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

18 years agoThis commit improves bugpoints speed. On my G4 this changed caused kimwitu++ to run...
Patrick Jenkins [Fri, 28 Jul 2006 01:19:28 +0000 (01:19 +0000)]
This commit improves bugpoints speed. On my G4 this changed caused kimwitu++ to run through bugpoint in 1091.15 seconds (user + system time). The time it took to run this on my G4 before I made these changes is 1420.82 seconds (user + system time). This is a speedup of about 5.5 minutes.

This is faster because SplitFunctionsOutOfModule no longer calls Clone Module and then removes the functions it doesnt want from the module returned. Instead it creates a module and copies over the specified functions, making changes to the new and old module where neccessary. This reduces the memory demand.

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

18 years agoClean up.
Evan Cheng [Fri, 28 Jul 2006 01:19:22 +0000 (01:19 +0000)]
Clean up.

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

18 years agoRemoved some unneccesary printing from the nightly tester.
Patrick Jenkins [Fri, 28 Jul 2006 01:06:18 +0000 (01:06 +0000)]
Removed some unneccesary printing from the nightly tester.

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

18 years agoRename IsFoldableBy to CanBeFoldedleBy
Evan Cheng [Fri, 28 Jul 2006 01:03:48 +0000 (01:03 +0000)]
Rename IsFoldableBy to CanBeFoldedleBy

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

18 years agoNode selected into address mode cannot be folded.
Evan Cheng [Fri, 28 Jul 2006 00:49:31 +0000 (00:49 +0000)]
Node selected into address mode cannot be folded.

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

18 years agoRemove InFlightSet hack. No longer needed.
Evan Cheng [Fri, 28 Jul 2006 00:47:19 +0000 (00:47 +0000)]
Remove InFlightSet hack. No longer needed.

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

18 years agoPrint empty inline asms as a blank line instead of:
Chris Lattner [Fri, 28 Jul 2006 00:17:20 +0000 (00:17 +0000)]
Print empty inline asms as a blank line instead of:

        # InlineAsm Start

        # InlineAsm End

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

18 years agoAnother duh. Determine topological order before any target node is added.
Evan Cheng [Fri, 28 Jul 2006 00:10:59 +0000 (00:10 +0000)]
Another duh. Determine topological order before any target node is added.

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

18 years agoBrain cramp..
Evan Cheng [Thu, 27 Jul 2006 23:35:40 +0000 (23:35 +0000)]
Brain cramp..

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

18 years agoUndo last commit, which was committed accidentally.
Reid Spencer [Thu, 27 Jul 2006 23:19:00 +0000 (23:19 +0000)]
Undo last commit, which was committed accidentally.

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

18 years agoChanges to support cross-compiling LLVM. The GenLibDeps.pl script needs to
Reid Spencer [Thu, 27 Jul 2006 23:00:30 +0000 (23:00 +0000)]
Changes to support cross-compiling LLVM. The GenLibDeps.pl script needs to
have a compile-host version of "nm", not build-host. In order to effect this
we must use autoconf to determine the correct "nm" to use and propagate that
through the makefiles, through llvm-config and finally to GenLibDeps.pl as
an optional argument.
Patch contributed by Anton Korobeynikov. Thanks!

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

18 years agoAllocating too large an array for ReachibilityMatrix.
Evan Cheng [Thu, 27 Jul 2006 22:35:40 +0000 (22:35 +0000)]
Allocating too large an array for ReachibilityMatrix.

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

18 years agoCalculate the portion of reachbility matrix on demand.
Evan Cheng [Thu, 27 Jul 2006 22:10:00 +0000 (22:10 +0000)]
Calculate the portion of reachbility matrix on demand.

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

18 years agoisNonImmUse is replaced by IsFoldableBy
Evan Cheng [Thu, 27 Jul 2006 21:19:10 +0000 (21:19 +0000)]
isNonImmUse is replaced by IsFoldableBy

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

18 years agoRemoved some unneccesary print statemnts
Patrick Jenkins [Thu, 27 Jul 2006 21:01:39 +0000 (21:01 +0000)]
Removed some unneccesary print statemnts

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

18 years agoChangeDir now returns the correct value
Patrick Jenkins [Thu, 27 Jul 2006 20:21:26 +0000 (20:21 +0000)]
ChangeDir now returns the correct value

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

18 years agoWorking toward registration of register allocators.
Jim Laskey [Thu, 27 Jul 2006 20:05:00 +0000 (20:05 +0000)]
Working toward registration of register allocators.

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

18 years agoRemove dead code.
Evan Cheng [Thu, 27 Jul 2006 19:59:34 +0000 (19:59 +0000)]
Remove dead code.

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

18 years agoFixed a stupid error where changedir returned false upon success.
Patrick Jenkins [Thu, 27 Jul 2006 19:22:06 +0000 (19:22 +0000)]
Fixed a stupid error where changedir returned false upon success.

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

18 years agoAdded more descriptive output to singlesource,multisource tests.
Patrick Jenkins [Thu, 27 Jul 2006 19:00:01 +0000 (19:00 +0000)]
Added more descriptive output to singlesource,multisource tests.

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

18 years agoRemoved some clutter that was left over from development.
Patrick Jenkins [Thu, 27 Jul 2006 18:28:50 +0000 (18:28 +0000)]
Removed some clutter that was left over from development.
Changed how changedir worked. Hopefully now when it fails it will tell us why.

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

18 years agoResolve BB references with relocation.
Evan Cheng [Thu, 27 Jul 2006 18:21:10 +0000 (18:21 +0000)]
Resolve BB references with relocation.

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

18 years agoPass -fstrict-aliasing to the compiler when building a release build on darwin.
Chris Lattner [Thu, 27 Jul 2006 18:19:51 +0000 (18:19 +0000)]
Pass -fstrict-aliasing to the compiler when building a release build on darwin.
Darwin doesn't default to it being on.

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

18 years agoAdd basic block machine relocation.
Evan Cheng [Thu, 27 Jul 2006 18:18:13 +0000 (18:18 +0000)]
Add basic block machine relocation.

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

18 years agosynchronizeICache removeed from TargetJITInfo.
Evan Cheng [Thu, 27 Jul 2006 17:33:48 +0000 (17:33 +0000)]
synchronizeICache removeed from TargetJITInfo.

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

18 years agoCode cleanups, per review
Nate Begeman [Thu, 27 Jul 2006 16:46:58 +0000 (16:46 +0000)]
Code cleanups, per review

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

18 years agoUse reachbility information to determine whether a node can be folded into another...
Evan Cheng [Thu, 27 Jul 2006 16:44:36 +0000 (16:44 +0000)]
Use reachbility information to determine whether a node can be folded into another during isel.

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

18 years agoFixed a typo in Evan's submisson.
Jim Laskey [Thu, 27 Jul 2006 13:40:34 +0000 (13:40 +0000)]
Fixed a typo in Evan's submisson.

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

18 years agoemit global constants
Rafael Espindola [Thu, 27 Jul 2006 11:38:51 +0000 (11:38 +0000)]
emit global constants

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

18 years agoAssignNodeIds should return unsigned.
Evan Cheng [Thu, 27 Jul 2006 07:36:47 +0000 (07:36 +0000)]
AssignNodeIds should return unsigned.

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

18 years agoCorrect a misunderstanding about cross-compiling. Anton's changes don't
Reid Spencer [Thu, 27 Jul 2006 06:41:31 +0000 (06:41 +0000)]
Correct a misunderstanding about cross-compiling. Anton's changes don't
cause LLVM to become a cross-compiler but rather cross-compile LLVM so that
it can execute on a platform other than the build host.

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

18 years agoRemove NodeDepth
Evan Cheng [Thu, 27 Jul 2006 06:40:15 +0000 (06:40 +0000)]
Remove NodeDepth

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

18 years agoAssignNodeIds assign each node in the DAG an unique id.
Evan Cheng [Thu, 27 Jul 2006 06:39:06 +0000 (06:39 +0000)]
AssignNodeIds assign each node in the DAG an unique id.

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

18 years agoRemove NodeDepth; Add NodeId which is a unique id per node per DAG. It can only be...
Evan Cheng [Thu, 27 Jul 2006 06:38:21 +0000 (06:38 +0000)]
Remove NodeDepth; Add NodeId which is a unique id per node per DAG. It can only be set by SelectionDAG.

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

18 years agoLet each target specific isel provide routine to check if a chain producing node...
Evan Cheng [Thu, 27 Jul 2006 06:36:49 +0000 (06:36 +0000)]
Let each target specific isel provide routine to check if a chain producing node is foldable by another.

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

18 years agoMove synchronizeICache from TargetJITInfo into a static function in JITEmitter.cpp
Evan Cheng [Thu, 27 Jul 2006 06:33:55 +0000 (06:33 +0000)]
Move synchronizeICache from TargetJITInfo into a static function in JITEmitter.cpp

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

18 years agoFix section title to use lower case.
Reid Spencer [Thu, 27 Jul 2006 05:51:34 +0000 (05:51 +0000)]
Fix section title to use lower case.

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

18 years agoAdd instructions for building a cross-compiler. Patch contributed by
Reid Spencer [Thu, 27 Jul 2006 05:43:30 +0000 (05:43 +0000)]
Add instructions for building a cross-compiler. Patch contributed by
Anton Korobeynikov.

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

18 years agoReduce the padding on the doc_notes style. It was set to 1em which leaves
Reid Spencer [Thu, 27 Jul 2006 05:29:25 +0000 (05:29 +0000)]
Reduce the padding on the doc_notes style. It was set to 1em which leaves
the shaded box with a large blank border, wasting space.

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

18 years agoBump version #
Chris Lattner [Thu, 27 Jul 2006 04:58:33 +0000 (04:58 +0000)]
Bump version #

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

18 years agoAdd some advice
Chris Lattner [Thu, 27 Jul 2006 04:24:14 +0000 (04:24 +0000)]
Add some advice

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

18 years agoUse std::copy instead of custom loops to take advantage of STL optimizations.
Chris Lattner [Thu, 27 Jul 2006 03:38:08 +0000 (03:38 +0000)]
Use std::copy instead of custom loops to take advantage of STL optimizations.
Add a new append method for appending a range.

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

18 years agoUse the predicate.
Jim Laskey [Thu, 27 Jul 2006 02:05:13 +0000 (02:05 +0000)]
Use the predicate.

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

18 years agoI made a stupid mistake when adding support for -use-gmake. ~PJ
Patrick Jenkins [Thu, 27 Jul 2006 01:24:35 +0000 (01:24 +0000)]
I made a stupid mistake when adding support for -use-gmake. ~PJ

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

18 years agoadded support for the -use-gmake option. This will come in handy when running the...
Patrick Jenkins [Thu, 27 Jul 2006 01:17:17 +0000 (01:17 +0000)]
added support for the -use-gmake option. This will come in handy when running the test on SunOS.

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

18 years agoSupport jump tables when in PIC relocation model
Nate Begeman [Thu, 27 Jul 2006 01:13:04 +0000 (01:13 +0000)]
Support jump tables when in PIC relocation model

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

18 years agoPrevent creation of MachineDebugInfo for intel unless it is darwin. RC842.
Jim Laskey [Thu, 27 Jul 2006 01:12:23 +0000 (01:12 +0000)]
Prevent creation of MachineDebugInfo for intel unless it is darwin. RC842.

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

18 years agoThis change will allow support for SunOS to the testing script. It adds a check to...
Patrick Jenkins [Thu, 27 Jul 2006 01:03:46 +0000 (01:03 +0000)]
This change will allow support for SunOS to the testing script. It adds a check to see if we're running on SunOS and if so, then uses gmake instead of make.

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

18 years agoFix warning on linux
Chris Lattner [Thu, 27 Jul 2006 00:04:14 +0000 (00:04 +0000)]
Fix warning on linux

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

18 years agoFix a case where LegalizeAllNodesNotLeadingTo could take exponential time.
Chris Lattner [Wed, 26 Jul 2006 23:55:56 +0000 (23:55 +0000)]
Fix a case where LegalizeAllNodesNotLeadingTo could take exponential time.
This manifested itself as really long time to compile
Regression/CodeGen/Generic/2003-05-28-ManyArgs.ll on ppc.
This is PR847.

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

18 years agoFix for bug 840. Only use noinline attribute if gcc version >= 3.4
Evan Cheng [Wed, 26 Jul 2006 23:06:27 +0000 (23:06 +0000)]
Fix for bug 840. Only use noinline attribute if gcc version >= 3.4

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

18 years agoNew entry.
Evan Cheng [Wed, 26 Jul 2006 21:49:52 +0000 (21:49 +0000)]
New entry.

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

18 years agoFor PR814:
Reid Spencer [Wed, 26 Jul 2006 21:14:56 +0000 (21:14 +0000)]
For PR814:
Provide support for making cross-compiling builds. See the PR for details.
Patch provided by Anton Korobeynikov. Thanks, Anton!

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

18 years agoAvoid a "scary" make warning for the 1.8 release. This should be reenabled
Chris Lattner [Wed, 26 Jul 2006 21:14:04 +0000 (21:14 +0000)]
Avoid a "scary" make warning for the 1.8 release.  This should be reenabled
right after 1.8 "ships".

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

18 years agoRename RelocModel::PIC to PIC_, to avoid conflicts with -DPIC.
Chris Lattner [Wed, 26 Jul 2006 21:12:04 +0000 (21:12 +0000)]
Rename RelocModel::PIC to PIC_, to avoid conflicts with -DPIC.

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

18 years agoRemove an extraneous use of ${ac_exeext}. Patch by Anton Korobeynikov.
Reid Spencer [Wed, 26 Jul 2006 21:08:09 +0000 (21:08 +0000)]
Remove an extraneous use of ${ac_exeext}. Patch by Anton Korobeynikov.

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

18 years agoFor PR814:
Reid Spencer [Wed, 26 Jul 2006 20:45:12 +0000 (20:45 +0000)]
For PR814:
Add a macro for getting the build host extension for executable. Patch
contributed by Anton Korobeynikov. Thanks!

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

18 years agoallow this to pass on non-x86 machines
Chris Lattner [Wed, 26 Jul 2006 20:44:24 +0000 (20:44 +0000)]
allow this to pass on non-x86 machines

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

18 years agoFix the build on win32
Chris Lattner [Wed, 26 Jul 2006 20:37:11 +0000 (20:37 +0000)]
Fix the build on win32

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

18 years agoDon't test an example
Chris Lattner [Wed, 26 Jul 2006 20:33:20 +0000 (20:33 +0000)]
Don't test an example

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

18 years agoReduce work done for directory traversal in srcdir==objdir builds.
Chris Lattner [Wed, 26 Jul 2006 20:22:26 +0000 (20:22 +0000)]
Reduce work done for directory traversal in srcdir==objdir builds.

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

18 years agoAdd llvm2cpp to DIRs list
Chris Lattner [Wed, 26 Jul 2006 20:19:06 +0000 (20:19 +0000)]
Add llvm2cpp to DIRs list

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

18 years agoRevamp this to use filter-out, which makes the logic simpler and not nested.
Chris Lattner [Wed, 26 Jul 2006 19:10:34 +0000 (19:10 +0000)]
Revamp this to use filter-out, which makes the logic simpler and not nested.

This restores building of examples and projects!

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

18 years agoMake changes necessary for stopping the build if a cyclic library
Reid Spencer [Wed, 26 Jul 2006 17:10:54 +0000 (17:10 +0000)]
Make changes necessary for stopping the build if a cyclic library
dependency is found. The find-cycles.pl script now exits with a return code
that equals the number of cycles found. The Makefile was changed to ignore
the status code of find-cycles.pl. This should be removed once the libraries
are free of cyclic dependencies.

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

18 years agoBuild llvm-config to identify library cycles earlier in the build process.
Reid Spencer [Wed, 26 Jul 2006 17:06:02 +0000 (17:06 +0000)]
Build llvm-config to identify library cycles earlier in the build process.

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

18 years agoFor PR780:
Reid Spencer [Wed, 26 Jul 2006 16:55:39 +0000 (16:55 +0000)]
For PR780:
Put the rest of lib/System into LinkAllVMCore.h. This makes all of
lib/System available to programs that #include LinkALlVMCore.h so that
loadable modules linked into those programs can depend on all of lib/System
being available.

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

18 years agoFor PR780:
Reid Spencer [Wed, 26 Jul 2006 16:18:00 +0000 (16:18 +0000)]
For PR780:
1. Move IncludeFile.h to System library
2. Move IncludeFile.cpp to System library
3. #1 and #2 required to prevent cyclic library dependencies for libSystem
4. Convert all existing uses of Support/IncludeFile.h to System/IncludeFile.h
5. Add IncludeFile support to various lib/System classes.
6. Add new lib/System classes to LinkAllVMCore.h
All this in an attempt to pull in lib/System to what's required for VMCore

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

18 years agoNo Need to live in the past.
Jim Laskey [Wed, 26 Jul 2006 09:59:01 +0000 (09:59 +0000)]
No Need to live in the past.

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

18 years agoAdd a new llvm::SmallVector template, which is similar to the vector class, but
Chris Lattner [Wed, 26 Jul 2006 06:22:30 +0000 (06:22 +0000)]
Add a new llvm::SmallVector template, which is similar to the vector class, but
contains optimizations to avoid heap allocation if the vector size is smaller
than some threshold.  This can significantly improve the performance of code
that allocates many small vectors by eliminating tons of small malloc/free's.

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

18 years agoMoving this function to a permanent home to prevent a dependency cycle created
Jim Laskey [Tue, 25 Jul 2006 23:22:00 +0000 (23:22 +0000)]
Moving this function to a permanent home to prevent a dependency cycle created
by the inline heuristic.  Was preventing llvm-gcc4 from building.

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

18 years agoInitialize some variables the compiler warns about.
Reid Spencer [Tue, 25 Jul 2006 20:44:41 +0000 (20:44 +0000)]
Initialize some variables the compiler warns about.

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

18 years ago- Refactor the code that resolve basic block references to a TargetJITInfo
Evan Cheng [Tue, 25 Jul 2006 20:40:54 +0000 (20:40 +0000)]
- Refactor the code that resolve basic block references to a TargetJITInfo
  method.
- Added synchronizeICache() to TargetJITInfo. It is called after each block
  of code is emitted to flush the icache. This ensures correct execution
  on targets that have separate dcache and icache.
- Added PPC / Mac OS X specific code to do icache flushing.

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

18 years agoCan't commute shufps. The high / low parts elements come from different vectors.
Evan Cheng [Tue, 25 Jul 2006 20:25:40 +0000 (20:25 +0000)]
Can't commute shufps. The high / low parts elements come from different vectors.

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

18 years agoimplement function calling of functions with up to 4 arguments
Rafael Espindola [Tue, 25 Jul 2006 20:17:20 +0000 (20:17 +0000)]
implement function calling of functions with up to 4 arguments

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

18 years agoAdd a feature for debugging library dependency cycles, -why option. This
Reid Spencer [Tue, 25 Jul 2006 19:12:06 +0000 (19:12 +0000)]
Add a feature for debugging library dependency cycles, -why option. This
implies -flat and will produce a list of all the symbols for each library
that another library depends on. Run the output through c++filt for
better readability. Also, don't generate a temporary file for storing the
dependent library names. Perl can handle it in a %hash.

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

18 years agoXFAIL for now.
Evan Cheng [Mon, 24 Jul 2006 07:37:33 +0000 (07:37 +0000)]
XFAIL for now.

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

18 years agoFixing a syntax error and adding buildtype to the .a and .o file size information.
Patrick Jenkins [Sun, 23 Jul 2006 22:57:28 +0000 (22:57 +0000)]
Fixing a syntax error and adding buildtype to the .a and .o file size information.

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

18 years agoWhen the ability to gather .a and .o file sizes was added, it changed the directory...
Patrick Jenkins [Sun, 23 Jul 2006 21:38:07 +0000 (21:38 +0000)]
When the ability to gather .a and .o file sizes was added, it changed the directory the perl script was in so when we tried to run dejagnu tests, everything failed.

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

18 years agoFix the build on my old and busted version of OS X
Nate Begeman [Sat, 22 Jul 2006 16:59:38 +0000 (16:59 +0000)]
Fix the build on my old and busted version of OS X

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

18 years agoForgot to #ifdef __APPLE__
Evan Cheng [Sat, 22 Jul 2006 00:42:03 +0000 (00:42 +0000)]
Forgot to #ifdef __APPLE__

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

18 years agoadded status message during nightly test
Patrick Jenkins [Sat, 22 Jul 2006 00:00:08 +0000 (00:00 +0000)]
added status message during nightly test

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

18 years agoDone.
Evan Cheng [Fri, 21 Jul 2006 23:07:23 +0000 (23:07 +0000)]
Done.

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

18 years agoWorkaround no longer needed.
Evan Cheng [Fri, 21 Jul 2006 23:06:51 +0000 (23:06 +0000)]
Workaround no longer needed.

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

18 years agoResolve __dso_handle.
Evan Cheng [Fri, 21 Jul 2006 23:06:20 +0000 (23:06 +0000)]
Resolve __dso_handle.

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

18 years agoRemoved a hack intended to allow (store (op (load))) folding. Will handle this with...
Evan Cheng [Fri, 21 Jul 2006 22:19:51 +0000 (22:19 +0000)]
Removed a hack intended to allow (store (op (load))) folding. Will handle this with preprocessing.

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

18 years agoAdded a check to skip dejagnu test results gathering if we did not run dejagnu tests
Patrick Jenkins [Fri, 21 Jul 2006 21:58:06 +0000 (21:58 +0000)]
Added a check to skip dejagnu test results gathering if we did not run dejagnu tests

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

18 years agoFixed an issue of variable scope that prevented file size from being submitted to...
Patrick Jenkins [Fri, 21 Jul 2006 21:43:09 +0000 (21:43 +0000)]
Fixed an issue of variable scope that prevented file size from being submitted to the server.

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

18 years agoEliminate data relocations by using NULL instead of global empty list.
Jim Laskey [Fri, 21 Jul 2006 21:15:20 +0000 (21:15 +0000)]
Eliminate data relocations by using NULL instead of global empty list.

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