Commit Graph

16644 Commits

Author SHA1 Message Date
Reid Spencer 4fea306f5e For PR351:
Incorporate the abilities of RunPRogramWithTimeout into
sys::Program::ExecuteAndWait so that redirection and a timeout are optionally
supported.

llvm-svn: 19039
2004-12-19 17:59:57 +00:00
Reid Spencer 8d3bdca1b4 For PR351:
Turn path instance variables into sys::Path instead of std::string

llvm-svn: 19038
2004-12-19 17:59:45 +00:00
Reid Spencer fb741b2700 For PR351:
Replace RunProgramWithTimeout with an inline function that calls
sys::Program::ExecuteAndWait. This is now just a convenience function.

llvm-svn: 19037
2004-12-19 17:59:33 +00:00
Jeff Cohen 033fed0205 Add llc project to Visual Studio
llvm-svn: 19036
2004-12-19 17:53:47 +00:00
Jeff Cohen e14dc8bb79 Add lli project to Visual Studio
llvm-svn: 19035
2004-12-19 06:40:39 +00:00
Jeff Cohen b49205c550 Enable browse information in Visual Studio
llvm-svn: 19034
2004-12-19 02:29:00 +00:00
Jeff Cohen 45efd8df99 Improve dependency management for lib/system/win32/* files. Instead of copying the
files from win32/* to platform/*, create one line files in platform that include the
corresponding file in win32.  This makes life much more enjoyable!

The cruel irony is that NTFS has hard links just like Unix, but there's no way to
get to them from the DOS prompt!

llvm-svn: 19033
2004-12-18 08:01:43 +00:00
Jeff Cohen ca9b7e66d0 Don't forget about release configuration...
llvm-svn: 19032
2004-12-18 07:05:59 +00:00
Jeff Cohen c3ba60ece6 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.

llvm-svn: 19031
2004-12-18 06:55:41 +00:00
Reid Spencer 5ababc6f33 sys::CopyFile returns void and throws an exception on error which will be
caught by llvm-ld's main function.

llvm-svn: 19030
2004-12-18 06:54:21 +00:00
Reid Spencer 8b086e3871 sys::CopyString throws an exception on error which will be caught by gccld
main function.

llvm-svn: 19029
2004-12-18 06:53:10 +00:00
Jeff Cohen 81184bb528 Fix win32 breakage
llvm-svn: 19028
2004-12-18 06:42:15 +00:00
Reid Spencer 16ce83c3a6 The CopyFile function got moved into the sys namespace.
llvm-svn: 19026
2004-12-18 00:19:32 +00:00
Reid Spencer b3d3f1b579 Correct the name of the method. CopyFiles -> CopyFile.
llvm-svn: 19025
2004-12-18 00:14:24 +00:00
Chris Lattner 45382d34cc Remove unused enum value
llvm-svn: 19024
2004-12-17 22:41:46 +00:00
Tanya Lattner 96f6909ae1 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.
llvm-svn: 19023
2004-12-17 20:58:34 +00:00
Reid Spencer 181cf4ce17 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.

llvm-svn: 19022
2004-12-17 19:09:16 +00:00
Chris Lattner 227010bb31 Remove unused #include
llvm-svn: 19021
2004-12-17 19:07:04 +00:00
Reid Spencer 0575a63578 Only #include sys/stat.h if we're on linux where we have the PR274 problem.
llvm-svn: 19020
2004-12-17 18:56:29 +00:00
Chris Lattner 5e5e3f4409 Make this testcase a bit more challanging
llvm-svn: 19019
2004-12-17 17:14:00 +00:00
Chris Lattner a12b5df616 Actually overload the virtual method. This fixes
Regression/Analysis/GlobalsModRef/purecse.ll.  Isn't this what the
-Woverload-whatever flag would warn about :)

llvm-svn: 19018
2004-12-17 17:12:24 +00:00
Chris Lattner 493cc12415 Change the test to check to see that CSE happens not dead call elim
llvm-svn: 19017
2004-12-17 17:11:41 +00:00
Chris Lattner f953b24f4e Make code fit in 80 cols
llvm-svn: 19016
2004-12-17 17:02:54 +00:00
Reid Spencer 1abfe0d655 Reverse the logic for Win32 to ensure that bugpoint and llvm-db are NOT
built on this platform.

llvm-svn: 19015
2004-12-17 08:00:40 +00:00
Reid Spencer 120aa08e1c Fix this file to actually work. ifneq was incorrectly used. Subtract out
llvm-db and bugpoint for Win32 rather than add them in
subtr

llvm-svn: 19014
2004-12-17 07:59:53 +00:00
Reid Spencer 801643d737 Describe the new "reconfigure" and "spotless" targets.
llvm-svn: 19013
2004-12-17 07:46:45 +00:00
Reid Spencer 7ef8e66e50 Complete the implementation of the spotless rule and make it not depend on
the .. directory.

llvm-svn: 19012
2004-12-17 07:45:03 +00:00
Reid Spencer 19dd542a31 Makefile.JIT doesn't exist any more so it doesn't need to be distributed.
llvm-svn: 19009
2004-12-17 02:06:36 +00:00
Reid Spencer 0306c68c1f 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).

llvm-svn: 19008
2004-12-17 01:46:41 +00:00
Chris Lattner db0bf10e4a Change the sentinal
llvm-svn: 19007
2004-12-17 00:46:51 +00:00
Chris Lattner 979b903916 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).

llvm-svn: 19006
2004-12-17 00:07:46 +00:00
Tanya Lattner 991b5e9457 Chris is a pain ;) Removing reassociate.
llvm-svn: 19005
2004-12-16 23:16:16 +00:00
Tanya Lattner a5528e89fd Removing commented out lines.
llvm-svn: 19004
2004-12-16 23:13:16 +00:00
Tanya Lattner 08e19bb412 Removed LICM and GCSE.
llvm-svn: 19003
2004-12-16 23:07:36 +00:00
Tanya Lattner c3a7bd7d0c Linking in all of ScalarOpts.
llvm-svn: 19002
2004-12-16 23:07:13 +00:00
Reid Spencer 584cb0a8c1 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

llvm-svn: 19001
2004-12-16 23:04:20 +00:00
Reid Spencer beb9946af8 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()

llvm-svn: 19000
2004-12-16 23:01:34 +00:00
Reid Spencer ea71e3c89b 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

llvm-svn: 18999
2004-12-16 23:00:05 +00:00
Chris Lattner 867783adc4 X86 doesn't actually use SelectionDAG yet.
llvm-svn: 18996
2004-12-16 19:40:10 +00:00
Chris Lattner eb5a2cf32b No targets actually use this library
llvm-svn: 18995
2004-12-16 19:39:45 +00:00
Chris Lattner 5a4c66cfe9 Remove dead #include
llvm-svn: 18994
2004-12-16 19:32:38 +00:00
Reid Spencer b193ec5a13 Fix a compile error. config.h is now needed because DataTypes.h doesn't
include it any more.

llvm-svn: 18993
2004-12-16 19:19:24 +00:00
Reid Spencer 6b9c46de92 Get rid of inclusion of config.h because this file is autoconf'd.
llvm-svn: 18992
2004-12-16 18:47:17 +00:00
Reid Spencer afdc82c259 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.

llvm-svn: 18991
2004-12-16 18:26:53 +00:00
Reid Spencer d42d5d433f Add CMP and CP configuration variables for the unix cmp and cp programs.
llvm-svn: 18990
2004-12-16 17:48:14 +00:00
Chris Lattner f86914daae Factor all of the .inc : .inc.tmp rules into one.
llvm-svn: 18989
2004-12-16 17:38:56 +00:00
Chris Lattner 22f937ae52 Add spaces between rule groups to make it more obvious which ones pair
Remove instrselector generation, remove Intel/ATT specifics from Makefile.rules.

llvm-svn: 18988
2004-12-16 17:34:04 +00:00
Chris Lattner 20d74fd986 Adjust to changes in asmwriter filenames
llvm-svn: 18987
2004-12-16 17:33:24 +00:00
Chris Lattner 2a02390beb 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.

llvm-svn: 18986
2004-12-16 17:28:50 +00:00
Chris Lattner a38954dd64 Specify all of the targets built.
llvm-svn: 18985
2004-12-16 17:26:44 +00:00