[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 312/437: Use jit_code_last_code as symbolic name of last
From: |
Andy Wingo |
Subject: |
[Guile-commits] 312/437: Use jit_code_last_code as symbolic name of last enum |
Date: |
Mon, 2 Jul 2018 05:14:43 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit dbb1bb24099caad8e106a1b80f831b131b3d8e87
Author: pcpa <address@hidden>
Date: Tue Oct 14 17:05:02 2014 -0300
Use jit_code_last_code as symbolic name of last enum
* include/lightning.h, lib/jit_size.c, size.c: Use a
symbolic value for the last IR code.
---
ChangeLog | 5 +++++
include/lightning.h | 1 +
lib/jit_size.c | 2 +-
size.c | 6 +++---
4 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 1274690..35e26a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-13 Paulo Andrade <address@hidden>
+
+ * include/lightning.h, lib/jit_size.c, size.c: Use a
+ symbolic value for the last IR code.
+
2014-10-12 Paulo Andrade <address@hidden>
* include/lightning.h, include/lightning/jit_private.h,
diff --git a/include/lightning.h b/include/lightning.h
index 600174e..0179919 100644
--- a/include/lightning.h
+++ b/include/lightning.h
@@ -826,6 +826,7 @@ typedef enum {
#define jit_movi_d_w(u, v) jit_new_node_wd(jit_code_movi_d_w, u, v)
jit_code_x86_retval_f, jit_code_x86_retval_d,
+#define jit_code_last_code jit_code_x86_retval_d
} jit_code_t;
typedef void* (*jit_alloc_func_ptr) (size_t);
diff --git a/lib/jit_size.c b/lib/jit_size.c
index 1215c3c..b2facc5 100644
--- a/lib/jit_size.c
+++ b/lib/jit_size.c
@@ -26,7 +26,7 @@
/*
* Initialization
*/
-static jit_int16_t _szs[jit_code_x86_retval_d + 1] = {
+static jit_int16_t _szs[jit_code_last_code + 1] = {
#if GET_JIT_SIZE
# define JIT_INSTR_MAX 256
#else
diff --git a/size.c b/size.c
index 6d2ca56..437559f 100644
--- a/size.c
+++ b/size.c
@@ -21,7 +21,7 @@
#include <lightning/jit_private.h>
#include <stdio.h>
-jit_int16_t _szs[jit_code_x86_retval_d + 1];
+jit_int16_t _szs[jit_code_last_code + 1];
int
main(int argc, char *argv[])
@@ -39,7 +39,7 @@ main(int argc, char *argv[])
fclose(fp);
max = 0;
- for (offset = 0; offset <= jit_code_x86_retval_d; offset++)
+ for (offset = 0; offset <= jit_code_last_code; offset++)
if (max < _szs[offset])
max = _szs[offset];
@@ -68,7 +68,7 @@ main(int argc, char *argv[])
fprintf(fp, "#if defined(__powerpc__)\n");
#endif
fprintf(fp, "#define JIT_INSTR_MAX %d\n", max);
- for (offset = 0; offset <= jit_code_x86_retval_d; offset++)
+ for (offset = 0; offset <= jit_code_last_code; offset++)
fprintf(fp, " %d,\n", _szs[offset]);
#if defined(__arm__)
fprintf(fp, "#endif /* __ARM_PCS_VFP */\n");
- [Guile-commits] 322/437: Add assertion to check for register allocation leaks, (continued)
- [Guile-commits] 322/437: Add assertion to check for register allocation leaks, Andy Wingo, 2018/07/02
- [Guile-commits] 257/437: Correct misplaced check for already visited blocks, Andy Wingo, 2018/07/02
- [Guile-commits] 301/437: GNU lightning 2.0.5 release, Andy Wingo, 2018/07/02
- [Guile-commits] 206/437: Correct jit implementation to pass several test cases., Andy Wingo, 2018/07/02
- [Guile-commits] 297/437: Do not filter -sz.c files in gitignore, Andy Wingo, 2018/07/02
- [Guile-commits] 255/437: IA64: Force sync of instructions in get-jit-size build mode., Andy Wingo, 2018/07/02
- [Guile-commits] 306/437: x86: Build and pass all tests under cygwin64 (Windows x64), Andy Wingo, 2018/07/02
- [Guile-commits] 352/437: Update documentation, Andy Wingo, 2018/07/02
- [Guile-commits] 357/437: Make more readable always true test, Andy Wingo, 2018/07/02
- [Guile-commits] 311/437: Implement jit_frame and jit_tramp interfaces, Andy Wingo, 2018/07/02
- [Guile-commits] 312/437: Use jit_code_last_code as symbolic name of last enum,
Andy Wingo <=
- [Guile-commits] 293/437: Do not have assertions with a long type test, Andy Wingo, 2018/07/02
- [Guile-commits] 384/437: ia64: Do not use a dangling pointer for double to integer copy, Andy Wingo, 2018/07/02
- [Guile-commits] 203/437: Make it simpler to add support for more than 64 registers., Andy Wingo, 2018/07/02
- [Guile-commits] 415/437: Build and pass all test cases on Alpha Linux, Andy Wingo, 2018/07/02
- [Guile-commits] 142/437: Make current test cases pass in armv7l., Andy Wingo, 2018/07/02
- [Guile-commits] 188/437: Add framework for sparc port., Andy Wingo, 2018/07/02
- [Guile-commits] 227/437: Cosmetic removal of unused macros., Andy Wingo, 2018/07/02
- [Guile-commits] 330/437: Resync with new patch to make functions receive a const argument, Andy Wingo, 2018/07/02
- [Guile-commits] 185/437: Store all annotation information in the read only data buffer., Andy Wingo, 2018/07/02
- [Guile-commits] 170/437: Test and correct test cases in all current backends., Andy Wingo, 2018/07/02