John Criswell
258dfc0319
Merged in autoconf branch. This provides configuration via the autoconf
...
system.
llvm-svn: 7014
2003-06-30 21:59:07 +00:00
Chris Lattner
4d3ee0f3b1
Add support for 'unsigned' command line arguments
...
llvm-svn: 6928
2003-06-28 15:47:20 +00:00
Chris Lattner
ef97ca721a
Remove usage of sys/unistd.h
...
llvm-svn: 6788
2003-06-19 18:42:09 +00:00
Brian Gaeke
f35ca29abc
Put ifdefs around use of malloc.h/mallinfo, which isn't available on FreeBSD.
...
llvm-svn: 6750
2003-06-17 19:54:00 +00:00
Chris Lattner
493103ea3b
Actually, change it to use explicit new/delete, which is more likely to be
...
optimized INTO an alloca
llvm-svn: 6727
2003-06-16 22:29:09 +00:00
Chris Lattner
9fa396e6c7
Remove usage of alloca
...
llvm-svn: 6726
2003-06-16 22:22:11 +00:00
Brian Gaeke
4681b27a92
Isolate machine-dependent use of <alloca.h> in "Support/Alloca.h",
...
so that we can easily change its use to be conditional on the result of
an autoconf test later.
llvm-svn: 6723
2003-06-16 21:54:01 +00:00
Chris Lattner
68ee069591
Fix compilation problem with some versions of G++
...
llvm-svn: 6660
2003-06-06 22:13:01 +00:00
Chris Lattner
5e34712b08
Fix problem with perror
...
llvm-svn: 6659
2003-06-06 21:09:29 +00:00
Chris Lattner
6796f5a374
Make _sure_ we don't go into an infinite loop if a signal happens!
...
llvm-svn: 6351
2003-05-27 16:25:04 +00:00
Chris Lattner
aaf60fb906
Remove long dead code
...
llvm-svn: 6307
2003-05-22 22:00:54 +00:00
Chris Lattner
6751acb59b
Add using declarations
...
llvm-svn: 6305
2003-05-22 21:59:35 +00:00
Chris Lattner
7099c87692
Add new CommaSeparated option modifier
...
llvm-svn: 6294
2003-05-22 20:26:17 +00:00
Chris Lattner
802d657a39
Destroy using declarations
...
llvm-svn: 6291
2003-05-22 20:06:43 +00:00
Chris Lattner
805f8d646e
Add a new info-output-file option (hidden from --help) which is to be used by
...
the testing scripts to avoid breaking diffs while still gathering stats.
llvm-svn: 6067
2003-05-09 20:05:44 +00:00
Chris Lattner
9efc110b12
Make more compatible with GCC 2.96
...
llvm-svn: 5550
2003-02-13 16:25:28 +00:00
Chris Lattner
34094ff7e3
Remove gunk that was supposed to make space evaluation more precise, but never worked.
...
llvm-svn: 5549
2003-02-13 05:07:53 +00:00
Chris Lattner
bf2c5b238f
Don't output times in "scientific" notation
...
llvm-svn: 5544
2003-02-12 19:02:13 +00:00
Chris Lattner
ae91295cfa
Remove the -debug option from release executables
...
llvm-svn: 5521
2003-02-09 21:13:57 +00:00
Chris Lattner
8088c79d39
Squelch warning
...
llvm-svn: 5494
2003-02-05 21:44:28 +00:00
Chris Lattner
bedb4f4a83
* Add new -track-memory option to tools which enables the mem usage column in the reports.
...
This is now optional (and defaults to off) because mallinfo can be VERY slow as it
seems to touch every page of allocated memory.
llvm-svn: 5448
2003-01-30 23:08:50 +00:00
Chris Lattner
649a63bd45
Fix build problem on sparc
...
llvm-svn: 5428
2003-01-29 18:15:34 +00:00
Chris Lattner
ab69d9da2f
Move annotation to support library
...
llvm-svn: 5268
2003-01-14 21:29:58 +00:00
Chris Lattner
801b1a9ddc
Fix static initializer ordering dependency
...
llvm-svn: 5236
2003-01-13 00:52:43 +00:00
Chris Lattner
1214348847
Fix compilation on GCC 3.2
...
llvm-svn: 5136
2002-12-24 00:44:34 +00:00
Chris Lattner
2af84f79e3
New files for miscompilation detection
...
llvm-svn: 5120
2002-12-23 23:50:16 +00:00
Chris Lattner
8118f6db93
Add peak memory usage measurement capability
...
Add (currently disabled) faciility to try to filter out pool allocation overhead from memory usage stats
llvm-svn: 4753
2002-11-18 21:47:09 +00:00
Chris Lattner
fe090b7d1f
Simplify code
...
llvm-svn: 4547
2002-11-04 21:06:54 +00:00
Chris Lattner
45a7acb725
Sun can now use mallinfo()
...
llvm-svn: 4546
2002-11-04 21:05:21 +00:00
Chris Lattner
da3f2f6133
Allow memory sizes to be negative, remove obsolete TmpRSS field
...
llvm-svn: 4538
2002-11-04 19:19:36 +00:00
Chris Lattner
33a0632b24
mallinfo is not available on sun apparently :(
...
llvm-svn: 4537
2002-11-04 19:01:41 +00:00
Chris Lattner
471179e6b9
Minor fix to space accounting
...
llvm-svn: 4520
2002-11-04 01:49:45 +00:00
Chris Lattner
a7cdb12f6c
Implement MaxRSS in terms of mallinfo instead of the system RSS. This gives
...
us much more accurate numbers and actually WORKS.
llvm-svn: 4518
2002-11-04 00:32:44 +00:00
Chris Lattner
8f38efd9dd
Add #include
...
llvm-svn: 4291
2002-10-27 19:08:03 +00:00
Anand Shukla
d49d35f562
Added #include<unistd.h> to compile with solaris gcc3.2
...
llvm-svn: 4042
2002-10-04 23:57:01 +00:00
Anand Shukla
02acbe2c93
added cast to unsigned to compile with gcc3.2 (sparc)
...
llvm-svn: 4041
2002-10-04 23:56:18 +00:00
Chris Lattner
c2322d5fac
- Rework Statistics:
...
* Renamed StatisticReporter.h/cpp to Statistic.h/cpp
* Broke constructor to take two const char * arguments instead of one, so
that indendation can be taken care of automatically.
* Sort the list by pass name when printing
* Make sure to print all statistics as a group, instead of randomly when
the statistics dtors are called.
llvm-svn: 3999
2002-10-01 22:35:45 +00:00
Chris Lattner
9b38808792
Checkin generic interval timer support
...
llvm-svn: 3992
2002-10-01 19:36:54 +00:00
Chris Lattner
39614ed129
Add an optimization to support the most common access pattern for the
...
library. This speeds debug builds up significantly.
llvm-svn: 3826
2002-09-19 19:22:11 +00:00
Chris Lattner
73f4e09752
Submitted by Casey Carter:
...
ISSUE: Linux doesn't have any steenking SIGEMT signal, as referred to in
lib/Support/Signals.cpp.
ACTION: Wrap the use with a #ifdef SIGEMT / #endif.
llvm-svn: 3700
2002-09-13 14:57:24 +00:00
Chris Lattner
0580054142
Remove extra #include
...
llvm-svn: 3652
2002-09-10 15:43:30 +00:00
Chris Lattner
24e420fd81
Checkin initial support for automatic memory leak detection routines
...
llvm-svn: 3618
2002-09-08 18:51:16 +00:00
Chris Lattner
fa03431b04
Minor bug fix.
...
llvm-svn: 3577
2002-09-03 23:12:40 +00:00
Chris Lattner
1d80a4fb6c
Fix bugs
...
llvm-svn: 3569
2002-09-02 20:49:27 +00:00
Chris Lattner
1d7454a065
Add printing support to ConstantRange class
...
llvm-svn: 3565
2002-09-02 00:18:22 +00:00
Chris Lattner
dde20e4a6b
Initial implementation of ConstantRange support
...
llvm-svn: 3563
2002-09-01 23:53:36 +00:00
Chris Lattner
a4b59e7f2b
Simplify writing custom parsers.
...
llvm-svn: 3256
2002-08-07 18:36:37 +00:00
Chris Lattner
86b1459fdb
Fix lli with no arguments
...
llvm-svn: 3226
2002-08-02 21:51:29 +00:00
Chris Lattner
e6e1bc4719
Fix bug that was causing problems for lli
...
llvm-svn: 3176
2002-07-31 16:29:43 +00:00
Chris Lattner
abbfb07573
* Fix assertion failure caused by command line argument getting removed after
...
the map was freed.
* Cleanup code a bit
llvm-svn: 3121
2002-07-29 20:58:42 +00:00