X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbenodesets.c;h=096fb5a98b2eca3ece5972acff0bb2abda309bc7;hb=8cb8fe7d9d69a9bd06365823d5d5f68d051f6db0;hp=fc1468a0335e3e93655564c0fe29f015ff31c5da;hpb=541e0cd09d305f5c3561c34a8a6a089b96598b18;p=libfirm diff --git a/ir/be/benodesets.c b/ir/be/benodesets.c index fc1468a03..096fb5a98 100644 --- a/ir/be/benodesets.c +++ b/ir/be/benodesets.c @@ -1,3 +1,35 @@ +/* + * 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. + */ + +/** + * @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 + */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "benodesets.h" #include "irnode_t.h" @@ -6,6 +38,6 @@ * * Use its node number */ -unsigned nodeset_hash(ir_node *n) { +unsigned nodeset_hash(const ir_node *n) { return (unsigned)get_irn_idx(n); }