60bb59a2e9fe80e89c5ce5670dba1d186ec22b40
[libfirm] / ir / common / firm_common_t.h
1 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
2 * All rights reserved.
3 *
4 * Authors: Martin Trapp, Christian Schaefer &
5 *          Goetz Lindenmaier
6 *
7 * firm_common_t.h: preprocessor flags
8 */
9
10 /* $Id$ */
11
12 # ifndef _COMMON_T_H_
13 # define _COMMON_T_H_
14
15 #include "firm_common.h"
16
17 /** Global flags.  Set these by autoconf?? **/
18
19 /* When set Phi node construction uses the values valid when the fragile
20    operation is executed.  Else it uses the values valid at the end of the
21    block with the fragile operation. */
22 #define PRECISE_EXC_CONTEXT 1
23
24 /* There are two implementations of the Phi node construction.  The first
25    is faster, but does not work for blocks with more than 2 predecessors.
26    The second works always but is slower and causes more unnecessary Phi
27    nodes.
28    Select the implementations by the following preprocessor flag: */
29 #define USE_FAST_PHI_CONSTRUCTION 0
30
31 /* Further there are two versions of the fast Phi node construction.
32    If the following flag is set, new_r_Phi_in uses an explicit stack for
33    allocating and deallocating Phi nodes.  Else it uses the obstack
34    as a stack! */
35 #define USE_EXPLICIT_PHI_IN_STACK 0
36
37 /*
38  * If this is defined debuging aids are created, e.g. a field in
39  * ir_node uniquely numbering the nodes.
40  * #define DEBUG_libfirm 1
41  * This is now set by the configure script as an option.
42  */
43 #ifdef HAVE_CONFIG_H
44 # include <config.h>
45 #endif
46
47 /* If this and DEBUG_libfirm are defined irdump uses the nodeid numbers as
48    labels for the vcg nodes.  This makes the vcg graph better readable.
49    Sometimes it's useful to see the pointer values, though. */
50 #define NODEID_AS_LABEL 1
51
52 # endif /*_COMMON_T_H_ */