hlicode.h 1021 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * File: hlIcode.h
  3. * Purpose: module definitions for high-level icodes
  4. * Date: September 1993
  5. */
  6. /* High level icodes opcodes - def in file icode.h */
  7. /*typedef enum {
  8. HLI_ASSIGN,
  9. INC,
  10. DEC,
  11. HLI_JCOND,
  12. } hlIcode; */
  13. typedef struct {
  14. hlIcode opcode; /* hlIcode opcode */
  15. union { /* different operands */
  16. struct {
  17. COND_EXPR *lhs;
  18. COND_EXPR *rhs;
  19. } asgn; /* for HLI_ASSIGN hlIcode */
  20. COND_EXPR *exp; /* for HLI_JCOND, INC, DEC */
  21. } oper; /* operand */
  22. boolT valid; /* has a valid hlIcode */
  23. } HLICODE;
  24. //typedef struct {
  25. // Int numIcodes; /* No. of hlIcode reocrds written */
  26. // Int numAlloc; /* No. of hlIcode records allocated */
  27. // HLICODE *hlIcode; /* Array of high-level icodes */
  28. //} HLICODEREC;