ud_const.h 970 B

1234567891011121314151617181920212223242526272829
  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. /* C O N S T A N T P R O P A G A T I O N */
  7. line_p unique_def(line_p use, bblock_p b, short *defnr_out);
  8. /* See if there is a unique explicit definition
  9. * of the variable used by 'use' that
  10. * reaches 'use'.
  11. */
  12. bool value_known(line_p def, offset *val_out);
  13. /* See if the value stored by definition 'def'
  14. * is known statically (i.e. is a constant).
  15. */
  16. void fold_const(line_p l, bblock_p b, offset val);
  17. /* Perform the substitutions required for
  18. * constant folding.
  19. */
  20. bool is_use(line_p l);
  21. /* See if 'l' is a use of a variable.
  22. */
  23. bool affected(line_p use, short v, line_p l);
  24. /* See if the variable referenced by 'use' may
  25. * be changed by instruction l, which is
  26. * either a cal, cai or an indirect assignment.
  27. */