axe_debug.h 848 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Andrea Di Biagio
  3. * Politecnico di Milano, 2007
  4. *
  5. * axe_debug.h
  6. * Formal Languages & Compilers Machine, 2007/2008
  7. *
  8. */
  9. #ifndef _AXE_DEBUG_H
  10. #define _AXE_DEBUG_H
  11. #include <stdio.h>
  12. #include "axe_struct.h"
  13. #include "axe_cflow_graph.h"
  14. #include "axe_reg_alloc.h"
  15. /* a debug routine used to print on a specific output file the string
  16. * representation of an instruction */
  17. extern void debug_printInstruction(t_axe_instruction *instr, FILE *fout);
  18. /* print debug informations about the control flow graph */
  19. extern void printGraphInfos(t_cflow_Graph *graph, FILE *fout, int verbose);
  20. /* print debug informations about register allocation infos */
  21. extern void printRegAllocInfos(t_reg_allocator *RA, FILE *fout);
  22. /* returns a string that represent the codedType given as input */
  23. extern char * dataTypeToString(int codedType);
  24. #endif