Skip to content

Commit c563d62

Browse files
committed
Support LLVM JIT. Closes #1121.
1 parent 4ce63ad commit c563d62

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/unit/test_ghdl_interface.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ def test_parses_llvm_backend(self, check_output):
5151
Copyright (C) 2003 - 2022 Tristan Gingold.
5252
GHDL is free software, covered by the GNU General Public License. There is NO
5353
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
54+
"""
55+
56+
check_output.return_value = version
57+
self.assertEqual(GHDLInterface.determine_backend("prefix"), "llvm")
58+
59+
version = b"""\
60+
GHDL 5.0.1 (tarball) [Dunoon edition]
61+
Compiled with GNAT Version: 14.2.0
62+
static elaboration, LLVM JIT code generator
63+
Written by Tristan Gingold.
5464
"""
5565

5666
check_output.return_value = version

vunit/sim_if/ghdl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ def determine_backend(cls, prefix):
155155
mapping = {
156156
r"mcode (JIT )?code generator": "mcode",
157157
r"llvm (\d+\.\d+\.\d+ )?code generator": "llvm",
158+
r"static elaboration, LLVM JIT code generator": "llvm",
158159
r"GCC (back-end|\d+\.\d+\.\d+) code generator": "gcc",
159160
}
160161
output = cls._get_version_output(prefix)

0 commit comments

Comments
 (0)