[llvm] Revert "Reapply [Offload][lit] Link against SPIR-V DeviceRTL if present" (PR #180743)

Nick Sarnie via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 10 06:22:33 PST 2026


https://github.com/sarnex created https://github.com/llvm/llvm-project/pull/180743

Reverts llvm/llvm-project#180231

>From bfc6ef5068a3355098979b4074f2c96aafae3b3a Mon Sep 17 00:00:00 2001
From: Nick Sarnie <nick.sarnie at intel.com>
Date: Tue, 10 Feb 2026 14:22:17 +0000
Subject: [PATCH] =?UTF-8?q?Revert=20"Reapply=20[Offload][lit]=20Link=20aga?=
 =?UTF-8?q?inst=20SPIR-V=20DeviceRTL=20if=20present=20(#180=E2=80=A6"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

This reverts commit 7fcc12c3be0550bdcaa5305c557eee73fd719ff3.
---
 offload/test/lit.cfg                          | 5 ++---
 offload/test/mapping/firstprivate_aligned.cpp | 1 +
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/offload/test/lit.cfg b/offload/test/lit.cfg
index 898258f3e3cd0..0d5a9c95c1d95 100644
--- a/offload/test/lit.cfg
+++ b/offload/test/lit.cfg
@@ -166,8 +166,7 @@ elif config.operating_system == 'Darwin':
     config.test_flags += " -Wl,-rpath," + config.library_dir
     config.test_flags += " -Wl,-rpath," + config.omp_host_rtl_directory
 else: # Unices
-    if config.libomptarget_current_target != "nvptx64-nvidia-cuda" and \
-       not config.libomptarget_current_target.startswith('spirv'):
+    if config.libomptarget_current_target != "nvptx64-nvidia-cuda":
         config.test_flags += " -nogpulib"
     config.test_flags += " -Wl,-rpath," + config.library_dir
     config.test_flags += " -Wl,-rpath," + config.omp_host_rtl_directory
@@ -215,7 +214,7 @@ def add_libraries(source):
     if "gpu" not in config.available_features:
         return source
     if "intelgpu" in config.available_features:
-        # SPIR-V uses an out-of-tree linker and libc doesn't work.
+        # There is no DeviceRTL for Intel yet and libc doesn't work.
         return source
     if config.libomptarget_has_libc:
         return source + " -Xoffload-linker -lc " + \
diff --git a/offload/test/mapping/firstprivate_aligned.cpp b/offload/test/mapping/firstprivate_aligned.cpp
index ae6be0f0c07f4..bf09eb0b0f589 100644
--- a/offload/test/mapping/firstprivate_aligned.cpp
+++ b/offload/test/mapping/firstprivate_aligned.cpp
@@ -1,4 +1,5 @@
 // RUN: %libomptarget-compilexx-generic -O3 && %libomptarget-run-generic
+// XFAIL: intelgpu
 
 #include <stdio.h>
 



More information about the llvm-commits mailing list