https://github.com/arsenm updated 
https://github.com/llvm/llvm-project/pull/167088

>From 41af6eab99993161b1e5b37344228f1a8cb07473 Mon Sep 17 00:00:00 2001
From: Matt Arsenault <[email protected]>
Date: Fri, 7 Nov 2025 19:56:59 -0800
Subject: [PATCH] XCore: Add iprintf to RuntimeLibcalls system library

---
 llvm/include/llvm/IR/RuntimeLibcalls.td                   | 1 +
 llvm/test/Transforms/Util/DeclareRuntimeLibcalls/xcore.ll | 6 ++++++
 2 files changed, 7 insertions(+)
 create mode 100644 llvm/test/Transforms/Util/DeclareRuntimeLibcalls/xcore.ll

diff --git a/llvm/include/llvm/IR/RuntimeLibcalls.td 
b/llvm/include/llvm/IR/RuntimeLibcalls.td
index ad11216c6ee9d..acc9a1bfc0f5b 100644
--- a/llvm/include/llvm/IR/RuntimeLibcalls.td
+++ b/llvm/include/llvm/IR/RuntimeLibcalls.td
@@ -3349,6 +3349,7 @@ def XCoreSystemLibrary
     (add DefaultRuntimeLibcallImpls,
          exp10f, exp10, exp10l_f128,
          __memcpy_4,
+         iprintf, siprintf, fiprintf,
          LibcallImpls<(add LibmF128Libcalls, LibmF128FiniteLibcalls), 
isGNUEnvironment>
 )>;
 
diff --git a/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/xcore.ll 
b/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/xcore.ll
new file mode 100644
index 0000000000000..c1326ac980f4b
--- /dev/null
+++ b/llvm/test/Transforms/Util/DeclareRuntimeLibcalls/xcore.ll
@@ -0,0 +1,6 @@
+; REQUIRES: webassembly-registered-target
+; RUN: opt -S -passes=declare-runtime-libcalls -mtriple=xcore < %s | FileCheck 
%s
+
+; CHECK: declare void @fiprintf(...)
+; CHECK: declare void @iprintf(...)
+; CHECK: declare void @siprintf(...)

_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to