summaryrefslogtreecommitdiff
path: root/gcc/bitmap.h
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-02 09:56:12 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-02 09:56:12 +0000
commit215768315efa12277535db11b94e39cdea0d981a (patch)
tree01db73d0a68c2e2de0213a73d4f7c8d2b5d8ce66 /gcc/bitmap.h
parent54a7017338e5eff45cd4e4e8927f8398def98fa8 (diff)
downloadgcc-215768315efa12277535db11b94e39cdea0d981a.tar.gz
* bitmap.h (bitmap_equal_p): Return bool.
(bitmap_intersect_p, bitmap_intersect_compl_p): Declare. * bitmap.c (bitmap_equal_p): Return bool. Compare directly. (bitmap_intersect_p, bitmap_intersect_compl_p): New. * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and bitmap_intersect_compl_p. * ifcvt (dead_or_predicable): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89981 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r--gcc/bitmap.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h
index 67eb9d2ef47..767fafa3b98 100644
--- a/gcc/bitmap.h
+++ b/gcc/bitmap.h
@@ -85,8 +85,16 @@ extern void bitmap_clear (bitmap);
extern void bitmap_copy (bitmap, bitmap);
/* True if two bitmaps are identical. */
-extern int bitmap_equal_p (bitmap, bitmap);
+extern bool bitmap_equal_p (bitmap, bitmap);
+/* True if the bitmaps intersect (their AND is non-empty). */
+extern bool bitmap_intersect_p (bitmap, bitmap);
+
+/* True if the complement of the second intersects the first (their
+ AND_COMPL is non-empty). */
+extern bool bitmap_intersect_compl_p (bitmap, bitmap);
+
+/* True if MAP is an empty bitmap. */
#define bitmap_empty_p(MAP) (!(MAP)->first)
/* Perform an operation on two bitmaps, yielding a third. */