This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r192969 - in /trunk/gcc: ChangeLog alias.c bitm...


Author: crowl
Date: Tue Oct 30 00:02:55 2012
New Revision: 192969

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192969
Log:
This patch implements the unification of the *bitmap interfaces as discussed.
Essentially, we rename ebitmap and sbitmap functions to use the same names
as the bitmap functions.  This rename works because we can now overload
on the bitmap type.  Some macros now become inline functions to enable
that overloading.

The sbitmap non-bool returning bitwise operations have been merged with
the bool versions.  Sometimes this merge involved modifying the non-bool
version to compute the bool value, and sometimes modifying bool version to
add additional work from the non-bool version.  The redundant routines have
been removed.

The allocation functions have not been renamed, because we often do not
have an argument on which to overload.  The cardinality functions have not
been renamed, because they have different parameters, and are thus not
interchangable.  The iteration functions have not been renamed, because
they are functionally different.

Tested on x86_64, contrib/config-list.mk testing passed.


Index: gcc/ChangeLog

2012-10-29  Lawrence Crowl  <crowl@google.com>

	* sbitmap.h (sbitmap_copy): Rename bitmap_copy.
	(sbitmap_copy_n): Rename bitmap_copy_n.
	(sbitmap_equal): Rename bitmap_equal_p.
	(sbitmap_empty_p): Rename bitmap_empty_p.
	(sbitmap_range_empty_p): Rename bitmap_range_empty_p.
	(sbitmap_zero): Rename bitmap_clear.
	(sbitmap_ones): Rename bitmap_ones.
	(sbitmap_vector_zero): Rename bitmap_vector_clear.
	(sbitmap_vector_ones): Rename bitmap_vector_ones.
	(sbitmap_not): Rename bitmap_not.
	(sbitmap_a_and_b_cg): Commented out.
	(sbitmap_a_and_b): Rename bitmap_and.  Add bool return.
	(sbitmap_difference): Rename bitmap_and_compl.
	(sbitmap_a_or_b_cg): Commented out.
	(sbitmap_a_or_b): Rename bitmap_xor.  Add bool return.
	(sbitmap_a_xor_b_cg): Commented out.
	(sbitmap_a_xor_b): Rename bitmap_xor.  Add bool return.
	(sbitmap_a_and_b_or_c_cg): Rename bitmap_and_or.
	(sbitmap_a_and_b_or_c): Commented out.
	(sbitmap_a_or_b_and_c_cg): Rename bitmap_or_and.
	(sbitmap_a_or_b_and_c): Commented out.
	(sbitmap_union_of_diff_cg): Rename bitmap_ior_and_compl.
	(sbitmap_union_of_diff): Commented out.
	(dump_sbitmap): Rename dump_bitmap.
	(dump_sbitmap_file): Rename dump_bitmap_file.
	(debug_sbitmap): Rename debug_bitmap.
	(dump_sbitmap_vector): Rename dump_bitmap_vector.
	(sbitmap_first_set_bit): Rename bitmap_first_set_bit.
	(sbitmap_last_set_bit): Rename bitmap_last_set_bit.
	(sbitmap_a_subset_b_p): Rename bitmap_subset_p.
	(sbitmap_any_common_bits): Rename bitmap_intersect_p.
	(#define sbitmap_free): Reimplement as inline function.
	(#define sbitmap_vector_free): Reimplement as inline function.
	* bitmap.h (#define bitmap_zero): Remove as redundant.
	(#define bitmap_empty_p): Reimplement as inline function.
	(#define dump_bitmap): Reimplement as inline function.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/alias.c
    trunk/gcc/bitmap.h
    trunk/gcc/bt-load.c
    trunk/gcc/calls.c
    trunk/gcc/cfganal.c
    trunk/gcc/cfgbuild.c
    trunk/gcc/cfgexpand.c
    trunk/gcc/cfgloop.c
    trunk/gcc/cfgloopmanip.c
    trunk/gcc/cfgrtl.c
    trunk/gcc/config/epiphany/resolve-sw-modes.c
    trunk/gcc/config/i386/i386.c
    trunk/gcc/config/mips/mips.c
    trunk/gcc/config/spu/spu.c
    trunk/gcc/cprop.c
    trunk/gcc/cse.c
    trunk/gcc/dce.c
    trunk/gcc/ddg.c
    trunk/gcc/df-core.c
    trunk/gcc/domwalk.c
    trunk/gcc/dse.c
    trunk/gcc/ebitmap.c
    trunk/gcc/ebitmap.h
    trunk/gcc/except.c
    trunk/gcc/function.c
    trunk/gcc/gcse.c
    trunk/gcc/graphite-sese-to-poly.c
    trunk/gcc/ira-lives.c
    trunk/gcc/ira.c
    trunk/gcc/lcm.c
    trunk/gcc/loop-unroll.c
    trunk/gcc/lower-subreg.c
    trunk/gcc/lra-lives.c
    trunk/gcc/lra.c
    trunk/gcc/mode-switching.c
    trunk/gcc/modulo-sched.c
    trunk/gcc/recog.c
    trunk/gcc/regcprop.c
    trunk/gcc/reload1.c
    trunk/gcc/sbitmap.c
    trunk/gcc/sbitmap.h
    trunk/gcc/sched-rgn.c
    trunk/gcc/sel-sched-ir.c
    trunk/gcc/sel-sched.c
    trunk/gcc/store-motion.c
    trunk/gcc/testsuite/gcc.dg/sms-4.c
    trunk/gcc/tracer.c
    trunk/gcc/tree-eh.c
    trunk/gcc/tree-into-ssa.c
    trunk/gcc/tree-outof-ssa.c
    trunk/gcc/tree-ssa-dce.c
    trunk/gcc/tree-ssa-dom.c
    trunk/gcc/tree-ssa-live.c
    trunk/gcc/tree-ssa-live.h
    trunk/gcc/tree-ssa-loop-im.c
    trunk/gcc/tree-ssa-loop-ivcanon.c
    trunk/gcc/tree-ssa-loop-ivopts.c
    trunk/gcc/tree-ssa-loop-manip.c
    trunk/gcc/tree-ssa-phiopt.c
    trunk/gcc/tree-ssa-pre.c
    trunk/gcc/tree-ssa-propagate.c
    trunk/gcc/tree-ssa-reassoc.c
    trunk/gcc/tree-ssa-structalias.c
    trunk/gcc/tree-stdarg.c
    trunk/gcc/tree-vect-slp.c
    trunk/gcc/tree-vrp.c
    trunk/gcc/var-tracking.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]