X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbenodesets.h;h=145fb5ae94fac102e7dfe7a333852b9b242648b6;hb=a92ff34e623ded0eb85277c1f37235947855dffb;hp=c06bf21af4497f526e67d24352b6ae60944e5929;hpb=a6c86c7cfc43166bbe794a1fbb4d9a5d8d6cd820;p=libfirm diff --git a/ir/be/benodesets.h b/ir/be/benodesets.h index c06bf21af..145fb5ae9 100644 --- a/ir/be/benodesets.h +++ b/ir/be/benodesets.h @@ -14,7 +14,7 @@ typedef struct pset nodeset; /** * Calculates a hash value for a node. */ -unsigned nodeset_hash(ir_node *n); +unsigned nodeset_hash(const ir_node *n); /** * Creates a new nodeset. @@ -30,6 +30,11 @@ static INLINE nodeset *new_nodeset(int slots) return new_pset(pset_default_ptr_cmp, slots); } +/* + * Define some convenience macros. + */ +#define new_nodeset_default() new_nodeset(64) + /** * Deletes a nodeset. * @@ -136,7 +141,7 @@ static INLINE ir_node *nodeset_next(nodeset *nset) * * @param nset the nodeset */ -static inline void nodeset_break(nodeset *nset) +static INLINE void nodeset_break(nodeset *nset) { pset_break(nset); }