/* -*- c -*- */
/*
- Project: libFIRM
- File name: ir/ana/pto_util.c
- 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.
-*/
-
+ * 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 Utilitites for PTO
+ * @author Florian
+ * @date Sat Nov 13 19:35:27 CET 2004
+ * @version $Id$
+ */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
}
/* Get the entity of a ptr */
-entity *get_ptr_ent (ir_node *ptr)
+ir_entity *get_ptr_ent (ir_node *ptr)
{
- entity *ent = NULL;
- const opcode ptr_op = get_irn_opcode (ptr);
+ ir_entity *ent = NULL;
+ const ir_opcode ptr_op = get_irn_opcode (ptr);
switch (ptr_op) {
case (iro_Cast): {
ent = get_ptr_ent (get_Cast_op (ptr));
/* Check whether the load of the given ptr is a dummy */
int is_dummy_load_ptr (ir_node *ptr)
{
- const opcode ptr_op = get_irn_opcode (ptr);
+ const ir_opcode ptr_op = get_irn_opcode (ptr);
switch (ptr_op) {
case (iro_Cast): {
\f
/*
$Log$
+ Revision 1.19 2007/01/16 15:45:42 beck
+ renamed type opcode to ir_opcode
+
+ Revision 1.18 2006/12/13 19:46:47 beck
+ rename type entity into ir_entity
+
Revision 1.17 2006/06/08 10:49:07 beck
renamed type to ir_type