Commit Graph

16427 Commits

Author SHA1 Message Date
Reid Spencer ee556dd431 Put some header files back that Win32 needs.
llvm-svn: 19058
2004-12-20 03:59:23 +00:00
Jeff Cohen 7ae0bc7111 Keep up with lib/System changes
llvm-svn: 19057
2004-12-20 03:24:56 +00:00
Jeff Cohen be92640355 Fix problems uncovered by VC++ (first time compiled by VC++)
llvm-svn: 19056
2004-12-20 03:23:46 +00:00
Reid Spencer ac38f3a028 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

llvm-svn: 19055
2004-12-20 00:59:28 +00:00
Reid Spencer 27fa6c6d49 For PR351:
No need for Unix/SUS/Process.cpp any more, just ifdef it.

llvm-svn: 19054
2004-12-20 00:59:16 +00:00
Reid Spencer 2708881067 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.

llvm-svn: 19053
2004-12-20 00:59:04 +00:00
Reid Spencer 8b44f87ef9 For PR351:
* Add checks for sbrk and getpagesize functions
* Alphebetize the checks for functions

llvm-svn: 19052
2004-12-20 00:59:04 +00:00
Reid Spencer 554368e4d9 For PR351:
* Add GetMallocUsage as a wrapper around mallinfo()
* Add GetTotalMemoryUsage to get approximate RSS size
* Add GetTimeUsage to get elapsed/system/user time

llvm-svn: 19051
2004-12-20 00:58:53 +00:00
Reid Spencer 47dff91dc2 Wrap long lines
llvm-svn: 19050
2004-12-20 00:58:41 +00:00
Reid Spencer d816f9e935 For PR351:
This file is no longer needed as system dependent functions have been
encapsulated into lib/System.

llvm-svn: 19049
2004-12-20 00:58:25 +00:00
Misha Brukman f06cb1db24 * Use "" for LLVM include files, not <>
* llvm/Config/alloca.h already #includes config.h
* Minor readability/stylistic changes

llvm-svn: 19048
2004-12-20 00:16:38 +00:00
Brian Gaeke cb1b1e74eb Make this compile on Solaris.
llvm-svn: 19047
2004-12-19 21:08:07 +00:00
Misha Brukman 0eb431c04c Use <> for system #include files
llvm-svn: 19046
2004-12-19 19:27:11 +00:00
Brian Gaeke 8062bde121 Make references to 'struct sigaction' compile under Solaris.
llvm-svn: 19045
2004-12-19 18:58:11 +00:00
Reid Spencer 766ad0b77f For PR351:
* Support changes in sys::Program::ExecuteAndWait interface

llvm-svn: 19044
2004-12-19 18:00:56 +00:00
Reid Spencer 6cb551b279 For PR351:
Move the functionality of RunProgramWithTimeout into the ExecuteAndWait
function: support a timeout and I/O redirects

llvm-svn: 19043
2004-12-19 18:00:44 +00:00
Reid Spencer 72d1627d16 For PR351:
Add a needed include.

llvm-svn: 19042
2004-12-19 18:00:32 +00:00
Reid Spencer 2d76ff5c85 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"

llvm-svn: 19041
2004-12-19 18:00:21 +00:00
Reid Spencer d44f845213 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.

llvm-svn: 19040
2004-12-19 18:00:09 +00:00
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