PIPS
reductions-local.h
Go to the documentation of this file.
1 /*
2 
3  $Id: reductions-local.h 23065 2016-03-02 09:05:50Z coelho $
4 
5  Copyright 1989-2016 MINES ParisTech
6 
7  This file is part of PIPS.
8 
9  PIPS is free software: you can redistribute it and/or modify it
10  under the terms of the GNU General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  any later version.
13 
14  PIPS is distributed in the hope that it will be useful, but WITHOUT ANY
15  WARRANTY; without even the implied warranty of MERCHANTABILITY or
16  FITNESS FOR A PARTICULAR PURPOSE.
17 
18  See the GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with PIPS. If not, see <http://www.gnu.org/licenses/>.
22 
23 */
24 #include "reductions_private.h"
25 /* shorthands for REDUCTION:
26  */
27 #define reduction_variable(r) reference_variable(reduction_reference(r))
28 #define reduction_none_p(r) reduction_operator_none_p(reduction_op(r))
29 #define reduction_tag(r) reduction_operator_tag(reduction_op(r))
30 #define make_none_reduction(var) \
31  make_reduction(make_reference(var, NIL), \
32  make_reduction_operator(is_reduction_operator_none, UU),\
33  NIL, NIL)
34 
35 /* quick debug macros
36  */
37 #define DEBUG_REDUCTION(level, msg, red) \
38  ifdebug(level){pips_debug(level, msg); print_reduction(red);}
39 #define DEBUG_REDUCTIONS(level, msg, reds) \
40  ifdebug(level){pips_debug(level, msg); \
41  gen_map(print_reduction, reductions_list(reds));}
42 
43 /* end of it
44  */
45 
46 
47