Skip to content

Conversation

@jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented Jul 23, 2025

Summary:
This should emit LLVM-IR. Add to the extremely ugly if statement so that
this happens correctly.

@llvmbot llvmbot added clang Clang issues not falling into any other category clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' labels Jul 23, 2025
@llvmbot
Copy link
Member

llvmbot commented Jul 23, 2025

@llvm/pr-subscribers-clang

@llvm/pr-subscribers-clang-driver

Author: Joseph Huber (jhuber6)

Changes

Summary:
This should emit LLVM-IR. Add to the extremely ugly if statement so that
this happens correctly.


Full diff: https://github.com/llvm/llvm-project/pull/150309.diff

2 Files Affected:

  • (modified) clang/lib/Driver/Driver.cpp (+5-2)
  • (modified) clang/test/Driver/hip-phases.hip (+5-6)
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index ef5af66918c0a..94542565685ac 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -5099,13 +5099,16 @@ Action *Driver::ConstructPhaseAction(
     if (Args.hasArg(options::OPT_emit_llvm) ||
         TargetDeviceOffloadKind == Action::OFK_SYCL ||
         (((Input->getOffloadingToolChain() &&
-           Input->getOffloadingToolChain()->getTriple().isAMDGPU()) ||
+           (Input->getOffloadingToolChain()->getTriple().isSPIRV() ||
+            Input->getOffloadingToolChain()->getTriple().isAMDGPU())) ||
           TargetDeviceOffloadKind == Action::OFK_HIP) &&
          ((Args.hasFlag(options::OPT_fgpu_rdc, options::OPT_fno_gpu_rdc,
                         false) ||
            (Args.hasFlag(options::OPT_offload_new_driver,
                          options::OPT_no_offload_new_driver, false) &&
-            !offloadDeviceOnly())) ||
+            (!offloadDeviceOnly() ||
+             (Input->getOffloadingToolChain() &&
+              Input->getOffloadingToolChain()->getTriple().isSPIRV())))) ||
           TargetDeviceOffloadKind == Action::OFK_OpenMP))) {
       types::ID Output =
           Args.hasArg(options::OPT_S) &&
diff --git a/clang/test/Driver/hip-phases.hip b/clang/test/Driver/hip-phases.hip
index f4d3e9d6043d9..d65a1ca7b91a3 100644
--- a/clang/test/Driver/hip-phases.hip
+++ b/clang/test/Driver/hip-phases.hip
@@ -692,9 +692,8 @@
 // SPIRV-ONLY-NEXT: 7: input, "[[INPUT]]", hip, (device-hip, amdgcnspirv)
 // SPIRV-ONLY-NEXT: 8: preprocessor, {7}, hip-cpp-output, (device-hip, amdgcnspirv)
 // SPIRV-ONLY-NEXT: 9: compiler, {8}, ir, (device-hip, amdgcnspirv)
-// SPIRV-ONLY-NEXT: 10: backend, {9}, assembler, (device-hip, amdgcnspirv)
-// SPIRV-ONLY-NEXT: 11: assembler, {10}, object, (device-hip, amdgcnspirv)
-// SPIRV-ONLY-NEXT: 12: linker, {11}, image, (device-hip, amdgcnspirv)
-// SPIRV-ONLY-NEXT: 13: offload, "device-hip (spirv64-amd-amdhsa:amdgcnspirv)" {12}, image
-// SPIRV-ONLY-NEXT: 14: linker, {6, 13}, hip-fatbin, (device-hip)
-// SPIRV-ONLY-NEXT: 15: offload, "device-hip (amdgcn-amd-amdhsa)" {14}, none
+// SPIRV-ONLY-NEXT: 10: backend, {9}, ir, (device-hip, amdgcnspirv)
+// SPIRV-ONLY-NEXT: 11: linker, {10}, image, (device-hip, amdgcnspirv)
+// SPIRV-ONLY-NEXT: 12: offload, "device-hip (spirv64-amd-amdhsa:amdgcnspirv)" {11}, image
+// SPIRV-ONLY-NEXT: 13: linker, {6, 12}, hip-fatbin, (device-hip)
+// SPIRV-ONLY-NEXT: 14: offload, "device-hip (amdgcn-amd-amdhsa)" {13}, none

Copy link
Member

@sarnex sarnex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code change lgtm, will leave it to HIP SPV experts to determine if device-only compilation should produce IR

@jhuber6
Copy link
Contributor Author

jhuber6 commented Jul 23, 2025

code change lgtm, will leave it to HIP SPV experts to determine if device-only compilation should produce IR

This matches the old and new driver behaviors, so it should work out. At some point we really need to wrangle this massive if statement.

Summary:
This should emit LLVM-IR. Add to the extremely ugly if statement so that
this happens correctly.
@jhuber6 jhuber6 merged commit 1206a61 into llvm:main Jul 23, 2025
6 of 8 checks passed
@dyung
Copy link
Collaborator

dyung commented Jul 23, 2025

Hi @jhuber6, your change seems to be causing a test failure of clang/test/Driver/spirv-openmp-toolchain.c on a bot a few bots, can you take a look?

@jhuber6
Copy link
Contributor Author

jhuber6 commented Jul 23, 2025

Hi @jhuber6, your change seems to be causing a test failure of clang/test/Driver/spirv-openmp-toolchain.c on a bot a few bots, can you take a look?

* https://lab.llvm.org/buildbot/#/builders/144/builds/31048

* https://lab.llvm.org/buildbot/#/builders/46/builds/20578

* https://lab.llvm.org/buildbot/#/builders/174/builds/21595

I thought I fixed that

@dyung
Copy link
Collaborator

dyung commented Jul 23, 2025

Hi @jhuber6, your change seems to be causing a test failure of clang/test/Driver/spirv-openmp-toolchain.c on a bot a few bots, can you take a look?

* https://lab.llvm.org/buildbot/#/builders/144/builds/31048

* https://lab.llvm.org/buildbot/#/builders/46/builds/20578

* https://lab.llvm.org/buildbot/#/builders/174/builds/21595

I thought I fixed that

Ah sorry, you did, my bots had not caught up yet. The latest runs don't show it failing. Sorry for the noise!

@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 24, 2025

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building clang at step 6 "test-build-unified-tree-check-clang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/33672

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-clang) failure: test (failure)
******************** TEST 'Clang :: Driver/spirv-openmp-toolchain.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/1/llvm-x86_64-debian-dylib/build/bin/clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=spirv64-intel         --libomptarget-spirv-bc-path=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/spirv-openmp-toolchain.c.tmp/ -nogpulib /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/spirv-openmp-toolchain.c 2>&1  | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/spirv-openmp-toolchain.c # RUN: at line 1
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/spirv-openmp-toolchain.c
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=spirv64-intel --libomptarget-spirv-bc-path=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/spirv-openmp-toolchain.c.tmp/ -nogpulib /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/spirv-openmp-toolchain.c
/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/spirv-openmp-toolchain.c:7:11: error: CHECK: expected string not found in input
// CHECK: "-cc1" "-triple" "spirv64-intel" "-aux-triple" "x86_64-unknown-linux-gnu"{{.*}} "-o" "{{.*}}.o"
          ^
<stdin>:7:1451: note: scanning from here
 "/b/1/llvm-x86_64-debian-dylib/build/bin/clang-22" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-llvm-bc" "-emit-llvm-uselists" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-openmp-toolchain.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver" "-resource-dir" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22" "-internal-isystem" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22/include/llvm_libc_wrappers" "-internal-isystem" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fopenmp" "--no-offloadlib" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-disable-llvm-passes" "--offload-targets=spirv64-intel" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-76744f.bc" "-x" "c" "/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/spirv-openmp-toolchain.c"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ^
<stdin>:8:50: note: possible intended match here
 "/b/1/llvm-x86_64-debian-dylib/build/bin/clang-22" "-cc1" "-triple" "spirv64-intel" "-aux-triple" "x86_64-unknown-linux-gnu" "-Wspir-compat" "-emit-llvm-bc" "-emit-llvm-uselists" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-openmp-toolchain.c" "-mrelocation-model" "static" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver" "-resource-dir" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22" "-internal-isystem" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22/include/openmp_wrappers" "-include" "__clang_openmp_device_functions.h" "-internal-isystem" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22/include/llvm_libc_wrappers" "-internal-isystem" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fvisibility=protected" "-fopenmp" "--no-offloadlib" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fopenmp-is-target-device" "-fopenmp-host-ir-file-path" "/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-76744f.bc" "-o" "/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-62b66d.bc" "-x" "c" "/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/spirv-openmp-toolchain.c"
                                                 ^

Input file: <stdin>
Check file: /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/spirv-openmp-toolchain.c

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1: clang version 22.0.0git (https://github.com/llvm/llvm-project.git 1206a6165e372c904566163d50911f30809185f3) 
           2: Target: x86_64-unknown-linux-gnu 
           3: Thread model: posix 
           4: InstalledDir: /b/1/llvm-x86_64-debian-dylib/build/bin 
           5: Build config: +assertions 
           6: clang: warning: argument unused during compilation: '--libomptarget-spirv-bc-path=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver/Output/spirv-openmp-toolchain.c.tmp/' [-Wunused-command-line-argument] 
           7:  "/b/1/llvm-x86_64-debian-dylib/build/bin/clang-22" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-llvm-bc" "-emit-llvm-uselists" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-openmp-toolchain.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver" "-resource-dir" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22" "-internal-isystem" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22/include/llvm_libc_wrappers" "-internal-isystem" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fopenmp" "--no-offloadlib" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-disable-llvm-passes" "--offload-targets=spirv64-intel" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-76744f.bc" "-x" "c" "/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/spirv-openmp-toolchain.c" 
check:7'0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
           8:  "/b/1/llvm-x86_64-debian-dylib/build/bin/clang-22" "-cc1" "-triple" "spirv64-intel" "-aux-triple" "x86_64-unknown-linux-gnu" "-Wspir-compat" "-emit-llvm-bc" "-emit-llvm-uselists" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-openmp-toolchain.c" "-mrelocation-model" "static" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver" "-resource-dir" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22" "-internal-isystem" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22/include/openmp_wrappers" "-include" "__clang_openmp_device_functions.h" "-internal-isystem" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22/include/llvm_libc_wrappers" "-internal-isystem" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fvisibility=protected" "-fopenmp" "--no-offloadlib" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fopenmp-is-target-device" "-fopenmp-host-ir-file-path" "/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-76744f.bc" "-o" "/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-62b66d.bc" "-x" "c" "/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/Driver/spirv-openmp-toolchain.c" 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:7'1                                                      ?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        possible intended match
           9:  "/b/1/llvm-x86_64-debian-dylib/build/bin/clang-offload-packager" "-o" "/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-135e1e.out" "--image=file=/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-62b66d.bc,triple=spirv64-intel,arch=generic,kind=openmp" 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          10:  "/b/1/llvm-x86_64-debian-dylib/build/bin/clang-22" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-openmp-toolchain.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/b/1/llvm-x86_64-debian-dylib/build/tools/clang/test/Driver" "-resource-dir" "/b/1/llvm-x86_64-debian-dylib/build/lib/clang/22" "-ferror-limit" "19" "-fopenmp" "--no-offloadlib" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fembed-offload-object=/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-135e1e.out" "--offload-targets=spirv64-intel" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-bddf82.o" "-x" "ir" "/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-76744f.bc" 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          11:  "/b/1/llvm-x86_64-debian-dylib/build/bin/clang-linker-wrapper" "--host-triple=x86_64-unknown-linux-gnu" "--linker-path=/usr/bin/ld" "--hash-style=gnu" "--eh-frame-hdr" "-m" "elf_x86_64" "-pie" "-dynamic-linker" "/lib64/ld-linux-x86-64.so.2" "-o" "a.out" "/lib/x86_64-linux-gnu/Scrt1.o" "/lib/x86_64-linux-gnu/crti.o" "/usr/lib/gcc/x86_64-linux-gnu/10/crtbeginS.o" "-L/usr/lib/gcc/x86_64-linux-gnu/10" "-L/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib64" "-L/lib/x86_64-linux-gnu" "-L/lib/../lib64" "-L/usr/lib/x86_64-linux-gnu" "-L/usr/lib64" "-L/lib" "-L/usr/lib" "/tmp/lit-tmp-upb9we2i/spirv-openmp-toolchain-bddf82.o" "-lomp" "-lomptarget" "-L/b/1/llvm-x86_64-debian-dylib/build/lib" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lpthread" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/gcc/x86_64-linux-gnu/10/crtendS.o" "/lib/x86_64-linux-gnu/crtn.o" 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Jul 24, 2025

LLVM Buildbot has detected a new failure on builder clang-x86_64-debian-fast running on gribozavr4 while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/31580

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Driver/spirv-openmp-toolchain.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=spirv64-intel         --libomptarget-spirv-bc-path=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/spirv-openmp-toolchain.c.tmp/ -nogpulib /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/spirv-openmp-toolchain.c 2>&1  | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/spirv-openmp-toolchain.c # RUN: at line 1
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -### --target=x86_64-unknown-linux-gnu -fopenmp=libomp -fopenmp-targets=spirv64-intel --libomptarget-spirv-bc-path=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/spirv-openmp-toolchain.c.tmp/ -nogpulib /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/spirv-openmp-toolchain.c
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/spirv-openmp-toolchain.c
/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/spirv-openmp-toolchain.c:7:11: error: CHECK: expected string not found in input
// CHECK: "-cc1" "-triple" "spirv64-intel" "-aux-triple" "x86_64-unknown-linux-gnu"{{.*}} "-o" "{{.*}}.o"
          ^
<stdin>:7:1469: note: scanning from here
 "/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang-22" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-llvm-bc" "-emit-llvm-uselists" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-openmp-toolchain.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver" "-fcoverage-compilation-dir=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver" "-resource-dir" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22" "-internal-isystem" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22/include/llvm_libc_wrappers" "-internal-isystem" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fopenmp" "--no-offloadlib" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-disable-llvm-passes" "--offload-targets=spirv64-intel" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-63f8ab.bc" "-x" "c" "/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/spirv-openmp-toolchain.c"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ^
<stdin>:8:53: note: possible intended match here
 "/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang-22" "-cc1" "-triple" "spirv64-intel" "-aux-triple" "x86_64-unknown-linux-gnu" "-Wspir-compat" "-emit-llvm-bc" "-emit-llvm-uselists" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-openmp-toolchain.c" "-mrelocation-model" "static" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver" "-fcoverage-compilation-dir=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver" "-resource-dir" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22" "-internal-isystem" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22/include/openmp_wrappers" "-include" "__clang_openmp_device_functions.h" "-internal-isystem" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22/include/llvm_libc_wrappers" "-internal-isystem" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fvisibility=protected" "-fopenmp" "--no-offloadlib" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fopenmp-is-target-device" "-fopenmp-host-ir-file-path" "/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-63f8ab.bc" "-o" "/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-5fca16.bc" "-x" "c" "/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/spirv-openmp-toolchain.c"
                                                    ^

Input file: <stdin>
Check file: /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/spirv-openmp-toolchain.c

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           1: clang version 22.0.0git (https://github.com/llvm/llvm-project.git 1206a6165e372c904566163d50911f30809185f3) 
           2: Target: x86_64-unknown-linux-gnu 
           3: Thread model: posix 
           4: InstalledDir: /b/1/clang-x86_64-debian-fast/llvm.obj/bin 
           5: Build config: +assertions 
           6: clang: warning: argument unused during compilation: '--libomptarget-spirv-bc-path=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver/Output/spirv-openmp-toolchain.c.tmp/' [-Wunused-command-line-argument] 
           7:  "/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang-22" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-llvm-bc" "-emit-llvm-uselists" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-openmp-toolchain.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver" "-fcoverage-compilation-dir=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver" "-resource-dir" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22" "-internal-isystem" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22/include/llvm_libc_wrappers" "-internal-isystem" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fopenmp" "--no-offloadlib" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-disable-llvm-passes" "--offload-targets=spirv64-intel" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-63f8ab.bc" "-x" "c" "/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/spirv-openmp-toolchain.c" 
check:7'0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
           8:  "/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang-22" "-cc1" "-triple" "spirv64-intel" "-aux-triple" "x86_64-unknown-linux-gnu" "-Wspir-compat" "-emit-llvm-bc" "-emit-llvm-uselists" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-openmp-toolchain.c" "-mrelocation-model" "static" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver" "-fcoverage-compilation-dir=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver" "-resource-dir" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22" "-internal-isystem" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22/include/openmp_wrappers" "-include" "__clang_openmp_device_functions.h" "-internal-isystem" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22/include/llvm_libc_wrappers" "-internal-isystem" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include" "-internal-externc-isystem" "/usr/include/x86_64-linux-gnu" "-internal-externc-isystem" "/include" "-internal-externc-isystem" "/usr/include" "-ferror-limit" "19" "-fvisibility=protected" "-fopenmp" "--no-offloadlib" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fopenmp-is-target-device" "-fopenmp-host-ir-file-path" "/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-63f8ab.bc" "-o" "/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-5fca16.bc" "-x" "c" "/b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Driver/spirv-openmp-toolchain.c" 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~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~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:7'1                                                         ?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      possible intended match
           9:  "/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang-offload-packager" "-o" "/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-568539.out" "--image=file=/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-5fca16.bc,triple=spirv64-intel,arch=generic,kind=openmp" 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          10:  "/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang-22" "-cc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-obj" "-dumpdir" "a-" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "spirv-openmp-toolchain.c" "-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-mframe-pointer=all" "-fmath-errno" "-ffp-contract=on" "-fno-rounding-math" "-mconstructor-aliases" "-funwind-tables=2" "-target-cpu" "x86-64" "-tune-cpu" "generic" "-debugger-tuning=gdb" "-fdebug-compilation-dir=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver" "-fcoverage-compilation-dir=/b/1/clang-x86_64-debian-fast/llvm.obj/tools/clang/test/Driver" "-resource-dir" "/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22" "-ferror-limit" "19" "-fopenmp" "--no-offloadlib" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-fembed-offload-object=/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-568539.out" "--offload-targets=spirv64-intel" "-faddrsig" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-831f2a.o" "-x" "ir" "/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-63f8ab.bc" 
check:7'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          11:  "/b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang-linker-wrapper" "--host-triple=x86_64-unknown-linux-gnu" "--linker-path=/usr/bin/ld" "--hash-style=gnu" "--eh-frame-hdr" "-m" "elf_x86_64" "-pie" "-dynamic-linker" "/lib64/ld-linux-x86-64.so.2" "-o" "a.out" "/lib/x86_64-linux-gnu/Scrt1.o" "/lib/x86_64-linux-gnu/crti.o" "/usr/lib/gcc/x86_64-linux-gnu/10/crtbeginS.o" "-L/b/1/clang-x86_64-debian-fast/llvm.obj/lib/clang/22/lib/x86_64-unknown-linux-gnu" "-L/usr/lib/gcc/x86_64-linux-gnu/10" "-L/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib64" "-L/lib/x86_64-linux-gnu" "-L/lib/../lib64" "-L/usr/lib/x86_64-linux-gnu" "-L/usr/lib64" "-L/lib" "-L/usr/lib" "/tmp/lit-tmp-ucsu3l6o/spirv-openmp-toolchain-831f2a.o" "-lomp" "-lomptarget" "-L/b/1/clang-x86_64-debian-fast/llvm.obj/lib" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lpthread" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "/usr/lib/gcc/x86_64-linux-gnu/10/crtendS.o" "/lib/x86_64-linux-gn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arde/llvm-project that referenced this pull request Jul 28, 2025
…vm#150309)

Summary:
This should emit LLVM-IR. Add to the extremely ugly if statement so that
this happens correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:driver 'clang' and 'clang++' user-facing binaries. Not 'clang-cl' clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants