ack/util/ego/il/il_aux.h

66 lines
1.6 KiB
C
Raw Normal View History

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".
*/
1984-11-26 14:14:55 +00:00
/* I N L I N E S U B S T I T U T I O N
*
* I L _ A U X . H
*/
#include <stdio.h> /* FILE */
int tsize(int type); /*
1984-11-26 14:14:55 +00:00
* Determine the size of a variable of
* the given type.
*/
line_p duplicate(line_p lnp); /*
1984-11-26 14:14:55 +00:00
* Make a duplicate of the given EM
* instruction. Pseudos may not be
* passed as argumnets.
*/
line_p copy_expr(line_p l1); /*
1984-11-26 14:14:55 +00:00
* copy the expression l1.
* Pseudos may not be contained in
* the list of instructions.
*/
void rem_call(call_p c); /*
1984-11-26 14:14:55 +00:00
* Remove a call from main memory.
*/
void remunit(short kind, proc_p p, line_p l);
/*
1984-11-26 14:14:55 +00:00
* Remove the CFG and EM text of
* a procedure from core.
*/
void remcc(calcnt_p head); /*
1984-11-26 14:14:55 +00:00
* Remove call-count info from core.
*/
call_p getcall(FILE *cf); /*
* Read a call from the call-file
*/
line_p get_text(FILE *lf, proc_p *p_out);
/*
* Read the EM text of one procedure.
* The procedure read is returned via
* p_out.
*/
calcnt_p getcc(FILE *ccf, proc_p p);
/*
* Read the call-count information
* of procedure p.
*/
void putcall(call_p call, FILE *cfile, short level);
/*
* Write the call
* with the given id to the given file.
* The level is the nesting level, used by
* putcall when it calls itself recurively.
* It should be 0 on outer levels.
*/
long putcc(calcnt_p head, FILE *ccf);
/*
* Write call-count information to
* file ccf.
*/