X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firnodeset.h;h=b279c06343665627f3650b552955ad21ae55444c;hb=c25b0f5781313f72027722783ce6286978bdd757;hp=56a7df84933f26ebfee5f2f812331dc0384f8dea;hpb=aef4d3b28b21856e05c0bd91552b51b69ed5ac50;p=libfirm diff --git a/ir/ir/irnodeset.h b/ir/ir/irnodeset.h index 56a7df849..b279c0634 100644 --- a/ir/ir/irnodeset.h +++ b/ir/ir/irnodeset.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -30,14 +30,28 @@ #ifndef _FIRM_IRNODESET_H_ #define _FIRM_IRNODESET_H_ +#include "firm_config.h" + #include "firm_types.h" #include "xmalloc.h" +/* + * sebastian experimental: + * use ordered arrays as node sets. + * the guys here have made good experiences with that. + * Internally we use normal Firm arrays and binary + * search for locating the elements. Using arrays should + * give the sets a small footprint. + */ +#undef IR_NODESET_USE_ORDERED_SETS + #define HashSet ir_nodeset_t #define HashSetIterator ir_nodeset_iterator_t #define ValueType ir_node* #define DO_REHASH + #include "hashset.h" + #undef DO_REHASH #undef ValueType #undef HashSetIterator @@ -99,6 +113,7 @@ static INLINE void ir_nodeset_del(ir_nodeset_t *nodeset) { */ int ir_nodeset_insert(ir_nodeset_t *nodeset, ir_node *node); + /** * Removes a node from a nodeset. Does nothing if the nodeset doesn't contain * the node.