summaryrefslogtreecommitdiff
path: root/gcc/bitmap.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-21 01:53:11 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2006-08-21 01:53:11 +0000
commit844ea20e966eba79715bbd1c007b474262a57222 (patch)
treea77296eaee0dcde8be19fcb23b3aaf14b92825ff /gcc/bitmap.h
parent8df22c5c10b38f208d36041f2918ac6a535d7fe2 (diff)
downloadgcc-844ea20e966eba79715bbd1c007b474262a57222.tar.gz
* tree-ssa-alias.c (eq_ptr_info, ptr_info_hash): New function.
(create_name_tags): Instead of quadratic checking use hashtable. * bitmap.h: Include hashtab.h. (bitmap_hash): Declare. * bitmap.c (bitmap_hash): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116285 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r--gcc/bitmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h
index d11fa46243b..3da58c5ba2b 100644
--- a/gcc/bitmap.h
+++ b/gcc/bitmap.h
@@ -21,6 +21,7 @@ Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
#ifndef GCC_BITMAP_H
#define GCC_BITMAP_H
+#include "hashtab.h"
/* Fundamental storage type for bitmap. */
@@ -164,6 +165,9 @@ extern void bitmap_obstack_free (bitmap);
#define bitmap_zero(a) bitmap_clear (a)
extern unsigned bitmap_first_set_bit (bitmap);
+/* Compute bitmap hash (for purposes of hashing etc.) */
+extern hashval_t bitmap_hash(bitmap);
+
/* Allocate a bitmap from a bit obstack. */
#define BITMAP_ALLOC(OBSTACK) bitmap_obstack_alloc (OBSTACK)