[llvm] [ORC] Mangle Call CI names as C (PR #225227)

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 15:52:32 PDT 2026


https://github.com/lhames created https://github.com/llvm/llvm-project/pull/225227

Flip the Call descriptors (call_main, call_void_void, call_int32_void, call_int32_int32) from Verbatim to C, so their names carry the target's C mangling. Served by the in-tree OrcRTBootstrap; controller and executor mangle the same specs and nothing else defines these names.

>From e41f97202e9930a1c8ec435e7e2e8ca5422376d6 Mon Sep 17 00:00:00 2001
From: Lang Hames <lhames at gmail.com>
Date: Tue, 22 Sep 2026 00:20:31 +1000
Subject: [PATCH] [ORC] Mangle Call CI names as C

Flip the Call descriptors (call_main, call_void_void, call_int32_void,
call_int32_int32) from Verbatim to C, so their names carry the target's
C mangling. Served by the in-tree OrcRTBootstrap; controller and
executor mangle the same specs and nothing else defines these names.
---
 .../llvm/ExecutionEngine/Orc/Shared/SPSCI/CallSPSCI.h     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Shared/SPSCI/CallSPSCI.h b/llvm/include/llvm/ExecutionEngine/Orc/Shared/SPSCI/CallSPSCI.h
index aace4bf1fcef7..27d2860ffdc17 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Shared/SPSCI/CallSPSCI.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Shared/SPSCI/CallSPSCI.h
@@ -31,7 +31,7 @@ namespace llvm::orc::rt::sps_ci {
 /// Takes the function's address and an argument vector.
 struct CallMain {
   static constexpr SymbolNameSpec Name =
-      SymbolNameSpec::verbatim("orc_rt_ci_sps_call_main");
+      SymbolNameSpec::c("orc_rt_ci_sps_call_main");
   using SPSSig = int64_t(shared::SPSExecutorAddr,
                          shared::SPSSequence<shared::SPSString>);
 };
@@ -40,7 +40,7 @@ struct CallMain {
 /// WARNING: This operation is experimental and may be removed.
 struct CallVoidVoid {
   static constexpr SymbolNameSpec Name =
-      SymbolNameSpec::verbatim("orc_rt_ci_sps_call_void_void");
+      SymbolNameSpec::c("orc_rt_ci_sps_call_void_void");
   using SPSSig = void(shared::SPSExecutorAddr);
 };
 
@@ -48,7 +48,7 @@ struct CallVoidVoid {
 /// WARNING: This operation is experimental and may be removed.
 struct CallInt32Void {
   static constexpr SymbolNameSpec Name =
-      SymbolNameSpec::verbatim("orc_rt_ci_sps_call_int32_void");
+      SymbolNameSpec::c("orc_rt_ci_sps_call_int32_void");
   using SPSSig = int32_t(shared::SPSExecutorAddr);
 };
 
@@ -56,7 +56,7 @@ struct CallInt32Void {
 /// WARNING: This operation is experimental and may be removed.
 struct CallInt32Int32 {
   static constexpr SymbolNameSpec Name =
-      SymbolNameSpec::verbatim("orc_rt_ci_sps_call_int32_int32");
+      SymbolNameSpec::c("orc_rt_ci_sps_call_int32_int32");
   using SPSSig = int32_t(shared::SPSExecutorAddr, int32_t);
 };
 



More information about the llvm-commits mailing list