Subversion Repositories tendra.SVN

Rev

Rev 5 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 6
Line -... Line 1...
-
 
1
/*
-
 
2
 * Copyright (c) 2002-2005 The TenDRA Project <http://www.tendra.org/>.
-
 
3
 * All rights reserved.
-
 
4
 *
-
 
5
 * Redistribution and use in source and binary forms, with or without
-
 
6
 * modification, are permitted provided that the following conditions are met:
-
 
7
 *
-
 
8
 * 1. Redistributions of source code must retain the above copyright notice,
-
 
9
 *    this list of conditions and the following disclaimer.
-
 
10
 * 2. Redistributions in binary form must reproduce the above copyright notice,
-
 
11
 *    this list of conditions and the following disclaimer in the documentation
-
 
12
 *    and/or other materials provided with the distribution.
-
 
13
 * 3. Neither the name of The TenDRA Project nor the names of its contributors
-
 
14
 *    may be used to endorse or promote products derived from this software
-
 
15
 *    without specific, prior written permission.
-
 
16
 *
-
 
17
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
-
 
18
 * IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-
 
19
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-
 
20
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
-
 
21
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-
 
22
 * EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-
 
23
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-
 
24
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-
 
25
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-
 
26
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-
 
27
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
 
28
 *
-
 
29
 * $Id$
-
 
30
 */
1
/*
31
/*
2
    		 Crown Copyright (c) 1997
32
    		 Crown Copyright (c) 1997
3
    
33
 
4
    This TenDRA(r) Computer Program is subject to Copyright
34
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
35
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
36
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
37
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
38
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
39
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
40
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
41
    shall be deemed to be acceptance of the following conditions:-
12
    
42
 
13
        (1) Its Recipients shall ensure that this Notice is
43
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
44
        reproduced upon any copies or amended versions of it;
15
    
45
 
16
        (2) Any amended version of it shall be clearly marked to
46
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
47
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
48
        for the relevant amendment or amendments;
19
    
49
 
20
        (3) Its onward transfer from a recipient to another
50
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
51
        party shall be deemed to be that party's acceptance of
22
        these conditions;
52
        these conditions;
23
    
53
 
24
        (4) DERA gives no warranty or assurance as to its
54
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
55
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
56
        no liability whatsoever in relation to any use to which
27
        it may be put.
57
        it may be put.
28
*/
58
*/
Line 44... Line 74...
44
 * Revision 1.4  1997/12/04  19:54:27  pwe
74
 * Revision 1.4  1997/12/04  19:54:27  pwe
45
 * ANDF-DE V1.9
75
 * ANDF-DE V1.9
46
 *
76
 *
47
 * Revision 1.3  1995/10/31  12:47:46  john
77
 * Revision 1.3  1995/10/31  12:47:46  john
48
 * Introduced min macro
78
 * Introduced min macro
49
 *
79
 *
50
 * Revision 1.2  1995/05/26  13:00:08  john
80
 * Revision 1.2  1995/05/26  13:00:08  john
51
 * Reformatting
81
 * Reformatting
52
 *
82
 *
53
 * Revision 1.1.1.1  1995/03/13  10:18:50  john
83
 * Revision 1.1.1.1  1995/03/13  10:18:50  john
54
 * Entered into CVS
84
 * Entered into CVS
Line 59... Line 89...
59
 * Revision 1.1  1994/05/03  14:50:28  djch
89
 * Revision 1.1  1994/05/03  14:50:28  djch
60
 * Initial revision
90
 * Initial revision
61
 *
91
 *
62
 * Revision 1.1  93/06/24  14:58:56  14:58:56  ra (Robert Andrews)
92
 * Revision 1.1  93/06/24  14:58:56  14:58:56  ra (Robert Andrews)
63
 * Initial revision
93
 * Initial revision
64
 * 
94
 *
65
--------------------------------------------------------------------------
95
--------------------------------------------------------------------------
66
*/
96
*/
67
 
97
 
68
 
98
 
69
#ifndef NEEDSCAN_INCLUDED
99
#ifndef NEEDSCAN_INCLUDED
70
#define NEEDSCAN_INCLUDED
100
#define NEEDSCAN_INCLUDED
71
 
101
 
72
#include "exptypes.h"
102
#include "exptypes.h"
73
#include "proctypes.h"
103
#include "proctypes.h"
74
 
104
 
75
extern bool chase PROTO_S ( ( exp, exp * ) ) ;
105
extern bool chase(exp, exp *);
76
extern bool complex PROTO_S ( ( exp ) ) ;
106
extern bool complex(exp);
77
extern bool subvar_use PROTO_S ( ( exp ) ) ;
107
extern bool subvar_use(exp);
78
extern bool unchanged PROTO_S ( ( exp, exp ) ) ;
108
extern bool unchanged(exp, exp);
79
extern exp *ptr_position PROTO_S ( ( exp ) ) ;
109
extern exp *ptr_position(exp);
80
extern needs fpop PROTO_S ( ( exp *, exp ** ) ) ;
110
extern needs fpop(exp *, exp **);
81
extern needs likediv PROTO_S ( ( exp *, exp ** ) ) ;
111
extern needs likediv(exp *, exp **);
82
extern needs likeplus PROTO_S ( ( exp *, exp ** ) ) ;
112
extern needs likeplus(exp *, exp **);
83
extern needs maxneeds PROTO_S ( ( needs, needs ) ) ;
113
extern needs maxneeds(needs, needs);
84
extern needs maxtup PROTO_S ( ( exp, exp ** ) ) ;
114
extern needs maxtup(exp, exp **);
85
extern needs scan PROTO_S ( ( exp *, exp ** ) ) ;
115
extern needs scan(exp *, exp **);
86
extern needs shapeneeds PROTO_S ( ( shape ) ) ;
116
extern needs shapeneeds(shape);
87
extern void cca PROTO_S ( ( exp **, exp * ) ) ;
117
extern void cca(exp **, exp *);
88
extern void check_asm_seq PROTO_S ( ( exp, int ) ) ;
118
extern void check_asm_seq(exp, int);
89
 
119
 
90
extern int maxfix, maxfloat ;
120
extern int maxfix, maxfloat;
91
#define max(X,Y) (X>Y)?(X):(Y)
121
#define max(X,Y)(X>Y)?(X):(Y)
92
#define min(X,Y) (X<Y)?(X):(Y)
122
#define min(X,Y)(X<Y)?(X):(Y)
93
#endif /* NEEDSCAN_INCLUDED */
123
#endif /* NEEDSCAN_INCLUDED */