2 * This file is part of libFirm.
3 * Copyright (C) 2012 University of Karlsruhe.
8 * @brief Base routines for register allocation.
9 * @author Sebastian Hack
12 #ifndef FIRM_BE_BERA_H
13 #define FIRM_BE_BERA_H
15 #include "firm_types.h"
17 typedef struct be_ra_t {
18 void (*allocate)(ir_graph *irg); /**< allocate registers on a graph */
21 void be_register_allocator(const char *name, be_ra_t *allocator);
24 * Do register allocation with currently selected register allocator
26 void be_allocate_registers(ir_graph *irg);