oota-llvm.git
19 years agoRemove instructions to make aliases for llvmgcc and llvmg++ as the CFE
Reid Spencer [Tue, 21 Dec 2004 18:52:08 +0000 (18:52 +0000)]
Remove instructions to make aliases for llvmgcc and llvmg++ as the CFE
Build instructions now direct the user to have the CFE generate executables
with those names via the --program-prefix=llvm configure option.

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

19 years agoFor PR432:
Reid Spencer [Tue, 21 Dec 2004 18:50:54 +0000 (18:50 +0000)]
For PR432:
Add instructions for using the --program-prefix=llvm so that the CFE build
produces llvmgcc instead of gcc.

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

19 years agoFix VC++ compilation error
Jeff Cohen [Tue, 21 Dec 2004 15:40:41 +0000 (15:40 +0000)]
Fix VC++ compilation error

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

19 years agoFor PR351:
Reid Spencer [Tue, 21 Dec 2004 07:51:33 +0000 (07:51 +0000)]
For PR351:
Remove unix specific code (use of errno and read) from the reader.
Thanks to Jeff Cohen for pointing this out.

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

19 years agoVisual Studio project Configure should place the configured header files
Jeff Cohen [Tue, 21 Dec 2004 06:49:13 +0000 (06:49 +0000)]
Visual Studio project Configure should place the configured header files
in the win32 subtree instead of the src subtree.

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

19 years agoPut the CopyFile function explicitly in the sys namespace.
Reid Spencer [Tue, 21 Dec 2004 03:27:08 +0000 (03:27 +0000)]
Put the CopyFile function explicitly in the sys namespace.

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

19 years agoUse explicit construction of sys::Path from std::string because the
Reid Spencer [Tue, 21 Dec 2004 03:24:02 +0000 (03:24 +0000)]
Use explicit construction of sys::Path from std::string because the
constructor is "explicit".

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

19 years agoInclude <cassert> for Cygwin.
Reid Spencer [Tue, 21 Dec 2004 00:22:51 +0000 (00:22 +0000)]
Include <cassert> for Cygwin.

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

19 years agoCygwin doesn't like .. through a link, so drop the ..
Reid Spencer [Mon, 20 Dec 2004 22:21:41 +0000 (22:21 +0000)]
Cygwin doesn't like .. through a link, so drop the ..

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

19 years agoFix a bug where system time always equals user time
Reid Spencer [Mon, 20 Dec 2004 21:44:27 +0000 (21:44 +0000)]
Fix a bug where system time always equals user time

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

19 years agoImplement GetTimeUsage correctly.
Reid Spencer [Mon, 20 Dec 2004 21:43:33 +0000 (21:43 +0000)]
Implement GetTimeUsage correctly.

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

19 years agoAllow compilers that can't distinguish between a class instantiation and
Reid Spencer [Mon, 20 Dec 2004 19:16:12 +0000 (19:16 +0000)]
Allow compilers that can't distinguish between a class instantiation and
the declaration of a function to compile this.

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

19 years agoProvide a getrusage based implementation of GetTotalMemoryUsage and use
Reid Spencer [Mon, 20 Dec 2004 16:33:37 +0000 (16:33 +0000)]
Provide a getrusage based implementation of GetTotalMemoryUsage and use
the ru_maxrss field as an approximation.

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

19 years agoConsistently use the same #if style. Also, fix a bug testing for sbrk(3)
Reid Spencer [Mon, 20 Dec 2004 16:06:44 +0000 (16:06 +0000)]
Consistently use the same #if style. Also, fix a bug testing for sbrk(3)

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

19 years agoRemove unnecessary #includes.
Reid Spencer [Mon, 20 Dec 2004 06:38:12 +0000 (06:38 +0000)]
Remove unnecessary #includes.

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

19 years agoBe double sure about including sys/stat.h by wrapping the inclusion in
Reid Spencer [Mon, 20 Dec 2004 06:34:02 +0000 (06:34 +0000)]
Be double sure about including sys/stat.h by wrapping the inclusion in
an "#if defined(HAVE_SYS_STAT_H)".

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

19 years agollvm/Config/unistd.h has gone away, far, far away
Misha Brukman [Mon, 20 Dec 2004 05:36:57 +0000 (05:36 +0000)]
llvm/Config/unistd.h has gone away, far, far away

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

19 years agoRemove the #include of llvm/Config/unistd.h as it is no longer needed.
Reid Spencer [Mon, 20 Dec 2004 04:52:04 +0000 (04:52 +0000)]
Remove the #include of llvm/Config/unistd.h as it is no longer needed.

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

19 years agoRemove this file as there are no LLVM users of it any more.
Reid Spencer [Mon, 20 Dec 2004 04:35:20 +0000 (04:35 +0000)]
Remove this file as there are no LLVM users of it any more.

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

19 years agoIncorporate the contents of include/llvm/Config/unistd.h as this is the
Reid Spencer [Mon, 20 Dec 2004 04:34:36 +0000 (04:34 +0000)]
Incorporate the contents of include/llvm/Config/unistd.h as this is the
last file in LLVM to require the header. After ths commmit, our unistd.h
will go away.

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

19 years agoRemove this file as its not used by anything in LLVM any more. System
Reid Spencer [Mon, 20 Dec 2004 04:25:53 +0000 (04:25 +0000)]
Remove this file as its not used by anything in LLVM any more. System
dependent behavior is now made through the lib/System interface.

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

19 years agoRemove these files as they are included by nothing in LLVM any more. The
Reid Spencer [Mon, 20 Dec 2004 04:24:32 +0000 (04:24 +0000)]
Remove these files as they are included by nothing in LLVM any more. The
system dependent functionality has been moved to lib/System.

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

19 years agoRemove these headers. The files that used to #include them don't any more
Reid Spencer [Mon, 20 Dec 2004 04:20:37 +0000 (04:20 +0000)]
Remove these headers. The files that used to #include them don't any more
as most system dependent behavior has been moved to lib/System.

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

19 years agoRemove un-needed #includes.
Reid Spencer [Mon, 20 Dec 2004 04:15:44 +0000 (04:15 +0000)]
Remove un-needed #includes.

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

19 years agoAdd HAVE_SYSCONF
Reid Spencer [Mon, 20 Dec 2004 04:08:58 +0000 (04:08 +0000)]
Add HAVE_SYSCONF

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

19 years agoUse Config/alloca.h instead of alloca.h - pointed out by Duraid and Misha
Brian Gaeke [Mon, 20 Dec 2004 04:02:01 +0000 (04:02 +0000)]
Use Config/alloca.h instead of alloca.h - pointed out by Duraid and Misha

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

19 years agoPut some header files back that Win32 needs.
Reid Spencer [Mon, 20 Dec 2004 03:59:23 +0000 (03:59 +0000)]
Put some header files back that Win32 needs.

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

19 years agoKeep up with lib/System changes
Jeff Cohen [Mon, 20 Dec 2004 03:24:56 +0000 (03:24 +0000)]
Keep up with lib/System changes

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

19 years agoFix problems uncovered by VC++ (first time compiled by VC++)
Jeff Cohen [Mon, 20 Dec 2004 03:23:46 +0000 (03:23 +0000)]
Fix problems uncovered by VC++ (first time compiled by VC++)

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:59:28 +0000 (00:59 +0000)]
For PR351:
* Implement GetMallocUsage to get usage of malloc heap
* Implement GetMemoryUsage to get total memory usage of process
* Implement GetTimeUsage to get elapsed/user/system time

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:59:16 +0000 (00:59 +0000)]
For PR351:
No need for Unix/SUS/Process.cpp any more, just ifdef it.

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:59:04 +0000 (00:59 +0000)]
For PR351:
* Move system dependent implementation out of this file.
* Make implementation use sys::Process::GetMallocUsage where necessary.
* Make implementation use sys::Process::GetTimeUsage where necessary.

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:59:04 +0000 (00:59 +0000)]
For PR351:
* Add checks for sbrk and getpagesize functions
* Alphebetize the checks for functions

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:58:53 +0000 (00:58 +0000)]
For PR351:
* Add GetMallocUsage as a wrapper around mallinfo()
* Add GetTotalMemoryUsage to get approximate RSS size
* Add GetTimeUsage to get elapsed/system/user time

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

19 years agoWrap long lines
Reid Spencer [Mon, 20 Dec 2004 00:58:41 +0000 (00:58 +0000)]
Wrap long lines

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

19 years agoFor PR351:
Reid Spencer [Mon, 20 Dec 2004 00:58:25 +0000 (00:58 +0000)]
For PR351:
This file is no longer needed as system dependent functions have been
encapsulated into lib/System.

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

19 years ago* Use "" for LLVM include files, not <>
Misha Brukman [Mon, 20 Dec 2004 00:16:38 +0000 (00:16 +0000)]
* Use "" for LLVM include files, not <>
* llvm/Config/alloca.h already #includes config.h
* Minor readability/stylistic changes

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

19 years agoMake this compile on Solaris.
Brian Gaeke [Sun, 19 Dec 2004 21:08:07 +0000 (21:08 +0000)]
Make this compile on Solaris.

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

19 years agoUse <> for system #include files
Misha Brukman [Sun, 19 Dec 2004 19:27:11 +0000 (19:27 +0000)]
Use <> for system #include files

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

19 years agoMake references to 'struct sigaction' compile under Solaris.
Brian Gaeke [Sun, 19 Dec 2004 18:58:11 +0000 (18:58 +0000)]
Make references to 'struct sigaction' compile under Solaris.

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

19 years agoFor PR351:
Reid Spencer [Sun, 19 Dec 2004 18:00:56 +0000 (18:00 +0000)]
For PR351:
* Support changes in sys::Program::ExecuteAndWait interface

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

19 years agoFor PR351:
Reid Spencer [Sun, 19 Dec 2004 18:00:44 +0000 (18:00 +0000)]
For PR351:
Move the functionality of RunProgramWithTimeout into the ExecuteAndWait
function: support a timeout and I/O redirects

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

19 years agoFor PR351:
Reid Spencer [Sun, 19 Dec 2004 18:00:32 +0000 (18:00 +0000)]
For PR351:
Add a needed include.

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

19 years agoFor PR351:
Reid Spencer [Sun, 19 Dec 2004 18:00:21 +0000 (18:00 +0000)]
For PR351:
* Pass sys::Path instead of std::string for paths
* Correct the types of arguments passed to RunProgramWithTimeout due to its
  interface using sys::Path instead of std::string
* Replace "/dev/null" (not portable) with empty string which
  sys::Program::ExecuteAndWait recognizes as "redirect to bit bucket"

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

19 years agoFor PR351:
Reid Spencer [Sun, 19 Dec 2004 18:00:09 +0000 (18:00 +0000)]
For PR351:
* Remove unneeded header files.
* Move RedirectFD static function to lib/System/Unix/Program.cpp
* Delete RunProgramWithTimeout, now implemented by
  sys::Program::ExecuteAndWait. RunProgramWithTimeout is now a convenience func.

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

19 years agoFor PR351:
Reid Spencer [Sun, 19 Dec 2004 17:59:57 +0000 (17:59 +0000)]
For PR351:
Incorporate the abilities of RunPRogramWithTimeout into
sys::Program::ExecuteAndWait so that redirection and a timeout are optionally
supported.

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

19 years agoFor PR351:
Reid Spencer [Sun, 19 Dec 2004 17:59:45 +0000 (17:59 +0000)]
For PR351:
Turn path instance variables into sys::Path instead of std::string

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

19 years agoFor PR351:
Reid Spencer [Sun, 19 Dec 2004 17:59:33 +0000 (17:59 +0000)]
For PR351:
Replace RunProgramWithTimeout with an inline function that calls
sys::Program::ExecuteAndWait. This is now just a convenience function.

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

19 years agoAdd llc project to Visual Studio
Jeff Cohen [Sun, 19 Dec 2004 17:53:47 +0000 (17:53 +0000)]
Add llc project to Visual Studio

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

19 years agoAdd lli project to Visual Studio
Jeff Cohen [Sun, 19 Dec 2004 06:40:39 +0000 (06:40 +0000)]
Add lli project to Visual Studio

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

19 years agoEnable browse information in Visual Studio
Jeff Cohen [Sun, 19 Dec 2004 02:29:00 +0000 (02:29 +0000)]
Enable browse information in Visual Studio

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

19 years agoImprove dependency management for lib/system/win32/* files. Instead of copying the
Jeff Cohen [Sat, 18 Dec 2004 08:01:43 +0000 (08:01 +0000)]
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!

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

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