peephole.h 742 B

12345678910111213141516171819202122232425
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. #ifndef UTIL_OPT_PEEPHOLE_H
  6. #define UTIL_OPT_PEEPHOLE_H
  7. #include "types.h"
  8. #include "pattern.h"
  9. /* util/opt/peephole.c */
  10. void opcheck(byte *bp);
  11. void hashpatterns(void);
  12. int peephole(void);
  13. int optimize(void);
  14. offset oabs(offset off);
  15. line_p repline(eval_t ev, int patlen);
  16. offset rotate(offset w, offset amount);
  17. eval_t compute(expr_p pexp);
  18. bool tryrepl(line_p *lpp, register byte *bp, int patlen);
  19. bool trypat(line_p *lpp, register byte *bp, int len);
  20. int basicblock(line_p *alpp);
  21. int repl_mul(register line_p lp, line_p *b, line_p *e);
  22. #endif /* UTIL_OPT_PEEPHOLE_H */