Pristine Ack-5.5
[Ack-5.5.git] / util / ego / ud / ud_const.h
1 /* $Id: ud_const.h,v 1.4 1994/06/24 10:33:23 ceriel Exp $ */
2 /*
3  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4  * See the copyright notice in the ACK home directory, in the file "Copyright".
5  */
6
7 /* C O N S T A N T   P R O P A G A T I O N */
8
9 extern line_p unique_def();     /* ( line_p use; bblock_p b; short *defnr_out;)
10                                  * See if there is a unique explicit definition
11                                  * of the variable used by 'use' that
12                                  * reaches 'use'.
13                                  */
14 extern bool value_known();      /* (line_p def; offset *val_out)
15                                  * See if the value stored by definition 'def'
16                                  * is known statically (i.e. is a constant).
17                                  */
18 extern fold_const();            /* (line_p l; bblock_p b; offset val)
19                                  * Perform the substitutions required for
20                                  * constant folding.
21                                  */
22 extern bool is_use();           /* (line_p l)
23                                  * See if 'l' is a use of a variable.
24                                  */
25 extern bool affected();         /* (line_p use,l; short  v)
26                                  * See if the variable referenced by 'use' may 
27                                  * be changed by instruction l, which is 
28                                  * either a cal, cai or an indirect assignment.
29                                  */