+/*
+ * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
+ */
+
/**
- * A lightweight wrapper around pset to store IR nodes.
+ * @file
+ * @brief A lightweight wrapper around pset to store IR nodes.
+ * @author Michael Beck
+ * @version $Id$
+ *
* In some algorithms we want a more deterministic behavior
* which the pset_ptr did not guarantee due to it's hash function
*/
-#ifndef _BENODESETS_H
-#define _BENODESETS_H
+#ifndef FIRM_BE_BENODESETS_H
+#define FIRM_BE_BENODESETS_H
-#include "firm_types.h"
+#include "irnode.h"
#include "pset.h"
typedef struct pset nodeset;
return new_pset(pset_default_ptr_cmp, slots);
}
+/*
+ * Define some convenience macros.
+ */
+#define new_nodeset_default() new_nodeset(64)
+
/**
* Deletes a nodeset.
*
*/
#define foreach_nodeset(nset, irn) for (irn = nodeset_first(nset); irn; irn = nodeset_next(nset))
-#endif /* _BENODESETS_H */
+#endif /* FIRM_BE_BENODESETS_H */