ra_items.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. /* 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. extern short item_type(); /* (line_p l)
  11. * Determine the type of item (constant,local
  12. * variable etc.) accessed by l.
  13. */
  14. extern bool is_item(); /* (line_p l)
  15. * See if l accesses an item
  16. */
  17. extern item_p item_of(); /* (offset off;item_p items)
  18. * Determine the descriptor of the item
  19. * accessed by l; return 0 if not found
  20. */
  21. extern fill_item(); /* (item_p item;line_p l)
  22. * Compute the type and obj/off attributes
  23. * of the item accessed by l and put them
  24. * in the given item descriptor.
  25. */
  26. extern bool same_item(); /* (item_p a,b)
  27. * See if a and b are the same items.
  28. */
  29. extern build_itemlist(); /* (proc_p p;item_p items[]; int *nrinstr_out)
  30. * Determine all items accessed by procedure p
  31. * and put them in the items lists. All items
  32. * of type T must be put in list items[T].
  33. * Also determine the number of instructions
  34. * of p.
  35. */