X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Firtools.h;h=2d9461158db77607950b1efb1586dc9887c4883a;hb=6c1a97fd2c011beb75d9ae7f0746dd6bd22ce064;hp=7d7348482f4f1d9d2bb5c80fd936b7bde14e8964;hpb=c9d6913e69c2f9274055b846d25a7707fa326c49;p=libfirm diff --git a/ir/common/irtools.h b/ir/common/irtools.h index 7d7348482..2d9461158 100644 --- a/ir/common/irtools.h +++ b/ir/common/irtools.h @@ -6,11 +6,11 @@ * Modified by: * Created: * CVS-ID: $Id$ - * Copyright: (c) 1999-2005 Universität Karlsruhe + * Copyright: (c) 1999-2006 Universität Karlsruhe * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ -#ifndef _IRTOOLS_H_ -#define _IRTOOLS_H_ +#ifndef _FIRM_COMMON_IRTOOLS_H_ +#define _FIRM_COMMON_IRTOOLS_H_ #include "firm_config.h" #include "firm_types.h" @@ -20,6 +20,8 @@ lc_opt_entry_t *firm_opt_get_root(void); #endif +#include "pset.h" + #undef MIN #undef MAX #define MAX(x, y) ((x) > (y) ? (x) : (y)) @@ -31,7 +33,7 @@ lc_opt_entry_t *firm_opt_get_root(void); * @param d Another number. * @return 0 if c == d, -1 if c < d, 1 if c > d. */ -#define CMP(c, d) (((c) > (d)) - ((c) < (d))) +#define QSORT_CMP(c, d) (((c) > (d)) - ((c) < (d))) /** @@ -44,6 +46,11 @@ lc_opt_entry_t *firm_opt_get_root(void); */ #define PTR_TO_INT(v) ((int)((char *)(v) - (char *)0)) +/** + * Dump a pset containing Firm objects. + */ +void firm_pset_dump(pset *set); + /** * The famous clear_link() walker-function. * Do not implement it by yourself, use this one @@ -65,13 +72,13 @@ void copy_irn_to_irg(ir_node *n, ir_graph *irg); /** * Creates an exact copy of a node. - * The copy resists on the sane graph in the same block. + * The copy resists on the same graph in the same block. * * @param n the node to copy * * @note If the copy is not changed, the next CSE operation will * replace it by the original, so beware. */ -ir_node *exact_copy(ir_node *n); +ir_node *exact_copy(const ir_node *n); -#endif /* _IRTOOLS_H_ */ +#endif /* _FIRM_COMMON_IRTOOLS_H_ */