X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana2%2Fpto_util.h;h=341642353fb15ad85126c918f3b408ec4eb99761;hb=ff244fb7355c6120cf0f15ba7911b473bb91c64b;hp=0a868cf17f22166ebde799d690f41a26f173f4e5;hpb=6aefa6ac6a2f39363fb1b09632e5965db89b44af;p=libfirm diff --git a/ir/ana2/pto_util.h b/ir/ana2/pto_util.h index 0a868cf17..341642353 100644 --- a/ir/ana2/pto_util.h +++ b/ir/ana2/pto_util.h @@ -1,35 +1,71 @@ /* -*- c -*- */ /* - * Project: libFIRM - * File name: ir/ana2/pto_util.c - * Purpose: Pto Utilities - * Author: Florian - * Modified by: - * Created: Mon 18 Oct 2004 - * CVS-ID: $Id$ - * Copyright: (c) 1999-2004 Universität Karlsruhe - * Licence: This file is protected by GPL - GNU GENERAL PUBLIC LICENSE. + Project: libFIRM + File name: ir/ana/pto_util.h + Purpose: Utilitites for PTO + Author: Florian + Modified by: + Created: Sat Nov 13 19:35:27 CET 2004 + CVS-ID: $Id$ + Copyright: (c) 1999-2004 Universität Karlsruhe + Licence: This file is protected by the GPL - GNU GENERAL PUBLIC LICENSE. +*/ + + +# ifndef _PTO_UTIL_ +# define _PTO_UTIL_ + +# include "irnode.h" +# include "entity.h" + +/* =================================================== + Global Defines: + =================================================== */ + +/* =================================================== + Global Data Types: + =================================================== */ + +/* =================================================== + Global Prototypes: + =================================================== */ +/** Get the entity of a ptr. */ +entity *get_ptr_ent (ir_node *ptr); + +/** + * Find the arguments of a graph. For a method that has n args, the + * result array has 'n+1' entries, the last of which is written NULL. + * + * @param irg The IR graph */ +ir_node **find_irg_args (ir_graph *irg); -# ifndef _PTO_UTIL_H_ -# define _PTO_UTIL_H_ +/* Check whether the load of the given ptr is a dummy */ +int is_dummy_load_ptr (ir_node*); -# include "irgraph.h" +/* =================================================== + Global Variables: + =================================================== */ -/* - Find the arguments of a graph. For a method that has n args, the - result array has 'n+1' entries, the last of which is written NULL. -*/ -ir_node **find_irg_args (ir_graph*); -# endif /* not defined _PTO_UTIL_H_ */ +# endif /* not defined _PTO_UTIL_ */ + /* $Log$ - Revision 1.1 2004/10/22 15:10:51 liekweg - moved utils to pto_util + Revision 1.7 2005/06/17 17:43:52 beck + added doxygen docu + Revision 1.6 2004/11/26 15:59:14 liekweg + recognize dummy loads - */ + Revision 1.5 2004/11/24 14:53:56 liekweg + Bugfixes + + Revision 1.4 2004/11/18 16:37:07 liekweg + rewrite + + +*/