1994-06-24 11:31:16 +00:00
|
|
|
/* $Id$ */
|
1987-03-09 19:15:41 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
bool anal_params(call_p c); /*
|
1984-11-26 14:14:55 +00:00
|
|
|
* See which parameters of the call
|
|
|
|
* may be expanded in line.
|
1985-02-20 15:01:02 +00:00
|
|
|
* If the formals and actuals do not
|
|
|
|
* match, return FALSE
|
1984-11-26 14:14:55 +00:00
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
void assign_ratio(call_p c); /*
|
1984-11-26 14:14:55 +00:00
|
|
|
* Assigna ratio number to the call,
|
|
|
|
* indicating how desirable it is to
|
|
|
|
* expand the call in line.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
call_p abstract(call_p c); /*
|
1984-11-26 14:14:55 +00:00
|
|
|
* Abstract essential information from
|
|
|
|
* the call.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
void select_calls(proc_p proclist, FILE *ccf, long space);
|
|
|
|
/*
|
1984-11-26 14:14:55 +00:00
|
|
|
* Select the best calls to be expanded.
|
|
|
|
* Every procedure gets a list of
|
|
|
|
* selected calls appearing in it.
|
|
|
|
* space is the amount of space that the
|
|
|
|
* program is allowed to grow
|
|
|
|
* (expressed in number of EM instructions).
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
void cleancals(proc_p alist); /*
|
1984-11-26 14:14:55 +00:00
|
|
|
* Remove all calls that were not selected.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
void add_actuals(proc_p plist, FILE *cfile);
|
|
|
|
/*
|
1984-11-26 14:14:55 +00:00
|
|
|
* Add the actual parameters to the descriptor abstracts
|
|
|
|
* of the selected calls.
|
|
|
|
* the calfile contains the full descriptors of all
|
|
|
|
* calls.
|
|
|
|
* These two are combined to yield a file of full
|
|
|
|
* descriptors of the selected calls.
|
|
|
|
*/
|
2019-10-31 22:05:22 +00:00
|
|
|
void append_abstract(call_p a, proc_p p);
|
|
|
|
/*
|
1984-11-26 14:14:55 +00:00
|
|
|
* Put the call-descriptor abstract in the p_cals
|
|
|
|
* list of p.
|
|
|
|
*/
|