jit_dump.h 948 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright (C) 2021 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _JIT_DUMP_H_
  6. #define _JIT_DUMP_H_
  7. #include "jit_compiler.h"
  8. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. /**
  12. * Dump a register.
  13. *
  14. * @param cc compilation context of the register
  15. * @param reg register to be dumped
  16. */
  17. void
  18. jit_dump_reg(JitCompContext *cc, JitReg reg);
  19. /**
  20. * Dump an instruction.
  21. *
  22. * @param cc compilation context of the instruction
  23. * @param insn instruction to be dumped
  24. */
  25. void
  26. jit_dump_insn(JitCompContext *cc, JitInsn *insn);
  27. /**
  28. * Dump a block.
  29. *
  30. * @param cc compilation context of the block
  31. * @param block block to be dumped
  32. */
  33. void
  34. jit_dump_block(JitCompContext *cc, JitBlock *block);
  35. /**
  36. * Dump a compilation context.
  37. *
  38. * @param cc compilation context to be dumped
  39. */
  40. void
  41. jit_dump_cc(JitCompContext *cc);
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif /* end of _JIT_DUMP_H_ */