*
*/
-#include <stdbool.h>
+#ifndef REGISTER_ALLOCATE_H
+#define REGISTER_ALLOCATE_H
+#include <stdbool.h>
+#include "util/bitset.h"
#ifdef __cplusplus
extern "C" {
struct ra_graph *ra_alloc_interference_graph(struct ra_regs *regs,
unsigned int count);
void ra_set_node_class(struct ra_graph *g, unsigned int n, unsigned int c);
+void ra_set_select_reg_callback(struct ra_graph *g,
+ unsigned int (*callback)(struct ra_graph *g,
+ BITSET_WORD *regs,
+ void *data),
+ void *data);
void ra_add_node_interference(struct ra_graph *g,
unsigned int n1, unsigned int n2);
/** @} */
#ifdef __cplusplus
} // extern "C"
#endif
+
+#endif /* REGISTER_ALLOCATE_H */