#include "iredges.h"
#include "pset.h"
#include "obst.h"
+#include "firmnet.h"
#define SEND_BUF_SIZE 256
#define HASH_EDGE(edge) \
}
/**
- * Add new nodes, resp. new blocks in yComp and add input edges.
+ * Hook: Add new nodes, resp. new blocks in yComp and add input edges.
*/
static void firm_ycomp_debug_new_node(void *context, ir_graph *graph, ir_node *node) {
firm_ycomp_dbg_t *dbg = context;
}
/**
- * Handle set_irn_n calls.
+ * Hook: Handle set_irn_n calls.
* - set new Block OR
* - remove old edge and add new one
*/
}
/**
- * Put nodes, about to be exchanged into a set.
+ * Hook: Put nodes, about to be exchanged into a set.
*/
static void firm_ycomp_debug_exchange(void *context, ir_node *old_node, ir_node *new_node) {
firm_ycomp_dbg_t *dbg = context;
}
/**
- * Remove all old in edges, turn node into id node, add new input edge.
+ * Hook: Remove all old in edges, turn node into id node, add new input edge.
*/
static void firm_ycomp_debug_turn_into_id(void *context, ir_node *old_node) {
firm_ycomp_dbg_t *dbg = context;
}
/**
- * Just mark start/end of dead node elimination.
+ * Hook: Just mark start/end of dead node elimination.
*/
static void firm_ycomp_debug_dead_node_elim(void *context, ir_graph *irg, int start) {
firm_ycomp_dbg_t *dbg = context;
/**
* Establish connection to yComp and register all hooks.
*/
-void firm_init_ycomp_debugger(const char *host, uint16_t port) {
+void firm_init_ycomp_debugger(const char *host, unsigned port) {
static int init_once = 0;
if (init_once)
#ifndef _FIRM_YCOMP_H_
#define _FIRM_YCOMP_H_
-#include "firmnet.h"
-
#define FIRM_YCOMP_DEFAULT_HOST "localhost"
#define FIRM_YCOMP_DEFAULT_PORT 4242
* @param host Hostname where yComp is running
* @param port Port on which yComp is listening
*/
-void firm_init_ycomp_debugger(const char *host, uint16_t port);
+void firm_init_ycomp_debugger(const char *host, unsigned port);
/**
* Close connection to yComp and unregister debugger hooks.