added is_Add(), is_Sub()
[libfirm] / ir / tr / mangle.h
1 /*
2  * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
3  *
4  * This file is part of libFirm.
5  *
6  * This file may be distributed and/or modified under the terms of the
7  * GNU General Public License version 2 as published by the Free Software
8  * Foundation and appearing in the file LICENSE.GPL included in the
9  * packaging of this file.
10  *
11  * Licensees holding valid libFirm Professional Edition licenses may use
12  * this file in accordance with the libFirm Commercial License.
13  * Agreement provided with the Software.
14  *
15  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE.
18  */
19
20 /**
21  * @file    mangle.h
22  * @brief   Methods to manipulate names.
23  * @author  Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck
24  * @version $Id$
25  */
26 #ifndef FIRM_TR_MANGLE_H
27 #define FIRM_TR_MANGLE_H
28
29 #include "ident.h"
30 #include "entity.h"
31
32 /** initializes the name mangling code */
33 void   firm_init_mangle (void);
34
35 /** Computes a definite name for this entity by concatenating
36    the name of the owner type and the name of the entity with
37    a separating "_". */
38 ident *mangle_entity (ir_entity *ent);
39
40 /** mangle underscore: Returns a new ident that represents first_scnd. */
41 ident *mangle_u (ident *first, ident* scnd);
42
43 /** mangle dot: Returns a new ident that represents first.scnd. */
44 ident *mangle_dot (ident *first, ident* scnd);
45
46 /** mangle: Returns a new ident that represents firstscnd. */
47 ident *mangle   (ident *first, ident* scnd);
48
49 /** returns a mangled name for a Win32 function using it's calling convention */
50 ident *decorate_win32_c_fkt(ir_entity *ent, ident *id);
51
52 #endif /* FIRM_TR_MANGLE_H */