cgasm.h 364 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef CGASM_H
  2. #define CGASM_H
  3. #include "cgcode.h"
  4. #include "cgintset.h"
  5. struct CGAsm{
  6. CGAsm *succ,*pred;
  7. CGStm *stm;
  8. char *assem;
  9. CGIntSet use,def;
  10. CGAsm( CGStm *t,const char *s );
  11. void genUseDef();
  12. };
  13. struct CGAsmSeq{
  14. CGAsm *begin,*end;
  15. CGAsmSeq();
  16. void clear();
  17. CGAsm* erase( CGAsm *as );
  18. CGAsm* insert( CGAsm *as,CGAsm *succ );
  19. };
  20. #endif