oota-llvm.git
19 years agoDon't forget about release configuration...
Jeff Cohen [Sat, 18 Dec 2004 07:05:59 +0000 (07:05 +0000)]
Don't forget about release configuration...

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

19 years agoRationalize warning suppression. First, 64-bit portability warnings are disabled...
Jeff Cohen [Sat, 18 Dec 2004 06:55:41 +0000 (06:55 +0000)]
Rationalize warning suppression.  First, 64-bit portability warnings are disabled.  The
specific warnings they produced were being suppressed anyway.  The truncation warnings
that were suppressed are now enabled, and the few that still occur ought to be fixed.
The only warnings suppressed now are the "negating an unsigned is still unsigned", the
validity of which Chris does not accept, and the "implicit conversion of <type> to bool
performance warning".  Making the conversion explicit won't make it run any faster and
this is an easier way to shut the compiler up.

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

19 years agosys::CopyFile returns void and throws an exception on error which will be
Reid Spencer [Sat, 18 Dec 2004 06:54:21 +0000 (06:54 +0000)]
sys::CopyFile returns void and throws an exception on error which will be
caught by llvm-ld's main function.

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

19 years agosys::CopyString throws an exception on error which will be caught by gccld
Reid Spencer [Sat, 18 Dec 2004 06:53:10 +0000 (06:53 +0000)]
sys::CopyString throws an exception on error which will be caught by gccld
main function.

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

19 years agoFix win32 breakage
Jeff Cohen [Sat, 18 Dec 2004 06:42:15 +0000 (06:42 +0000)]
Fix win32 breakage

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

19 years agoThe CopyFile function got moved into the sys namespace.
Reid Spencer [Sat, 18 Dec 2004 00:19:32 +0000 (00:19 +0000)]
The CopyFile function got moved into the sys namespace.

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

19 years agoCorrect the name of the method. CopyFiles -> CopyFile.
Reid Spencer [Sat, 18 Dec 2004 00:14:24 +0000 (00:14 +0000)]
Correct the name of the method. CopyFiles -> CopyFile.

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

19 years agoRemove unused enum value
Chris Lattner [Fri, 17 Dec 2004 22:41:46 +0000 (22:41 +0000)]
Remove unused enum value

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

19 years agoAlways print out DejagnuTest results to stdout so that it gets emailed to the nightly...
Tanya Lattner [Fri, 17 Dec 2004 20:58:34 +0000 (20:58 +0000)]
Always print out DejagnuTest results to stdout so that it gets emailed to the nightly test manager. Eventually Dejagnu should be merged into the added/removed tests.

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

19 years agoMove the #include of sys/stat.h inside the linux "hack" for the stat
Reid Spencer [Fri, 17 Dec 2004 19:09:16 +0000 (19:09 +0000)]
Move the #include of sys/stat.h inside the linux "hack" for the stat
family of functions so it gets noticed if we ever remove this.

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

19 years agoRemove unused #include
Chris Lattner [Fri, 17 Dec 2004 19:07:04 +0000 (19:07 +0000)]
Remove unused #include

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

19 years agoOnly #include sys/stat.h if we're on linux where we have the PR274 problem.
Reid Spencer [Fri, 17 Dec 2004 18:56:29 +0000 (18:56 +0000)]
Only #include sys/stat.h if we're on linux where we have the PR274 problem.

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

19 years agoMake this testcase a bit more challanging
Chris Lattner [Fri, 17 Dec 2004 17:14:00 +0000 (17:14 +0000)]
Make this testcase a bit more challanging

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

19 years agoActually overload the virtual method. This fixes
Chris Lattner [Fri, 17 Dec 2004 17:12:24 +0000 (17:12 +0000)]
Actually overload the virtual method.  This fixes
Regression/Analysis/GlobalsModRef/purecse.ll.  Isn't this what the
-Woverload-whatever flag would warn about :)

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

19 years agoChange the test to check to see that CSE happens not dead call elim
Chris Lattner [Fri, 17 Dec 2004 17:11:41 +0000 (17:11 +0000)]
Change the test to check to see that CSE happens not dead call elim

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

19 years agoMake code fit in 80 cols
Chris Lattner [Fri, 17 Dec 2004 17:02:54 +0000 (17:02 +0000)]
Make code fit in 80 cols

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

19 years agoReverse the logic for Win32 to ensure that bugpoint and llvm-db are NOT
Reid Spencer [Fri, 17 Dec 2004 08:00:40 +0000 (08:00 +0000)]
Reverse the logic for Win32 to ensure that bugpoint and llvm-db are NOT
built on this platform.

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

19 years agoFix this file to actually work. ifneq was incorrectly used. Subtract out
Reid Spencer [Fri, 17 Dec 2004 07:59:53 +0000 (07:59 +0000)]
Fix this file to actually work. ifneq was incorrectly used. Subtract out
llvm-db and bugpoint for Win32 rather than add them in
subtr

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

19 years agoDescribe the new "reconfigure" and "spotless" targets.
Reid Spencer [Fri, 17 Dec 2004 07:46:45 +0000 (07:46 +0000)]
Describe the new "reconfigure" and "spotless" targets.

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

19 years agoComplete the implementation of the spotless rule and make it not depend on
Reid Spencer [Fri, 17 Dec 2004 07:45:03 +0000 (07:45 +0000)]
Complete the implementation of the spotless rule and make it not depend on
the .. directory.

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

19 years agoMakefile.JIT doesn't exist any more so it doesn't need to be distributed.
Reid Spencer [Fri, 17 Dec 2004 02:06:36 +0000 (02:06 +0000)]
Makefile.JIT doesn't exist any more so it doesn't need to be distributed.

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

19 years agoDisable bugpoint and llvm-db tools for Win32. They can't be supported on
Reid Spencer [Fri, 17 Dec 2004 01:46:41 +0000 (01:46 +0000)]
Disable bugpoint and llvm-db tools for Win32. They can't be supported on
that platform without a lot of work because they depend on process image
copy behavior of fork(2).

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

19 years agoChange the sentinal
Chris Lattner [Fri, 17 Dec 2004 00:46:51 +0000 (00:46 +0000)]
Change the sentinal

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

19 years agoCreate a stack slot for the return address lazily instead of eagerly. This
Chris Lattner [Fri, 17 Dec 2004 00:07:46 +0000 (00:07 +0000)]
Create a stack slot for the return address lazily instead of eagerly.  This
save small amounts of time for functions that don't call llvm.returnaddress
or llvm.frameaddress (which is almost all functions).

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

19 years agoChris is a pain ;) Removing reassociate.
Tanya Lattner [Thu, 16 Dec 2004 23:16:16 +0000 (23:16 +0000)]
Chris is a pain ;) Removing reassociate.

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

19 years agoRemoving commented out lines.
Tanya Lattner [Thu, 16 Dec 2004 23:13:16 +0000 (23:13 +0000)]
Removing commented out lines.

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

19 years agoRemoved LICM and GCSE.
Tanya Lattner [Thu, 16 Dec 2004 23:07:36 +0000 (23:07 +0000)]
Removed LICM and GCSE.

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

19 years agoLinking in all of ScalarOpts.
Tanya Lattner [Thu, 16 Dec 2004 23:07:13 +0000 (23:07 +0000)]
Linking in all of ScalarOpts.

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

19 years agoFor PR351:
Reid Spencer [Thu, 16 Dec 2004 23:04:20 +0000 (23:04 +0000)]
For PR351:
* removeFile() -> sys::Path::destroyFile()
* remove extraneous toString() calls
* convert local variables representing path names from std::string to
  sys::Path
* Use sys::Path objects with FileRemove instead of std::string
* Use sys::Path methods for construction of path names

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

19 years agoFor PR351:
Reid Spencer [Thu, 16 Dec 2004 23:01:34 +0000 (23:01 +0000)]
For PR351:
* Make the OutputC and OutputAsm functions work with sys::Path for the output
  file name instead of using std::string.
* Get rid of extraneous "toString" calls.
* Change "removeFile" to sys::Path::destroyFile()

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

19 years agoFor PR351:
Reid Spencer [Thu, 16 Dec 2004 23:00:05 +0000 (23:00 +0000)]
For PR351:
* Remove the "removeFile" function, now implemented by the
  sys::Path::destroyFile method.
* Make the FileRemove work with a sys::Path instead of a std::string

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

19 years agoX86 doesn't actually use SelectionDAG yet.
Chris Lattner [Thu, 16 Dec 2004 19:40:10 +0000 (19:40 +0000)]
X86 doesn't actually use SelectionDAG yet.

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

19 years agoNo targets actually use this library
Chris Lattner [Thu, 16 Dec 2004 19:39:45 +0000 (19:39 +0000)]
No targets actually use this library

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

19 years agoRemove dead #include
Chris Lattner [Thu, 16 Dec 2004 19:32:38 +0000 (19:32 +0000)]
Remove dead #include

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

19 years agoFix a compile error. config.h is now needed because DataTypes.h doesn't
Reid Spencer [Thu, 16 Dec 2004 19:19:24 +0000 (19:19 +0000)]
Fix a compile error. config.h is now needed because DataTypes.h doesn't
include it any more.

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

19 years agoGet rid of inclusion of config.h because this file is autoconf'd.
Reid Spencer [Thu, 16 Dec 2004 18:47:17 +0000 (18:47 +0000)]
Get rid of inclusion of config.h because this file is autoconf'd.

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

19 years agoSome minor upgrades
Reid Spencer [Thu, 16 Dec 2004 18:26:53 +0000 (18:26 +0000)]
Some minor upgrades
* Convert "cmp" usage to $(CMP)
* Convert "cp" usage to $(CP)
* Fix some build messages to reflect what's actually going on
* Add a "reconfigure" target for forcing a reconfigure. Helps with testing
  things like Chris's recent changes.

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

19 years agoAdd CMP and CP configuration variables for the unix cmp and cp programs.
Reid Spencer [Thu, 16 Dec 2004 17:48:14 +0000 (17:48 +0000)]
Add CMP and CP configuration variables for the unix cmp and cp programs.

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

19 years agoFactor all of the .inc : .inc.tmp rules into one.
Chris Lattner [Thu, 16 Dec 2004 17:38:56 +0000 (17:38 +0000)]
Factor all of the .inc : .inc.tmp rules into one.

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

19 years agoAdd spaces between rule groups to make it more obvious which ones pair
Chris Lattner [Thu, 16 Dec 2004 17:34:04 +0000 (17:34 +0000)]
Add spaces between rule groups to make it more obvious which ones pair

Remove instrselector generation, remove Intel/ATT specifics from Makefile.rules.

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

19 years agoAdjust to changes in asmwriter filenames
Chris Lattner [Thu, 16 Dec 2004 17:33:24 +0000 (17:33 +0000)]
Adjust to changes in asmwriter filenames

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

19 years agoWhen tblgen changes, regenerate all .inc files, but do not rebuild any .o
Chris Lattner [Thu, 16 Dec 2004 17:28:50 +0000 (17:28 +0000)]
When tblgen changes, regenerate all .inc files, but do not rebuild any .o
files that USE the .inc file unless the contents of the .inc file changes.

This should fix the problem where reconfiguring causes all targets to be
completely rebuilt (because config.h is usually modified, causing libsystem
to be rebuilt, causing tblgen to be rebuilt, causing .inc files to be
rebuilt, causing .o files to be rebuilt).

This patch also checks in a gross hack where .o files now explicitly depend
on $(BUILT_SOURCES), to avoid problems where the .inc files are not completely
generated before the .o files start to compile.

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

19 years agoSpecify all of the targets built.
Chris Lattner [Thu, 16 Dec 2004 17:26:44 +0000 (17:26 +0000)]
Specify all of the targets built.

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

19 years agoUse the rules in Makefile.rules to build SparcV9GenCodeEmitter.inc instead
Chris Lattner [Thu, 16 Dec 2004 16:47:56 +0000 (16:47 +0000)]
Use the rules in Makefile.rules to build SparcV9GenCodeEmitter.inc instead
of custom rules.

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

19 years agoFix header
Chris Lattner [Thu, 16 Dec 2004 16:47:03 +0000 (16:47 +0000)]
Fix header

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

19 years agoFactor out common .td file chunks.
Chris Lattner [Thu, 16 Dec 2004 16:31:57 +0000 (16:31 +0000)]
Factor out common .td file chunks.

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

19 years agoAdd a "make spotless" rule for environments with BUILD_OBJ_ROOT not equal
Reid Spencer [Thu, 16 Dec 2004 08:00:46 +0000 (08:00 +0000)]
Add a "make spotless" rule for environments with BUILD_OBJ_ROOT not equal
to BUILD_OBJ_SRC. This will save the config.status and mklib files, then
wipe out the BUILD_OBJ_ROOT, copy back config.status and mklib, and then
run config.status to regenerate the makefiles. This target gives you a
completely clean/fresh BUILD_OBJ_ROOT.

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

19 years agoGet rid of extraneous dependencies on $(BUILT_SOURCES) now that we've fixed
Reid Spencer [Thu, 16 Dec 2004 07:36:08 +0000 (07:36 +0000)]
Get rid of extraneous dependencies on $(BUILT_SOURCES) now that we've fixed
the bug with BUILT_SOURCES being dependencies of the user targets.

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

19 years agoFix a major bug with BUILT_SOURCES. You actually have to dereference a
Reid Spencer [Thu, 16 Dec 2004 07:15:16 +0000 (07:15 +0000)]
Fix a major bug with BUILT_SOURCES. You actually have to dereference a
variable before you can filter its value. Duh!

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

19 years agoRevert last patch which breaks PowerPC target because it fails to build
Reid Spencer [Thu, 16 Dec 2004 07:14:19 +0000 (07:14 +0000)]
Revert last patch which breaks PowerPC target because it fails to build
the 32bit and 64bit variants.

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

19 years agoPortability fix, thanks to Markus F.X.J. Oberhumer.
Chris Lattner [Thu, 16 Dec 2004 04:56:34 +0000 (04:56 +0000)]
Portability fix, thanks to Markus F.X.J. Oberhumer.

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

19 years agoExpository comment submitted by Henrik Bach
Jeff Cohen [Thu, 16 Dec 2004 04:06:56 +0000 (04:06 +0000)]
Expository comment submitted by Henrik Bach

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

19 years agoMake %'s a bit more explicit
Chris Lattner [Wed, 15 Dec 2004 23:38:13 +0000 (23:38 +0000)]
Make %'s a bit more explicit

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

19 years agoFix PR485, instead of emitting zero sized arrays, emit arrays of size 1.
Chris Lattner [Wed, 15 Dec 2004 23:13:15 +0000 (23:13 +0000)]
Fix PR485, instead of emitting zero sized arrays, emit arrays of size 1.

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

19 years agoChange the signatures of the destroyFile and destroyDirectory methods to
Reid Spencer [Wed, 15 Dec 2004 23:02:10 +0000 (23:02 +0000)]
Change the signatures of the destroyFile and destroyDirectory methods to
const because they affect the file system, not the Path object.

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

19 years agoAdjust documentation of GetBytecodeLibraryPaths after removing LLVMGCCDIR
Reid Spencer [Wed, 15 Dec 2004 22:49:18 +0000 (22:49 +0000)]
Adjust documentation of GetBytecodeLibraryPaths after removing LLVMGCCDIR
support from it.

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

19 years agoRemove LLVMGCCDIR.
Reid Spencer [Wed, 15 Dec 2004 22:28:35 +0000 (22:28 +0000)]
Remove LLVMGCCDIR.

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

19 years agoRemove LLVMGCCDIR from the set of defines.
Reid Spencer [Wed, 15 Dec 2004 22:27:51 +0000 (22:27 +0000)]
Remove LLVMGCCDIR from the set of defines.

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

19 years agoRemove the CFE's lib directory from the bytecode path because LLVM should
Reid Spencer [Wed, 15 Dec 2004 22:22:51 +0000 (22:22 +0000)]
Remove the CFE's lib directory from the bytecode path because LLVM should
be agnostic to the needs of any specific FE.

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

19 years agoRemove automatic insertion of CFE's lib directory into the bytecode path
Reid Spencer [Wed, 15 Dec 2004 22:21:42 +0000 (22:21 +0000)]
Remove automatic insertion of CFE's lib directory into the bytecode path
because LLVM should be agnostic to the needs of specific front ends.

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

19 years agoUnbreak all archive reading operations introduced by the last patch which
Reid Spencer [Wed, 15 Dec 2004 21:58:03 +0000 (21:58 +0000)]
Unbreak all archive reading operations introduced by the last patch which
always exited the program with exit code 1 in these cases, regardless of
whether an error occurred or not.

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

19 years agoAdd a verifier assertion
Chris Lattner [Wed, 15 Dec 2004 20:23:49 +0000 (20:23 +0000)]
Add a verifier assertion

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

19 years agoEliminate a virtual method call
Chris Lattner [Wed, 15 Dec 2004 18:14:04 +0000 (18:14 +0000)]
Eliminate a virtual method call

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

19 years agoMake archive rules properly depend on llvm-ar.
Chris Lattner [Wed, 15 Dec 2004 17:14:06 +0000 (17:14 +0000)]
Make archive rules properly depend on llvm-ar.

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

19 years agoFix a bug in -no-aa that caused two DSGraph tests to XPASS.
Chris Lattner [Wed, 15 Dec 2004 17:13:24 +0000 (17:13 +0000)]
Fix a bug in -no-aa that caused two DSGraph tests to XPASS.

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

19 years agoFix a file overwrite bug in llvm-ar introduced by changes to
Reid Spencer [Wed, 15 Dec 2004 08:32:45 +0000 (08:32 +0000)]
Fix a file overwrite bug in llvm-ar introduced by changes to
createTemporaryFile semantics where it doesn't create a fully unique name
if the basename doesn't exist. This functionality is now optionally
provided by the boolean reuse_current parameter to createTemporaryFile and
makeUnique. The default values differ because of the way these functions
are used in LLVM.

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

19 years agoDisable libprofile as llvm-ar bus errors on it, and I don't want to break
Chris Lattner [Wed, 15 Dec 2004 08:15:48 +0000 (08:15 +0000)]
Disable libprofile as llvm-ar bus errors on it, and I don't want to break
the nightly testers.

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

19 years agoDo not fail an assertion on a broken archive
Chris Lattner [Wed, 15 Dec 2004 07:44:15 +0000 (07:44 +0000)]
Do not fail an assertion on a broken archive

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

19 years agoAdjust to new interfaces
Chris Lattner [Wed, 15 Dec 2004 07:22:25 +0000 (07:22 +0000)]
Adjust to new interfaces

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

19 years agoAdjust to new alias analysis interfaces
Chris Lattner [Wed, 15 Dec 2004 07:22:13 +0000 (07:22 +0000)]
Adjust to new alias analysis interfaces

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

19 years agoMake the AliasAnalysis interface more precise for common cases.
Chris Lattner [Wed, 15 Dec 2004 07:21:39 +0000 (07:21 +0000)]
Make the AliasAnalysis interface more precise for common cases.

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

19 years agoMove virtual method call out of loop
Chris Lattner [Wed, 15 Dec 2004 07:04:32 +0000 (07:04 +0000)]
Move virtual method call out of loop

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

19 years agoMake Win32 TimeValue::toString() re-entrant and work with mingw
Jeff Cohen [Wed, 15 Dec 2004 04:28:44 +0000 (04:28 +0000)]
Make Win32 TimeValue::toString() re-entrant and work with mingw

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

19 years agoFix VC++ compilation errors
Jeff Cohen [Wed, 15 Dec 2004 04:08:15 +0000 (04:08 +0000)]
Fix VC++ compilation errors

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

19 years agoDon't put newlines in AC macros that can't handle them!
Reid Spencer [Wed, 15 Dec 2004 04:01:48 +0000 (04:01 +0000)]
Don't put newlines in AC macros that can't handle them!

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

19 years agoChange LLVMGCCDIR/bytecode-libs -> LLVMGCCDIR/lib
Reid Spencer [Wed, 15 Dec 2004 01:54:37 +0000 (01:54 +0000)]
Change LLVMGCCDIR/bytecode-libs -> LLVMGCCDIR/lib

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

19 years agoFor PR351:
Reid Spencer [Wed, 15 Dec 2004 01:53:50 +0000 (01:53 +0000)]
For PR351:
Remove #inclusion of Support/FileUtilities.h which isn't needed any more.

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

19 years agoFor PR351:
Reid Spencer [Wed, 15 Dec 2004 01:53:08 +0000 (01:53 +0000)]
For PR351:
* Convert use of getUniqueFilename to sys::Path::makeUnique();

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

19 years agoFor PR351:
Reid Spencer [Wed, 15 Dec 2004 01:51:56 +0000 (01:51 +0000)]
For PR351:
* Remove #inclusion of FileUtilities.h, not needed any more.
* Convert getUniqueFilename -> sys::Pat::makeUnique()

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

19 years agoFor PR351:
Reid Spencer [Wed, 15 Dec 2004 01:50:13 +0000 (01:50 +0000)]
For PR351:
* Fix implementation and documentation about LLVMGCCDIR/bytecode-libs
* Add the makeUnique method, replacement for getUniqueFilename in Support.
* Add the sys::CopyFile function, replacement for CopyFile in Support.
* Move GetLLVMConfigDir() into generic code area since its generic.

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

19 years agoFor PR351:
Reid Spencer [Wed, 15 Dec 2004 01:46:54 +0000 (01:46 +0000)]
For PR351:
Remove getUniqueFilename and CopyFile. These are now implemented by
sys::Path::makeUnique and sys::CopyFile, respectively.

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

19 years agoAdd some system specific functions we use
Reid Spencer [Wed, 15 Dec 2004 01:41:56 +0000 (01:41 +0000)]
Add some system specific functions we use

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

19 years agoRemove most references to LLVM_LIB_SEARCH_PATH. It now only exists in the
Reid Spencer [Wed, 15 Dec 2004 00:14:01 +0000 (00:14 +0000)]
Remove most references to LLVM_LIB_SEARCH_PATH. It now only exists in the
GettingStarted.html document in the environment section and only as an
optional feature.

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

19 years agoFix the default install directory of modules from / to $(libdir) !
Reid Spencer [Tue, 14 Dec 2004 22:44:05 +0000 (22:44 +0000)]
Fix the default install directory of modules from / to $(libdir) !

Many thanks to Vladimir Merzliakov for pointing this out!

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

19 years agoUse user time, not wall time, for optimizer time.
Chris Lattner [Tue, 14 Dec 2004 22:42:59 +0000 (22:42 +0000)]
Use user time, not wall time, for optimizer time.

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

19 years agoCorrect documentation to reflect the change in location of the CFE runtime
Reid Spencer [Tue, 14 Dec 2004 22:07:29 +0000 (22:07 +0000)]
Correct documentation to reflect the change in location of the CFE runtime
libraries. They are now in $CFEINSTALL/lib not $CFEINSTALL/bytecode-lib.

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

19 years agoConstant exprs are not efficiently negatable in practice. This disables
Chris Lattner [Tue, 14 Dec 2004 20:08:06 +0000 (20:08 +0000)]
Constant exprs are not efficiently negatable in practice.  This disables
turning X - (constantexpr) into X + (-constantexpr) among other things.

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

19 years agoAdd the getMagicNumber method.
Reid Spencer [Tue, 14 Dec 2004 18:42:13 +0000 (18:42 +0000)]
Add the getMagicNumber method.
Patch contributed by Henrik Bach. Thanks Henrik!

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

19 years agoThe mystery of Olden/tsp solved, and more opportunities for speedup.
Brian Gaeke [Tue, 14 Dec 2004 09:10:10 +0000 (09:10 +0000)]
The mystery of Olden/tsp solved, and more opportunities for speedup.

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

19 years agoGet rid of shifts by zero in most cases.
Brian Gaeke [Tue, 14 Dec 2004 08:21:02 +0000 (08:21 +0000)]
Get rid of shifts by zero in most cases.

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

19 years agoImplement Win32 Path::getStatusInfo(), TimeValue::toString()
Jeff Cohen [Tue, 14 Dec 2004 05:26:43 +0000 (05:26 +0000)]
Implement Win32 Path::getStatusInfo(), TimeValue::toString()

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

19 years agoFor PR351:
Reid Spencer [Tue, 14 Dec 2004 04:20:08 +0000 (04:20 +0000)]
For PR351:
* Change ExecWait calls to sys::Program::ExecuteAndWait
* Convert to use sys::Path where it makes sense

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

19 years agoFor PR351:
Reid Spencer [Tue, 14 Dec 2004 04:18:51 +0000 (04:18 +0000)]
For PR351:
Implement the new environment pointer for ExecuteAndWait

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

19 years agoFor PR351:
Reid Spencer [Tue, 14 Dec 2004 04:18:15 +0000 (04:18 +0000)]
For PR351:
* Remove the ExecWait function. This is now in sys::Program::ExecuteAndWait

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

19 years agoFor PR351:
Reid Spencer [Tue, 14 Dec 2004 04:17:12 +0000 (04:17 +0000)]
For PR351:
* Fix commentary, wrap lines, etc.
* Add an environment pointer to the ExecuteAndWait function.

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

19 years agoRevert the last patch as it causes a static destruction ordering problem.
Reid Spencer [Tue, 14 Dec 2004 03:55:21 +0000 (03:55 +0000)]
Revert the last patch as it causes a static destruction ordering problem.

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

19 years agoFor PR351:
Reid Spencer [Mon, 13 Dec 2004 23:44:23 +0000 (23:44 +0000)]
For PR351:
Adjust to interface change for FindExecutable.

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

19 years agoFor PR351:
Reid Spencer [Mon, 13 Dec 2004 23:43:44 +0000 (23:43 +0000)]
For PR351:
Adjust to changes in the interface of FindExecutable, getting ToolRunner
ready for bigger things to come.

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

19 years agoFor PR351:
Reid Spencer [Mon, 13 Dec 2004 23:41:37 +0000 (23:41 +0000)]
For PR351:
* Remove isExecutable as its now implemented by sys::Path::executable
* Make FindExecutable a thin veneer over sys::Program::FindProgramByName.

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

19 years agoFor PR351:
Reid Spencer [Mon, 13 Dec 2004 23:40:08 +0000 (23:40 +0000)]
For PR351:
* isExecutable -> sys::Path::executable()
* Adjust interface of FindExecutable to return a sys::Path

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