aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.h
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2007-11-09 14:01:33 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2007-11-09 14:01:33 +0000
commit76e910c6b72b46e017d7be9a6494113ebae72f85 (patch)
treed8b32d4da8ab288343c7d289a01fb22089dced27 /gcc/bitmap.h
parentde266950570fd88e4e205bfb87bcbd7ba89b5c27 (diff)
downloadgcc-76e910c6b72b46e017d7be9a6494113ebae72f85.zip
gcc-76e910c6b72b46e017d7be9a6494113ebae72f85.tar.gz
gcc-76e910c6b72b46e017d7be9a6494113ebae72f85.tar.bz2
bitmap.h (bitmap_single_bit_set_p): Declare.
2007-11-09 Richard Guenther <rguenther@suse.de> * bitmap.h (bitmap_single_bit_set_p): Declare. * bitmap.c (bitmap_single_bit_set_p): New function. * tree-ssa-alias.c (add_may_alias_for_new_tag): Use it. (maybe_create_global_var): Use bitmap_empty_p. From-SVN: r130045
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r--gcc/bitmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h
index 66fed85..0b6ed73 100644
--- a/gcc/bitmap.h
+++ b/gcc/bitmap.h
@@ -107,6 +107,9 @@ extern bool bitmap_intersect_compl_p (const_bitmap, const_bitmap);
/* True if MAP is an empty bitmap. */
#define bitmap_empty_p(MAP) (!(MAP)->first)
+/* True if the bitmap has only a single bit set. */
+extern bool bitmap_single_bit_set_p (const_bitmap);
+
/* Count the number of bits set in the bitmap. */
extern unsigned long bitmap_count_bits (const_bitmap);