[all-commits] [llvm/llvm-project] ddce82: [llvm-jitlink] Rework out-of-process launch/connec...

Lang Hames via All-commits all-commits at lists.llvm.org
Fri Sep 18 16:36:38 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ddce820dd2226ad07e974d8773b591e144841c4b
      https://github.com/llvm/llvm-project/commit/ddce820dd2226ad07e974d8773b591e144841c4b
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-09-19 (Sat, 19 Sep 2026)

  Changed paths:
    A llvm/tools/llvm-jitlink/ConnectionUtils.h
    M llvm/tools/llvm-jitlink/llvm-jitlink-executor/llvm-jitlink-executor.cpp
    M llvm/tools/llvm-jitlink/llvm-jitlink.cpp

  Log Message:
  -----------
  [llvm-jitlink] Rework out-of-process launch/connect options (#224632)

Replace -oop-executor and -oop-executor-connect, which were mutually
exclusive and each parsed their own ad hoc connection syntax, with two
orthogonal options built on the shared ConnectionSpec parser:

  -oop-launch [<path>]  Launch an out-of-process executor (default:
                        llvm-jitlink-executor).

  -oop-connect <spec>   How to connect to the executor, whether or not
                        it was launched by llvm-jitlink.

Either may be used alone (matching the old -oop-executor and
-oop-executor-connect behavior) or combined, e.g. to have llvm-jitlink
bind and listen while the executor it launches dials back in:

  llvm-jitlink -oop-launch -oop-connect=tcp:listen=127.0.0.1:0 a.o

Both llvm-jitlink and llvm-jitlink-executor now parse connection
descriptors with ConnectionSpec (<transport>[:<action>]=<descriptor>)
instead of bespoke per-side parsing, and support the same three specs in
both directions: fd=<sockfd>, tcp:connect=<host>:<port>, and
tcp:listen=<host>:<port>.

For the reverse-connect case (llvm-jitlink listens, the executor
connects back), llvm-jitlink binds and resolves the listening port
before launching the executor, so it can hand the executor the concrete
port -- including when an OS-assigned ephemeral port ("0") was
requested. The host in a tcp:listen spec is now also honored as the bind
address (previously always wildcard-bound); an empty host still requests
a wildcard bind.

These changes will be used to support interaction with, and testing of,
the ORC runtime's new OGRE (ORC General-purpose Runtime Environment)
executor.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list