From 8391f0ff27ce7e129b3e28976094695eeb75feee Mon Sep 17 00:00:00 2001 From: esc Date: Wed, 11 Oct 2023 11:17:17 +0200 Subject: [PATCH 1/8] Merge pull request #998 from esc/fix_rtd_missing_sphinx_rtd_theme adding sphinx_rtd_theme to RTD build to fix build --- .readthedocs.yaml | 1 + docs/rtd-requirements.txt | 1 + 2 files changed, 2 insertions(+) create mode 100644 docs/rtd-requirements.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml index d2dc450e4..43152be07 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -15,5 +15,6 @@ sphinx: python: install: + - requirements: docs/rtd-requirements.txt - method: pip path: . diff --git a/docs/rtd-requirements.txt b/docs/rtd-requirements.txt new file mode 100644 index 000000000..483a4e960 --- /dev/null +++ b/docs/rtd-requirements.txt @@ -0,0 +1 @@ +sphinx_rtd_theme From adcd664d62a7e4a19bb84e45c8d4ab6f8e540f7a Mon Sep 17 00:00:00 2001 From: esc Date: Thu, 12 Oct 2023 17:40:06 +0200 Subject: [PATCH 2/8] Merge pull request #1001 from gmarkall/skip-orcjit-non-x86 Fix / workaround for OrcJIT blocking issues --- llvmlite/tests/test_binding.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/llvmlite/tests/test_binding.py b/llvmlite/tests/test_binding.py index d0955508d..3a62c4564 100644 --- a/llvmlite/tests/test_binding.py +++ b/llvmlite/tests/test_binding.py @@ -112,6 +112,9 @@ def no_de_locale(): }} """ +if platform.python_implementation() == 'PyPy': + asm_getversion = asm_getversion.replace('Py_GetVersion', 'PyPy_GetVersion') + # `fadd` used on integer inputs asm_parse_error = r""" ; ModuleID = '' @@ -1202,6 +1205,11 @@ def jit(self, mod, target_machine=None): return llvm.create_mcjit_compiler(mod, target_machine) +# There are some memory corruption issues with OrcJIT on AArch64 - see Issue +# #1000. Since OrcJIT is experimental, and we don't test regularly during +# llvmlite development on non-x86 platforms, it seems safest to skip these +# tests on non-x86 platforms. +@unittest.skipUnless(platform.machine().startswith("x86"), "x86 only") class TestOrcLLJIT(BaseTest): def jit(self, asm=asm_sum, func_name="sum", target_machine=None, From 30071de0aa21f6bd798c71652dd2f776f9ffeb19 Mon Sep 17 00:00:00 2001 From: esc Date: Thu, 12 Oct 2023 17:40:16 +0200 Subject: [PATCH 3/8] Merge pull request #997 from ke6jjj/jsc/fix-freebsd-build Fix issue #880 by ensuring all sources are compiled under FreeBSD. --- ffi/Makefile.freebsd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffi/Makefile.freebsd b/ffi/Makefile.freebsd index dbaf3a9af..a55349a34 100644 --- a/ffi/Makefile.freebsd +++ b/ffi/Makefile.freebsd @@ -11,7 +11,7 @@ LIBS = $(LLVM_LIBS) INCLUDE = core.h SRC = assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp \ executionengine.cpp transforms.cpp passmanagers.cpp targets.cpp dylib.cpp \ - linker.cpp object_file.cpp orcjit.cpp + linker.cpp object_file.cpp orcjit.cpp custom_passes.cpp OUTPUT = libllvmlite.so all: $(OUTPUT) From eae6b8bfe3f7c17c98898e07cc4cf790bcdbfa53 Mon Sep 17 00:00:00 2001 From: esc Date: Thu, 12 Oct 2023 17:40:32 +0200 Subject: [PATCH 4/8] Merge pull request #996 from esc/codespell_typos fix typos found by codespell --- README.rst | 2 +- docs/source/user-guide/ir/ir-builder.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index a614744a5..9e80355d3 100644 --- a/README.rst +++ b/README.rst @@ -51,7 +51,7 @@ Key Benefits ctypes (no need to wrestle with Python's compiler requirements and C++ 11 compatibility). * The Python binding layer has sane memory management. -* llvmlite is quite faster than llvmpy's thanks to a much simpler architeture +* llvmlite is faster than llvmpy thanks to a much simpler architecture (the Numba_ test suite is twice faster than it was). Compatibility diff --git a/docs/source/user-guide/ir/ir-builder.rst b/docs/source/user-guide/ir/ir-builder.rst index 179c1e219..3c6e2cf7d 100644 --- a/docs/source/user-guide/ir/ir-builder.rst +++ b/docs/source/user-guide/ir/ir-builder.rst @@ -530,7 +530,7 @@ Function call optimized, but may be ignored. * ``"musttail"``: indicates that the call must be tail-call optimized for program correctness. - * ``"notail"``: indicate thats the call should never be tail-call + * ``"notail"``: indicates that the call should never be tail-call optimized. For backwards compatibility with previous versions, the following values From cd46ce4bf2c4bebcd0430ce4ebafaa3c0d0fea2d Mon Sep 17 00:00:00 2001 From: esc Date: Thu, 12 Oct 2023 17:59:53 +0200 Subject: [PATCH 5/8] release notes for 0.41.1 As title --- CHANGE_LOG | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGE_LOG b/CHANGE_LOG index b63fea32c..f06913d1c 100644 --- a/CHANGE_LOG +++ b/CHANGE_LOG @@ -1,3 +1,23 @@ +v0.41.1 (Oct 16, 2023) +---------------------- + +This is a maintenance release that includes a fix for ORCJit issues on the +`aarch64` platform. Also, this +is the last release to support the Windows 32-bit platform (`win32`). + +Pull-Requests: + +* PR `#996 `_: fix typos found by codespell (`esc `_) +* PR `#997 `_: Fix issue #880 by ensuring all sources are compiled under FreeBSD. (`ke6jjj `_) +* PR `#998 `_: adding sphinx_rtd_theme to RTD build to fix build (`esc `_) +* PR `#1001 `_: Fix / workaround for OrcJIT blocking issues (`gmarkall `_) + +Authors: + +* `esc `_ +* `ke6jjj `_ +* `gmarkall `_ + v0.41.0 (Sept 20, 2023) ----------------------- From 0b82b9cb1ae4ab94f74637a8018397bd86bd9d57 Mon Sep 17 00:00:00 2001 From: esc Date: Mon, 16 Oct 2023 08:44:58 +0200 Subject: [PATCH 6/8] update release date As title --- CHANGE_LOG | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGE_LOG b/CHANGE_LOG index f06913d1c..136d11a5b 100644 --- a/CHANGE_LOG +++ b/CHANGE_LOG @@ -1,4 +1,4 @@ -v0.41.1 (Oct 16, 2023) +v0.41.1 (Oct 17, 2023) ---------------------- This is a maintenance release that includes a fix for ORCJit issues on the From d58bfc2eee10b8fdc6e0cf154175d462520da738 Mon Sep 17 00:00:00 2001 From: esc Date: Mon, 16 Oct 2023 14:46:19 +0200 Subject: [PATCH 7/8] update release announcement to more clear As title --- CHANGE_LOG | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGE_LOG b/CHANGE_LOG index 136d11a5b..4c3586ff7 100644 --- a/CHANGE_LOG +++ b/CHANGE_LOG @@ -1,9 +1,9 @@ v0.41.1 (Oct 17, 2023) ---------------------- -This is a maintenance release that includes a fix for ORCJit issues on the -`aarch64` platform. Also, this -is the last release to support the Windows 32-bit platform (`win32`). +This is a maintenance release that includes a workaround in the test suite for +ORCJit issues on the `aarch64` platform. Also, this is the last release to +support the Windows 32-bit platform (`win32`). Pull-Requests: From dbc415a19f496b76ec2db914c6cd93253f3f02f4 Mon Sep 17 00:00:00 2001 From: esc Date: Mon, 16 Oct 2023 14:55:04 +0200 Subject: [PATCH 8/8] fix syntax highlighting in release notes As title --- CHANGE_LOG | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGE_LOG b/CHANGE_LOG index 4c3586ff7..6c0c23c84 100644 --- a/CHANGE_LOG +++ b/CHANGE_LOG @@ -2,8 +2,8 @@ v0.41.1 (Oct 17, 2023) ---------------------- This is a maintenance release that includes a workaround in the test suite for -ORCJit issues on the `aarch64` platform. Also, this is the last release to -support the Windows 32-bit platform (`win32`). +ORCJit issues on the ``aarch64`` platform. Also, this is the last release to +support the Windows 32-bit platform (``win32``). Pull-Requests: