Fully implemneted. Works fine with the two examples (including VanDrunen's original
[libfirm] / ir / opt / proc_cloning.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/clone functions./proc_cloning.h
4  * Purpose:     procedure cloning
5  * Author:      Beyhan Veliev
6  * Created:
7  * CVS-ID:      $Id$
8  * Copyright:   (c) 1998-2005 Universität Karlsruhe
9  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
10  */
11 #ifndef PROC_CLONING_H
12 #define PROC_CLONING_H
13
14 #include "firm_types.h"
15
16 /**
17  * Do the procedure cloning. Evaluate a heuristic weight for every
18  * call(..., Const, ...). If the weight is bigger than threshold,
19  * clone the entity and fix the calls.
20  *
21  * @param threshold   the threshold for cloning
22  */
23 void proc_cloning(float threshold);
24
25 #endif /* PROC_CLONING_H */