becopyheur4: Clean up co_mst_irn_init().
[libfirm] / ir / be / bera.h
1 /*
2  * This file is part of libFirm.
3  * Copyright (C) 2012 University of Karlsruhe.
4  */
5
6 /**
7  * @file
8  * @brief       Base routines for register allocation.
9  * @author      Sebastian Hack
10  * @date        13.01.2005
11  */
12 #ifndef FIRM_BE_BERA_H
13 #define FIRM_BE_BERA_H
14
15 #include "firm_types.h"
16
17 typedef struct be_ra_t {
18         void (*allocate)(ir_graph *irg);   /**< allocate registers on a graph */
19 } be_ra_t;
20
21 void be_register_allocator(const char *name, be_ra_t *allocator);
22
23 /**
24  * Do register allocation with currently selected register allocator
25  */
26 void be_allocate_registers(ir_graph *irg);
27
28 #endif