Commit df9f7454 authored by Götz Lindenmaier's avatar Götz Lindenmaier
Browse files

more heapanalysis support

[r3556]
parent 818b9353
......@@ -352,6 +352,26 @@ void *
return __get_irn_link(node);
}
#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;
}
#endif /* DO_HEAPANALYSIS */
/* Outputs a unique number for this node */
long
get_irn_node_nr(const ir_node *node) {
......
......@@ -214,6 +214,10 @@ 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;
struct section *sec;
#endif
/* ------- Opcode depending fields -------- */
attr attr; /**< attribute of this node. Depends on opcode.
Must be last field of struct ir_node. */
......
Markdown is supported
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