github.com/goccy/go-jit@v0.0.0-20200514131505-ff78d45cf6af/internal/ccall/include/jit/jit-dump.h (about) 1 /* 2 * jit-dump.h - Functions for dumping JIT structures, for debugging. 3 * 4 * Copyright (C) 2004 Southern Storm Software, Pty Ltd. 5 * 6 * The libjit library is free software: you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public License 8 * as published by the Free Software Foundation, either version 2.1 of 9 * the License, or (at your option) any later version. 10 * 11 * The libjit library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with the libjit library. If not, see 18 * <http://www.gnu.org/licenses/>. 19 */ 20 21 #ifndef _JIT_DUMP_H 22 #define _JIT_DUMP_H 23 24 #include <stdio.h> 25 #include <jit/jit-common.h> 26 27 #ifdef __cplusplus 28 extern "C" { 29 #endif 30 31 void jit_dump_type(FILE *stream, jit_type_t type) JIT_NOTHROW; 32 void jit_dump_value 33 (FILE *stream, jit_function_t func, 34 jit_value_t value, const char *prefix) JIT_NOTHROW; 35 void jit_dump_insn 36 (FILE *stream, jit_function_t func, jit_insn_t insn) JIT_NOTHROW; 37 void jit_dump_function 38 (FILE *stream, jit_function_t func, const char *name) JIT_NOTHROW; 39 40 #ifdef __cplusplus 41 }; 42 #endif 43 44 #endif /* _JIT_DUMP_H */