Pristine Ack-5.5
[Ack-5.5.git] / util / ego / ra / ra_items.h
1 /* $Id: ra_items.h,v 1.4 1994/06/24 10:27:47 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 /*  R E G I S T E R   A L L O C A T I O N
7  *
8  *  R A _ I T E M S . H
9  */
10
11 extern short item_type();       /* (line_p l)
12                                  * Determine the type of item (constant,local
13                                  * variable etc.) accessed by l.
14                                  */
15 extern bool is_item();          /* (line_p l)
16                                  * See if l accesses an item
17                                  */
18 extern item_p item_of();        /* (offset off;item_p items)
19                                  * Determine the descriptor of the item
20                                  * accessed by l; return 0 if not found
21                                  */
22 extern fill_item();             /* (item_p item;line_p l)
23                                  * Compute the type and obj/off attributes
24                                  * of the item accessed by l and put them
25                                  * in the given item descriptor.
26                                  */
27 extern bool same_item();        /* (item_p a,b)
28                                  * See if a and b are the same items.
29                                  */
30 extern build_itemlist();        /* (proc_p p;item_p items[]; int *nrinstr_out)
31                                  * Determine all items accessed by procedure p
32                                  * and put them in the items lists. All items
33                                  * of type T must be put in list items[T].
34                                  * Also determine the number of instructions
35                                  * of p.
36                                  */