il_aux.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* $Id$ */
  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. /* I N L I N E S U B S T I T U T I O N
  7. *
  8. * I L _ A U X . H
  9. */
  10. int tsize(int type);
  11. /* Determine the size of a variable of
  12. * the given type.
  13. */
  14. line_p duplicate(line_p lnp);
  15. /* Make a duplicate of the given EM
  16. * instruction. Pseudos may not be
  17. * passed as argumnets.
  18. */
  19. line_p copy_expr(line_p l1);
  20. /* copy the expression l1.
  21. * Pseudos may not be contained in
  22. * the list of instructions.
  23. */
  24. void rem_call(call_p c);
  25. /* Remove a call from main memory.
  26. */
  27. void remcc(calcnt_p head);
  28. /* Remove call-count info from core.
  29. */
  30. call_p getcall(FILE *cf);
  31. /* Read a call from the call-file
  32. */
  33. line_p get_text(FILE *lf, proc_p *p_out);
  34. /* Read the EM text of one procedure.
  35. * The procedure read is returned via
  36. * p_out.
  37. */
  38. calcnt_p getcc(FILE *ccf, proc_p p);
  39. /* Read the call-count information
  40. * of procedure p.
  41. */
  42. void putcall(call_p c, FILE *cfile, short level);
  43. /* Write the call
  44. * with the given id to the given file.
  45. * The level is the nesting level, used by
  46. * putcall when it calls itself recurively.
  47. * It should be 0 on outer levels.
  48. */
  49. long putcc(calcnt_p head, FILE *ccf);
  50. /* Write call-count information to
  51. * file ccf.
  52. */
  53. void remunit(short kind, proc_p p, line_p l);