Commit d1a1262b authored by Matthias Braun's avatar Matthias Braun
Browse files

remove heap analysis hooks - they're not used anymore

[r22695]
parent d419b3b5
......@@ -83,18 +83,6 @@ AC_ARG_ENABLE([profile],
AC_SUBST([enable_profile_libfirm])
dnl set heap analyses support
dnl -------------------------
AC_ARG_ENABLE([heapanalysis],
[AS_HELP_STRING([--enable-heapanalysis], [Compile with heap analysis.])],
[enable_heapanalysis=$enableval], [enable_heapanalysis="no"])
if test "$enable_heapanalysis" = "yes"; then
FIRMCONFIG_DO_HEAPANALYSIS="#define DO_HEAPANALYSIS"
fi
AC_SUBST([FIRMCONFIG_DO_HEAPANALYSIS])
AC_SUBST([enable_heapanalysis])
dnl enable Firm hooks
dnl -------------
AC_ARG_ENABLE([hooks],
......
/* Define to 1 for heap analysis support */
@FIRMCONFIG_DO_HEAPANALYSIS@
/* define to 1 to enable debugging stuff. */
@FIRMCONFIG_DEBUG_libfirm@
......
......@@ -68,14 +68,6 @@
#include "eset.h"
#include "pset.h"
#if DO_HEAPANALYSIS
extern void dump_irn_chi_term(FILE *FL, ir_node *n);
extern void dump_irn_state(FILE *FL, ir_node *n);
extern int get_opt_dump_abstvals(void);
typedef unsigned long SeqNo;
extern SeqNo get_Block_seqno(ir_node *n);
#endif
/** Dump only irgs with names that start with this prefix. */
static ident *dump_file_filter_id = NULL;
......@@ -1473,10 +1465,6 @@ static void dump_node(FILE *F, ir_node *n)
if(dump_node_edge_hook)
dump_node_edge_hook(F, n);
#if DO_HEAPANALYSIS
dump_irn_chi_term(F, n);
dump_irn_state(F, n);
#endif
}
/** dump the edge to the block this node belongs to */
......@@ -1725,10 +1713,6 @@ static void dump_whole_block(FILE *F, ir_node *block) {
PRINT_NODEID(block);
fprintf(F, "\" label: \"");
dump_node_label(F, block);
#if DO_HEAPANALYSIS
if (get_opt_dump_abstvals())
fprintf(F, " seqno: %d", (int)get_Block_seqno(block));
#endif
/* colorize blocks */
if (! get_Block_matured(block))
......@@ -1759,9 +1743,6 @@ static void dump_whole_block(FILE *F, ir_node *block) {
/* Close the vcg information for the block */
fprintf(F, "}\n");
dump_const_node_local(F, block);
#if DO_HEAPANALYSIS
dump_irn_chi_term(F, block);
#endif
fprintf(F, "\n");
}
......
......@@ -492,43 +492,6 @@ void set_irn_pinned(ir_node *node, op_pin_state state) {
node->attr.except.pin_state = state;
}
#ifdef DO_HEAPANALYSIS
/* Access the abstract interpretation information of a node.
Returns NULL if no such information is available. */
struct abstval *get_irn_abst_value(ir_node *n) {
return n->av;
}
/* Set the abstract interpretation information of a node. */
void set_irn_abst_value(ir_node *n, struct abstval *os) {
n->av = os;
}
struct section *firm_get_irn_section(ir_node *n) {
return n->sec;
}
void firm_set_irn_section(ir_node *n, struct section *s) {
n->sec = s;
}
#else
/* Dummies needed for firmjni. */
struct abstval *get_irn_abst_value(ir_node *n) {
(void) n;
return NULL;
}
void set_irn_abst_value(ir_node *n, struct abstval *os) {
(void) n;
(void) os;
}
struct section *firm_get_irn_section(ir_node *n) {
(void) n;
return NULL;
}
void firm_set_irn_section(ir_node *n, struct section *s) {
(void) n;
(void) s;
}
#endif /* DO_HEAPANALYSIS */
/* Outputs a unique number for this node */
long get_irn_node_nr(const ir_node *node) {
assert(node);
......
......@@ -370,10 +370,6 @@ struct ir_node {
#endif
/* ------- For analyses -------- */
ir_loop *loop; /**< the loop the node is in. Access routines in irloop.h */
#ifdef DO_HEAPANALYSIS
struct abstval *av; /**< Heapanalysis: The abstract value of this node. */
struct section *sec; /**< Heapanalysis: The section of this node. */
#endif
struct ir_node **deps; /**< Additional dependencies induced by state. */
irn_edges_info_t edge_info; /**< Everlasting out edges. */
/* ------- Opcode depending fields -------- */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment