ircgopt.h 1.65 KB
Newer Older
Christian Würdig's avatar
Christian Würdig committed
1
/*
2
 * Copyright (C) 1995-2011 University of Karlsruhe.  All right reserved.
Christian Würdig's avatar
Christian Würdig committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 *
 * This file is part of libFirm.
 *
 * This file may be distributed and/or modified under the terms of the
 * GNU General Public License version 2 as published by the Free Software
 * Foundation and appearing in the file LICENSE.GPL included in the
 * packaging of this file.
 *
 * Licensees holding valid libFirm Professional Edition licenses may use
 * this file in accordance with the libFirm Commercial License.
 * Agreement provided with the Software.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE.
 */

Götz Lindenmaier's avatar
Götz Lindenmaier committed
20
/**
Matthias Braun's avatar
Matthias Braun committed
21
22
23
24
25
 * @file
 * @brief   Removal of unreachable methods.
 * @author  Hubert Schmid
 * @date    09.06.2002
 * @version $Id$
yb9976's avatar
yb9976 committed
26
 * @brief
Matthias Braun's avatar
Matthias Braun committed
27
28
 *  Removal of unreachable methods. The set of unreachable methods is computed
 *  by the callgraph.
Götz Lindenmaier's avatar
Götz Lindenmaier committed
29
 */
Matthias Braun's avatar
Matthias Braun committed
30
31
#ifndef FIRM_IR_ICGOPT_H
#define FIRM_IR_ICGOPT_H
32

Christoph Mallon's avatar
Christoph Mallon committed
33
34
#include <stddef.h>

35
#include "firm_types.h"
36
#include "begin.h"
37
38

/* Entfernt alle Methoden, die von den Methoden aus "keep_arr"
39
40
 * (bezgl. der Abschaetzung get_Call_callee) nicht erreichbar sind. Die
 * Abschaetzung der Aufrufrelation muss entsprechend an den
41
 * Call-Operationen gespeichert sein. Die "entity->link"s werden dabei
42
43
44
 * ueberschrieben.
 *
 * Frees all interprocedural loop information. */
45
FIRM_API void gc_irgs(size_t n_keep, ir_entity *keep_arr[]);
46

47
48
49
50
51
52
53
/**
 * Creates an ir_prog pass for gc_irgs().
 *
 * @param name     the name of this pass or NULL
 *
 * @return  the newly created ir_graph pass
 */
Michael Beck's avatar
Michael Beck committed
54
FIRM_API ir_prog_pass_t *gc_irgs_pass(const char *name);
55
56

#include "end.h"
57

Matthias Braun's avatar
Matthias Braun committed
58
#endif