Skip to content

Commit

Permalink
update parallel rsp
Browse files Browse the repository at this point in the history
  • Loading branch information
loganmc10 committed Aug 20, 2022
1 parent 94abbaa commit e55c90c
Show file tree
Hide file tree
Showing 181 changed files with 1,309 additions and 18,767 deletions.
4 changes: 2 additions & 2 deletions parallel-rsp/CMakeLists.txt
Expand Up @@ -97,8 +97,8 @@ if (PARALLEL_RSP_BAKED_LIGHTNING)
target_sources(lightning PRIVATE win32/mman/sys/mman.c)
target_include_directories(lightning PRIVATE win32/mman)
endif()
target_compile_options(lightning PRIVATE -march=x86-64-v3)
target_link_options(lightning PRIVATE -march=x86-64-v3)
target_compile_options(lightning PRIVATE -march=x86-64-v3 -DHAVE_MMAP)
target_link_options(lightning PRIVATE -march=x86-64-v3 -DHAVE_MMAP)
endif()
target_link_options(${NAME_PLUGIN_M64P} PRIVATE -march=x86-64-v3)
target_link_libraries(${NAME_PLUGIN_M64P} PUBLIC lightning)
21 changes: 16 additions & 5 deletions parallel-rsp/lightning/.gitignore
@@ -1,4 +1,15 @@
/build-aux
+*

*.o
*.lo
*.la

.libs/
.deps/
*/.libs/
*/.deps/

autom4te.cache
aclocal.m4
depcomp
Expand All @@ -20,14 +31,14 @@ missing
size
stamp-h1
test-driver
check/.deps
doc/.deps
lib/.deps

m4/libtool.m4
m4/lt~obsolete.m4
m4/ltoptions.m4
m4/ltsugar.m4
m4/ltversion.m4
doc/mdate-sh
doc/texinfo.tex

lightning.pc
include/lightning.h

build-aux/
12 changes: 0 additions & 12 deletions parallel-rsp/lightning/.gitrepo

This file was deleted.

87 changes: 74 additions & 13 deletions parallel-rsp/lightning/ChangeLog
@@ -1,3 +1,64 @@
2022-08-12 Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>

Document jit_align.
* doc/body.texi: Add documentation for jit_align.

2022-05-14 Paulo Andrade <pcpa@gnu.org>

* include/lightning.h.in: Reorder jit_mov{n,z}r in instruction list.
* lib/jit_alpha.c, lib/jit_alpha-cpu.c, lib/jit_hppa.c,
lib/jit_hppa-cpu.c, lib/jit_ia64.c, lib/jit_ia64-cpu.c,
lib/jit_riscv.c, lib/jit_riscv-cpu.c, lib/jit_s390.c,
lib/jit_s390-cpu.c, lib/jit_sparc.c, lib/jit_sparc-cpu.c:
Implement fallback jit_mov{n,z}r. These are a somewhat cheap
implementation, but should be reviewed for the arches that already
have a proper conditional move.
* lib/jit_arm-sz.c, lib/jit_mips-sz.c: Add missing maximum size
estimative and reorder.
* lib/jit_aarch64-sz.c, lib/jit_x86-sz.c, lib/jit_ppc-sz.c:
Reorder entry to match definition order.
* lib/jit_aarch64-sz.c, lib/jit_alpha-sz.c, lib/jit_hppa-sz.c,
lib/jit_ia64-sz.c, lib/jit_riscv-sz.c, lib/jit_s390-sz.c,
lib/jit_sparc-sz.c: Add heuristic value, basically the sum of
the cost of a movr + beqr.
* lib/jit_names.c: Add entries for debug output of mov{n,z}r.
* lib/lightning.c: Use proper bitmask in jit_classify.

2021-04-03 Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>

* check/Makefile.am: Add test for the live instruction.
* check/live.ok: New file.
* check/live.tst: New file.
* doc/body.texi: Add documentation for the live instruction and
for jit_get_reg/jit_get_unreg. Fix menu entries.
* include/lightning.h.in (jit_get_reg, jit_unget_reg): Expose the
macros in the public header file.
* include/lightning/jit_private.h (jit_get_reg, jit_unget_reg):
Remove the macros from the private header file.

2021-04-03 Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>

* Makefile.am, check/Makefile.am, doc/Makefile.am,
lib/Makefile.am: Include $(top_builddir)/include in include paths
for the autoconf-generated header file lightning.h.

2021-04-03 Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>

* doc/.gitignore: Add version.texi to list of ignored files.
* doc/version.texi: Remove file from version control.

2020-18-04 Paulo Andrade <pcpa@gnu.org>

* lib/jit_x86-cpu.c, lib/jit_x86.c: Implement %rip relative
calls and jumps on x86_64. Currently very conservative, assuming
a jit block can be larger than 2G, so, if a jump or call is in
the same jit generation, but target is unknown, use an indirect
branch (could have an option to assume a jit code block is
never larger than 2G). Also a deoptimization is that now does
not always generate ip relative jmpi; previously implicitly
assumed jmpi would never be larger than 2G. Overall still an
optimization.

2020-23-01 Paulo Andrade <pcpa@gnu.org>

* lib/lightning.c: Add a proper fix to the condition of considering
Expand Down Expand Up @@ -26,7 +87,7 @@
to the set of registers to scan for live range, what might
consume a lot of cpu time, doing nothing.

2019-09-16 Marc Nieper-Wi�kirchen <marc@nieper-wisskirchen.de>
2019-09-16 Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>

* include/lightning/jit_x86.h, lib/jit_x86.c: Correct x86_64
backend, made %r12 a callee-save register as dictated by the
Expand Down Expand Up @@ -65,7 +126,7 @@
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925129
* THANKS: update.

2019-08-29 Marc Nieper-Wi�kirchen <marc@nieper-wisskirchen.de>
2019-08-29 Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>

* include/lightning/jit_private.h: Move definition of offsetof
from the public header file here.
Expand Down Expand Up @@ -1415,7 +1476,7 @@
* include/lightning/jit_arm.h: Correct wrong jit_f macro
definition.

* include/lightning/jit_ia64.h, include/lightning/jit_ppc.h:
* include/lightning/jit_ia64.h, include/lightning/jit_ppc.h:
Correct wrong jit_r macro definition.

* lib/jit_x86-x87.c, lib/jit_x86.c: Actually use the
Expand Down Expand Up @@ -1884,7 +1945,7 @@
divr_f and divrd_d implementation.

* check/lightning.c: Add __ia64__ preprocessor define
on Itanium.
on Itanium.

* check/alu.inc, check/clobber.tst, check/float.tst: Define
several macros conditionally to __ia64__. This is required
Expand Down Expand Up @@ -2991,7 +3052,7 @@
* include/lightning/jit_x86.h: Correct typo in macro name.

* lib/jit_arm.c, lib/jit_arm-cpu.c, lib/jit_mips.c,
lib/jit_mips-cpu.c, lib/jit_ppc.c, lib/jit_ppc-cpu.c,
lib/jit_mips-cpu.c, lib/jit_ppc.c, lib/jit_ppc-cpu.c,
lib/jit_x86.c, lib/jit_x86-cpu.c: Correct wrong code to get
current jit function pointer.

Expand Down Expand Up @@ -3225,7 +3286,7 @@
* lightning/i386/core.h (jit_ldr_c, jit_ldxr_c, jit_ldr_s,
jit_ldxr_s): Move...
* lightning/i386/core-32.h: ... here.
* lightning/i386/core-64.h (jit_ldr_c, jit_ldxr_c, jit_ldr_s,
* lightning/i386/core-64.h (jit_ldr_c, jit_ldxr_c, jit_ldr_s):
Use movsbq and movswq.

2010-08-10 Paulo César Pereira de Andrade <pcpa@mandriva.com.br>
Expand Down Expand Up @@ -3306,11 +3367,11 @@

* lightning/ppc/funcs.h (jit_flush_code): modified the computation
of start/end. The pointer arithmetic was done without casting. It
prevented compilation with recent gcc versions.
prevented compilation with recent gcc versions.
* lightning/ppc/core.h (jit_pushr_i): The offset for the store was
incorrect. Should have been 4 bytes below SP (not above).
* lightning/ppc/core.h (jit_popr_i): The offset for the load was
incorrect. Should have been 0 (not +8).
* lightning/ppc/core.h (jit_popr_i): The offset for the load was
incorrect. Should have been 0 (not +8).

2008-06-17 Paolo Bonzini <bonzini@gnu.org>

Expand Down Expand Up @@ -3589,7 +3650,7 @@
* lightning/i386/fp-32.h: ... here.
* lightning/i386/fp-64.h: Write the code.
* lightning/sparc/fp.h: Fix jit_extr_{f_d,d_f} register order.

2006-11-22 Paolo Bonzini <bonzini@gnu.org>

* lightning/i386/asm-i386.h: Move x86-64 instructions...
Expand Down Expand Up @@ -3803,7 +3864,7 @@
2006-01-23 Paolo Bonzini <bonzini@gnu.org>

* configure.ac: Fix comments in config.h.in.

2005-11-25 Paolo Bonzini <bonzini@gnu.org>

* lightning/sparc/fp.h: Fix header comment.
Expand Down Expand Up @@ -4123,7 +4184,7 @@
* lightning/ppc/funcs.h: correctly align stack pointer

No changelogs for the assemblers (lightning directory) until 1.0

2003-03-27 Paolo Bonzini <bonzini@gnu.org>

* tests/printf2.c: new test
Expand All @@ -4135,7 +4196,7 @@ No changelogs for the assemblers (lightning directory) until 1.0
2001-01-19 Paolo Bonzini <bonzini@gnu.org>

* configure.in: support cross-assembling

* disass/bfd.h, disass/dis-asm.h, disass/dis-buf.c,
disass/i386-dis.c, disass/i386.h, disass/ppc-dis.c,
disass/ppc.h, disass/ppc-opc.c, disass/sparc-dis.c,
Expand Down
6 changes: 5 additions & 1 deletion parallel-rsp/lightning/Makefile.am
Expand Up @@ -17,18 +17,22 @@
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = \
gnulib-lib \
check \
doc \
include \
lib

EXTRA_DIST = m4/gnulib-cache.m4

pkgconfiglibdir = $(libdir)/pkgconfig
pkgconfiglib_DATA = lightning.pc

if get_jit_size
JIT_SIZE_PATH = "$(top_builddir)/jit_$(cpu)-sz.c"
AM_CPPFLAGS=-DGET_JIT_SIZE=1 -DJIT_SIZE_PATH='$(JIT_SIZE_PATH)'
AM_CFLAGS = -I$(top_srcdir)/include -D_GNU_SOURCE $(LIGHTNING_CFLAGS)
AM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include \
-D_GNU_SOURCE $(LIGHTNING_CFLAGS)

noinst_PROGRAMS = size
size_LDADD = $(top_builddir)/lib/liblightning.la -lm $(SHLIB)
Expand Down
2 changes: 2 additions & 0 deletions parallel-rsp/lightning/README
@@ -1,3 +1,5 @@
GNU lightning is a library to aid in making portable programs
that compile assembly code at run time. For more information,
look at the info documentation.

For help building lightning, see README-hacking.
22 changes: 0 additions & 22 deletions parallel-rsp/lightning/check/3to2.ok

This file was deleted.

0 comments on commit e55c90c

Please sign in to comment.