/*
- * Project: libFIRM
- * File name: ir/ir/irdumptxt.c
- * Purpose: Write vcg representation of firm to file.
- * Author: Martin Trapp, Christian Schaefer
- * Modified by: Goetz Lindenmaier, Hubert Schmidt
- * Created:
- * CVS-ID: $Id$
- * Copyright: (c) 1998-2006 Universität Karlsruhe
- * Licence: This file protected by 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 Write vcg representation of firm to file.
+ * @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Hubert Schmidt
+ * @version $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
case iro_Confirm:
fprintf(F, " compare operation: %s\n", get_pnc_string(get_Confirm_cmp(n)));
break;
+ case iro_ASM:
+ fprintf(F, " assembler text: %s\n", get_ASM_text(n));
+ break;
default: ;
}
int addr_is_alloc(ir_node *acc) {
ir_node *addr = NULL;
- opcode addr_op;
+ ir_opcode addr_op;
if (is_memop(acc)) {
addr = get_memop_ptr(acc);
} else {
fprintf(F, "\n");
} else { /* no entattrs */
- fprintf(F, "%s(%3d:d) %-40s: %s", prefix,
+ fprintf(F, "%s(%3d:%d) %-40s: %s", prefix,
get_entity_offset(ent), get_entity_offset_bits_remainder(ent),
get_type_name(get_entity_type(ent)), get_entity_name(ent));
if (is_Method_type(get_entity_type(ent))) fprintf(F, "(...)");
dump_node_opcode(F, get_atomic_ent_value(ent));
} else {
fprintf(F, "%s compound values:", prefix);
- compute_compound_ent_array_indices(ent);
for (i = 0; i < get_compound_ent_n_values(ent); ++i) {
compound_graph_path *path = get_compound_ent_value_path(ent, i);
ir_entity *ent0 = get_compound_graph_path_node(path, 0);