LLVM 19 for JIT on 3.13? Maybe >= 19 for 3.14+?

Good question! In 3.13 (and early 3.14), we used an ugly performance hack that involved textual manipulation of LLVM IR. It worked fine for our purposes, but it felt like it might be too fragile to survive unknown LLVM upgrades.

Thankfully, we don’t do anything like that anymore. I’d probably be okay with only enforcing a lower bound on the LLVM version (or perhaps a range of versions) if that would make things easier for people. We might only want to test with the lowest version, though, and maybe print a warning if untested newer versions are used instead.

I could see a future LLVM using new relocations or something that our build scripts can’t handle. Printing “That didn’t work… try LLVM 19!” would probably be a good enough fallback.

5 Likes