mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-26 13:10:22 +02:00
Add string representation of IR codes to -sz.c files
* lib/jit_names.c: New file with single definition of string representation of lightning IR codes. * size.c: Modified to append the code name in a C comment after the maximum instruction size. * lib/jit_print.c: Minor change to not duplicate jit_names.c contents. * lib/jit_aarch64-sz.c, lib/jit_alpha-sz.c, lib/jit_arm-sz.c, lib/jit_hppa-sz.c, lib/jit_ia64-sz.c, lib/jit_mips-sz.c, lib/jit_ppc-sz.c, lib/jit_s390x-sz.c, lib/jit_sparc-sz.c, lib/jit_x86-sz.c: Rewritten to add string representation of IR codes in a C comment.
This commit is contained in:
parent
5c0c5bde6d
commit
624cf33d08
15 changed files with 6120 additions and 6080 deletions
3
size.c
3
size.c
|
@ -20,6 +20,7 @@
|
|||
#include <lightning.h>
|
||||
#include <lightning/jit_private.h>
|
||||
#include <stdio.h>
|
||||
#include "lib/jit_names.c"
|
||||
|
||||
jit_int16_t _szs[jit_code_last_code + 1];
|
||||
|
||||
|
@ -69,7 +70,7 @@ main(int argc, char *argv[])
|
|||
#endif
|
||||
fprintf(fp, "#define JIT_INSTR_MAX %d\n", max);
|
||||
for (offset = 0; offset <= jit_code_last_code; offset++)
|
||||
fprintf(fp, " %d,\n", _szs[offset]);
|
||||
fprintf(fp, " %d, /* %s */\n", _szs[offset], code_name[offset]);
|
||||
#if defined(__arm__)
|
||||
fprintf(fp, "#endif /* __ARM_PCS_VFP */\n");
|
||||
#elif defined(__mips__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue