Chris Lattner
2d1b7e14d2
Hrm, who knows what 'uint' is, but it seems to work sometimes? Wierd.
...
llvm-svn: 19876
2005-01-28 19:37:35 +00:00
Reid Spencer
c4abcbefb1
Changes For Bug 352
...
Move include/Config and include/Support into include/llvm/Config,
include/llvm/ADT and include/llvm/Support. From here on out, all LLVM
public header files must be under include/llvm/.
llvm-svn: 16137
2004-09-01 22:55:40 +00:00
Vikram S. Adve
4761eb23fd
1. Make table size prime -- improves hashing performance vastly.
...
2. Reduce #hashes from 2 to 1 for initial inserts.
3. Fix incorrect assertion from last checkin.
llvm-svn: 7417
2003-07-30 12:49:25 +00:00
Vikram S. Adve
fe15c01e24
Bug fix: after reallocating the hash table, we have to re-insert each value
...
instead of copying table entries!
llvm-svn: 7396
2003-07-29 20:01:01 +00:00
Chris Lattner
ac8e9ebce9
Remove unneccesary #ifdefs
...
llvm-svn: 7214
2003-07-21 19:23:31 +00:00
Chris Lattner
425abc04ab
Fix warnings
...
llvm-svn: 7213
2003-07-21 19:20:44 +00:00
Vikram S. Adve
f6d22acc22
Use uint32_t for table index and size: table will never be > 4GB.
...
Also, make Pointer type depend on architecture.
llvm-svn: 7170
2003-07-11 22:02:28 +00:00
Vikram S. Adve
a23754ed38
Pointer hash table reallocation code seems never to have been tested!
...
Unfortunately, reallocation also means that the pointer numbering will
change, so increase table size to try to avoid it.
llvm-svn: 7130
2003-07-08 18:42:44 +00:00
Joel Stanley
81aa4149c0
Prevented inclusion of (non-existent) stdint.h on Sparc.
...
llvm-svn: 6876
2003-06-24 02:46:47 +00:00
Chris Lattner
f08e569e7d
Update to match the reality that is now.
...
llvm-svn: 6362
2003-05-27 21:43:14 +00:00
Chris Lattner
284fbfcbf9
* If hashing a pointer, cast it to a 64 bit number so gcc doesn't warn
...
* Don't put extra stuff after #endif
llvm-svn: 2671
2002-05-20 21:15:30 +00:00
Vikram S. Adve
8ebcebf6f9
Runtime routines to support tracing.
...
Currently includes code to hash pointers to sequence numbers.
The hash table should be separated out into a separate file
since that is generic. The rest of this code is pretty small.
llvm-svn: 2655
2002-05-19 15:49:58 +00:00