More generalization
[libfirm] / ir / be / bespill.h
1 /**
2  * Author:      Daniel Grund
3  * Date:                29.09.2005
4  * Copyright:   (c) Universitaet Karlsruhe
5  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
6  */
7
8 #ifndef BESPILL_H_
9 #define BESPILL_H_
10
11 #include "set.h"
12 #include "pset.h"
13
14 #include "be_t.h"
15 #include "irnode.h"
16
17 #include "bearch.h"
18
19 typedef struct _spill_env_t spill_env_t;
20
21 spill_env_t *be_new_spill_env(const be_main_session_env_t *session,
22                 const arch_register_class_t *cls);
23
24 void be_delete_spill_env(spill_env_t *senv);
25
26 void be_add_spill(spill_env_t *senv, ir_node *to_spill, ir_node *before);
27
28 void be_add_spill_on_edge(spill_env_t *senv, ir_node *to_spill, ir_node *bl, int pos);
29
30 void insert_spills_reloads(spill_env_t *senv, pset *mem_phis, pset *reload_set);
31
32 #endif /*BESPILL_H_*/