Commit Graph

276 Commits

Author SHA1 Message Date
Brian Gaeke 2795a34a92 Fix typo in comment.
llvm-svn: 15318
2004-07-29 04:22:30 +00:00
Chris Lattner 461c1f9857 Add back() and pop_back() methods to SetVector
Move clear to the end of the class
Add assertions

llvm-svn: 15203
2004-07-25 11:07:02 +00:00
Chris Lattner f5da5de94a Add support for killing the program if it executes for too long.
llvm-svn: 15158
2004-07-24 07:41:31 +00:00
Brian Gaeke 025daeeee6 Include <iostream> here, because most people using DEBUG() want to use std::cerr too.
This means that users of this file do not also need to include <iostream>.

llvm-svn: 15088
2004-07-21 20:50:22 +00:00
Alkis Evlogimenos 29d020ab60 Add greater_ptr functor.
llvm-svn: 15070
2004-07-21 08:38:06 +00:00
Brian Gaeke adcf66fb8f Add prototypes for platform-independent wrappers for isinf().
Patch contributed by Bill Wendling.

llvm-svn: 15055
2004-07-21 03:15:14 +00:00
Misha Brukman 3475be9a62 Use C++-style <cstdio> instead of C-style <stdio.h>
llvm-svn: 15042
2004-07-20 16:14:06 +00:00
Misha Brukman 9bd41d54c5 Dump the old-fashioned C-style <ctype.h> in favor of new `C++'-style <cctype>
llvm-svn: 15025
2004-07-20 02:18:25 +00:00
Misha Brukman d21ef91bc4 isupper() and tolower() are declared in <ctype.h>
llvm-svn: 15016
2004-07-20 00:52:16 +00:00
John Criswell b92c7c2270 Added support for stdint.h. It is now automatically included by
DataTypes.h.  So far, it doesn't seem to break Linux, Solaris, or MacOS X.
This should automatically include it for those people who need it.

llvm-svn: 15006
2004-07-19 16:12:29 +00:00
Chris Lattner b50070175d Add a new macro to be used for the end of enum lists.
llvm-svn: 14862
2004-07-16 00:01:05 +00:00
Chris Lattner 9b1f3dc990 Give SetVector range support
llvm-svn: 14855
2004-07-15 08:18:31 +00:00
Chris Lattner e8439dced3 Fix warning compiling with VC++
llvm-svn: 14772
2004-07-12 20:25:04 +00:00
Chris Lattner b84e7c523a Provide better support for pointer-valued command line arguments
llvm-svn: 14746
2004-07-11 03:18:30 +00:00
Chris Lattner 92f4e1e0aa Add a new header
llvm-svn: 14737
2004-07-11 01:03:57 +00:00
Reid Spencer a039955283 Get rid of some cruft in the insert method.
llvm-svn: 14704
2004-07-08 21:50:33 +00:00
Reid Spencer 313aeb2b73 First version of a vector with uniqueness constraints (or a set with
deterministic, insertion-order iteration).

llvm-svn: 14702
2004-07-08 19:36:21 +00:00
Alkis Evlogimenos ef72a7e963 Add more operators.
llvm-svn: 14589
2004-07-04 01:30:54 +00:00
Chris Lattner 8e55b75913 Get rid of Annotable's vtable. If anyone deletes an object through an Annotable*,
they get what they deserve.

This reduces the size of Instruction & Function by 4 bytes each.

llvm-svn: 14433
2004-06-27 18:36:39 +00:00
Chris Lattner 6b9598db89 Unbreak the build. tsk tsk
llvm-svn: 14390
2004-06-25 00:18:02 +00:00
Misha Brukman 3bac9e4430 Add a LowercaseString() utility function, courtesy of brg.
llvm-svn: 14383
2004-06-24 23:38:52 +00:00
Brian Gaeke a9a9696767 Provide prototypes for IsNAN() wrapper.
llvm-svn: 14339
2004-06-23 00:25:24 +00:00
Chris Lattner 603b1ca393 Add some constants for VC
llvm-svn: 14028
2004-06-04 20:58:34 +00:00
Chris Lattner 214e58ded5 Fix a *really* dumb warning on VC
llvm-svn: 14025
2004-06-04 20:47:19 +00:00
Chris Lattner 875779a87a GCC doesn't like prefix form of cast with two identifiers I guess.
llvm-svn: 14021
2004-06-04 20:21:53 +00:00
Chris Lattner 505b2c6b77 Silence a warning
llvm-svn: 14019
2004-06-04 20:10:17 +00:00
Chris Lattner a36804a2ff Add ssize_t for VC++
llvm-svn: 14018
2004-06-04 20:06:33 +00:00
Chris Lattner 72e76982f7 Add more needed typedefs
llvm-svn: 14014
2004-06-04 19:11:04 +00:00
Chris Lattner b80110f667 Add explicit casts to silence warnings. There is no need to use snprintf here.
llvm-svn: 14013
2004-06-04 19:10:30 +00:00
Chris Lattner 5034a983ff Make this work with VC++
llvm-svn: 14012
2004-06-04 19:01:49 +00:00
Chris Lattner e0c83d2566 The prototype for ParseCommandLineOptions changed at some point, but this
was never updated.  I guess GCC just ignores the prototype

llvm-svn: 13995
2004-06-03 22:07:26 +00:00
Chris Lattner a24b5d0286 Only use the non-standards-compliant std::distance on the compiler that is
buggy, not for all compilers that are not GCC 3

llvm-svn: 13990
2004-06-03 18:48:59 +00:00
Chris Lattner 5bcd2323ff Add a new CopyFile function
llvm-svn: 13944
2004-06-02 00:51:20 +00:00
Alkis Evlogimenos 34f6bcc8d2 Add comparator useful for natural comparisons on collections with
pointers to objects.

llvm-svn: 13909
2004-05-30 07:45:09 +00:00
Chris Lattner 5374edb8ef Add a new function for the JIT
llvm-svn: 13869
2004-05-28 00:58:48 +00:00
Chris Lattner 0e713bc208 Add a pair of functions to hide system specific details of mapping a file in for reading.
llvm-svn: 13863
2004-05-28 00:23:48 +00:00
Chris Lattner 0c4fa93d25 Beta-test moving a header from include/Support into the llvm hierarchy:
it seems to work :)

llvm-svn: 13814
2004-05-27 05:42:33 +00:00
Vikram S. Adve 189d626ad6 Remember the set of leaders. Also compute on demand and cache the equiv
class for each leader.   Finally, rename Elem2ECLeaderMap to Elem2LeaderMap
(most of the changed lines are only due to the latter).

llvm-svn: 13651
2004-05-23 08:05:14 +00:00
Chris Lattner c6fdf8ddb3 Add the enum corresponding to the source change I made earlier
llvm-svn: 13395
2004-05-07 02:27:32 +00:00
Brian Gaeke e330adf842 Move the stuff that fixes the size, orientation & fonts of graphs to
the debugging functions that call "dot". These fixed settings have
various problems: for example, the fixed size that is set in the graph
traits classes is not appropriate for turning the dot file into a PNG,
and if TrueType font rendering is being used, the 'Courier' TrueType font
may not be installed. It seems easy enough to specify these things on the
command line, anyhow.

llvm-svn: 13366
2004-05-05 06:10:06 +00:00
Alkis Evlogimenos 07f7574ba3 Declare iterator as public since it is defined as such (gcc-3.4 fix)
llvm-svn: 13090
2004-04-21 16:10:40 +00:00
Brian Gaeke ec240edcc8 Switch to including <iostream> for compatibility with gcc-3.0.x (Debian).
llvm-svn: 12990
2004-04-16 16:28:33 +00:00
Chris Lattner d4f122044a Ignore configure produced files
llvm-svn: 12627
2004-04-02 20:34:30 +00:00
Chris Lattner 3af1fffd3c Add new function
llvm-svn: 12601
2004-04-02 05:04:12 +00:00
Brian Gaeke d470a0f042 Update comment at head of file. Also fix C 'typedef struct' nonsense I
inadvertently left in here.

llvm-svn: 11988
2004-02-29 06:33:28 +00:00
Brian Gaeke e65125dcdf Add more architectures, and ELF64 stuff.
llvm-svn: 11985
2004-02-29 06:30:25 +00:00
Brian Gaeke c0f3741a16 Fix my sloppiness
llvm-svn: 11968
2004-02-28 22:06:03 +00:00
Brian Gaeke 18577345aa ELF constants and data structures.
llvm-svn: 11945
2004-02-28 06:26:20 +00:00
Chris Lattner 120035898b Make sure that at least one virtual method is defined in a .cpp file to avoid
having the compiler emit RTTI and vtables to EVERY translation unit.

llvm-svn: 11871
2004-02-26 07:24:18 +00:00
Chris Lattner 5e39cf9fbd Fix a bug in the densemap that was killing the local allocator, and probably
other clients.  The problem is that the nullVal member was left to the default
constructor to initialize, which for int's does nothing (ie, leaves it unspecified).

To get a zero value, we must use T().  It's C++ wonderful? :)

llvm-svn: 11867
2004-02-26 05:00:15 +00:00