[clang] [llvm] [SPIRV] Add support for the `SPV_EXT_long_vector` extension (PR #210279)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 03:01:21 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `intel-sycl-gpu` running on `intel-sycl-gpu-01` while building `llvm` at step 6 "test-build-unified-tree-check-all".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
...
0.112 [85/195/3] Generating sanitizer_nolibc_test_main.x86_64.o
0.112 [84/195/4] Generating RtsanNoInstTestObjects.rtsan_preinit.cpp.x86_64.o
0.143 [84/194/5] Generating Sanitizer-x86_64-Test-Nolibc
0.150 [84/193/6] Generating foo_jit.spirv64.bin
0.171 [84/192/7] Generating GwpAsanTestObjects.printf_sanitizer_common.cpp.x86_64.o
0.176 [84/191/8] Generating byte.spirv64.bin
0.177 [84/190/9] Generating noargs.spirv64.bin
0.179 [84/189/10] Generating global_dtor.spirv64.bin
0.180 [84/188/11] Generating sequence.spirv64.bin
0.346 [84/187/12] Generating global_ctor.spirv64.bin
FAILED: offload/unittests/OffloadAPI/device_code/global_ctor.spirv64.bin /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/runtimes/runtimes-bins/offload/unittests/OffloadAPI/device_code/global_ctor.spirv64.bin 
cd /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/runtimes/runtimes-bins/offload/unittests/OffloadAPI/device_code && /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/./bin/clang++ -I/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/offload/unittests --target=spirv64-intel -ffreestanding -flto -nostdlibinc -nogpulib /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/offload/unittests/OffloadAPI/device_code/global_ctor.cpp -o /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/runtimes/runtimes-bins/offload/unittests/OffloadAPI/device_code/global_ctor.spirv64.bin
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.	Program arguments: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto /tmp/global_ctor-6cf9f2.o -o /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/runtimes/runtimes-bins/offload/unittests/OffloadAPI/device_code/global_ctor.spirv64.bin -enable-lto-internalization=false
1.	Running pass 'Function Pass Manager' on module 'ld-temp.o'.
2.	Running pass 'InstructionSelect' on function '@_ZL16__gpu_block_id_xv'
 #0 0x00005649ee78a981 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x1449981)
 #1 0x00005649ee78749c llvm::sys::RunSignalHandlers() (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x144649c)
 #2 0x00005649ee7875fe SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x00007625fec45330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
 #4 0x00005649ed4e5f8f llvm::SPIRVGlobalRegistry::createConstOrTypeAtFunctionEntry(llvm::MachineIRBuilder&, std::function<llvm::MachineInstr* (llvm::MachineIRBuilder&)>) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x1a4f8f)
 #5 0x00005649ed4e694f llvm::SPIRVGlobalRegistry::getOpTypeVectorImpl(unsigned int, llvm::SPIRVTypeInst, llvm::MachineIRBuilder&, bool) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x1a594f)
 #6 0x00005649ed4ecb84 llvm::SPIRVGlobalRegistry::restOfCreateSPIRVType(llvm::Type const*, llvm::MachineIRBuilder&, llvm::SPIRV::AccessQualifier::AccessQualifier, bool, bool) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x1abb84)
 #7 0x00005649ed4ed871 llvm::SPIRVGlobalRegistry::getOrCreateSPIRVType(llvm::Type const*, llvm::MachineIRBuilder&, llvm::SPIRV::AccessQualifier::AccessQualifier, bool, bool) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x1ac871)
 #8 0x00005649ed501afb (anonymous namespace)::SPIRVInstructionSelector::loadVec3BuiltinInputID(llvm::SPIRV::BuiltIn::BuiltIn, llvm::Register, llvm::SPIRVTypeInst, llvm::MachineInstr&) const SPIRVInstructionSelector.cpp:0:0
 #9 0x00005649ed51bdde (anonymous namespace)::SPIRVInstructionSelector::selectIntrinsic(llvm::Register, llvm::SPIRVTypeInst, llvm::MachineInstr&) const SPIRVInstructionSelector.cpp:0:0
#10 0x00005649ed52b1b2 (anonymous namespace)::SPIRVInstructionSelector::select(llvm::MachineInstr&) SPIRVInstructionSelector.cpp:0:0
#11 0x00005649ee9ff60b llvm::InstructionSelectImpl::selectMachineFunction(llvm::MachineFunction&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x16be60b)
#12 0x00005649eea00db6 llvm::InstructionSelectLegacy::runOnMachineFunction(llvm::MachineFunction&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x16bfdb6)
#13 0x00005649edbfe0a4 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x8bd0a4)
#14 0x00005649ee2f2a09 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0xfb1a09)
#15 0x00005649ee2f2e21 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0xfb1e21)
#16 0x00005649ee2f3801 (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) LegacyPassManager.cpp:0:0
#17 0x00005649ee2f3f24 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0xfb2f24)
#18 0x00005649ee542999 codegen(llvm::lto::Config const&, llvm::TargetMachine*, std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>, unsigned int, llvm::Module&, llvm::ModuleSummaryIndex const&) LTOBackend.cpp:0:0
#19 0x00005649ee543532 llvm::lto::backend(llvm::lto::Config const&, std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>, unsigned int, llvm::Module&, llvm::ModuleSummaryIndex&, llvm::ArrayRef<llvm::StringRef>) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x1202532)
#20 0x00005649ee54e62b llvm::LTOCodeGenerator::compileOptimized(std::function<llvm::Expected<std::unique_ptr<llvm::CachedFileStream, std::default_delete<llvm::CachedFileStream>>> (unsigned int, llvm::Twine const&)>, unsigned int) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x120d62b)
#21 0x00005649ed356895 main (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x15895)
#22 0x00007625fec2a1ca __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
#23 0x00007625fec2a28b call_init ./csu/../csu/libc-start.c:128:20
#24 0x00007625fec2a28b __libc_start_main ./csu/../csu/libc-start.c:347:5
#25 0x00005649ed3d1f65 _start (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/llvm-lto+0x90f65)
clang++: error: unable to execute command: Segmentation fault
clang++: error: spirv-link command failed with exit code -2 (use -v to see invocation)
Aborted
0.477 [84/186/13] Generating MEMPROF_TEST_OBJECTS.memprof_mibmap.cpp.x86_64.o
0.725 [84/185/14] Generating MEMPROF_TEST_OBJECTS.memprof_rawprofile.cpp.x86_64.o
0.930 [84/184/15] Generating single_counter.spirv64.bin
Step 7 (test-build-unified-tree-check-sycl) failure: test (failure)
******************** TEST 'libsycl :: basic/sub_group_common.cpp' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang++ -Werror  -fsycl /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/libsycl/test/basic/sub_group_common.cpp -o /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/runtimes/runtimes-bins/libsycl/test/basic/Output/sub_group_common.cpp.tmp.out
# executed command: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang++ -Werror -fsycl /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/llvm-project/libsycl/test/basic/sub_group_common.cpp -o /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/runtimes/runtimes-bins/libsycl/test/basic/Output/sub_group_common.cpp.tmp.out
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: /home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker -triple=spirv64-unknown-unknown /tmp/lit-tmp-i1e1_wmf/sub_group_common-887396-spirv64-unknown-unknown-generic-6b2599.o -o /tmp/lit-tmp-i1e1_wmf/sub_group_common.cpp.tmp.out.spirv64.-f82db3.img
# | 1.	Running pass 'Function Pass Manager' on module '/tmp/lit-tmp-i1e1_wmf/sub_group_common.cpp.tmp.out.spirv64.-f82db3.img-1ccd2b.bc'.
# | 2.	Running pass 'IRTranslator' on function '@_ZTSZ5checkRN4sycl4__V05queueEjjE17sycl_subgr_common'
# |  #0 0x00005eeaa15f3b51 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xd28b51)
# |  #1 0x00005eeaa15f083c llvm::sys::RunSignalHandlers() (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xd2583c)
# |  #2 0x00005eeaa15f099e SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
# |  #3 0x00007c12d1c45330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x00005eeaa0a0c63f llvm::SPIRVGlobalRegistry::createConstOrTypeAtFunctionEntry(llvm::MachineIRBuilder&, std::function<llvm::MachineInstr* (llvm::MachineIRBuilder&)>) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0x14163f)
# |  #5 0x00005eeaa0a0cfff llvm::SPIRVGlobalRegistry::getOpTypeVectorImpl(unsigned int, llvm::SPIRVTypeInst, llvm::MachineIRBuilder&, bool) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0x141fff)
# |  #6 0x00005eeaa0a13234 llvm::SPIRVGlobalRegistry::restOfCreateSPIRVType(llvm::Type const*, llvm::MachineIRBuilder&, llvm::SPIRV::AccessQualifier::AccessQualifier, bool, bool) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0x148234)
# |  #7 0x00005eeaa0a13f21 llvm::SPIRVGlobalRegistry::getOrCreateSPIRVType(llvm::Type const*, llvm::MachineIRBuilder&, llvm::SPIRV::AccessQualifier::AccessQualifier, bool, bool) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0x148f21)
# |  #8 0x00005eeaa099ec12 llvm::genWorkgroupQuery(llvm::SPIRV::IncomingCall const*, llvm::MachineIRBuilder&, llvm::SPIRVGlobalRegistry*, llvm::SPIRV::BuiltIn::BuiltIn, unsigned long) SPIRVBuiltins.cpp:0:0
# |  #9 0x00005eeaa09c26ea llvm::SPIRV::lowerBuiltin(llvm::StringRef, llvm::SPIRV::InstructionSet::InstructionSet, llvm::MachineIRBuilder&, llvm::Register, llvm::Type const*, llvm::SmallVectorImpl<llvm::Register> const&, llvm::SPIRVGlobalRegistry*, llvm::CallBase const&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xf76ea)
# | #10 0x00005eeaa09c69e0 llvm::SPIRVCallLowering::lowerCall(llvm::MachineIRBuilder&, llvm::CallLowering::CallLoweringInfo&) const (.part.0) SPIRVCallLowering.cpp:0:0
# | #11 0x00005eeaa17eb252 llvm::CallLowering::lowerCall(llvm::MachineIRBuilder&, llvm::CallBase const&, llvm::ArrayRef<llvm::Register>, llvm::ArrayRef<llvm::ArrayRef<llvm::Register>>, llvm::Register, std::optional<llvm::CallLowering::PtrAuthInfo>, llvm::Register, std::function<llvm::Register ()>) const (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xf20252)
# | #12 0x00005eeaa182421b llvm::IRTranslatorImpl::translateCallBase(llvm::CallBase const&, llvm::MachineIRBuilder&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xf5921b)
# | #13 0x00005eeaa1812cc2 llvm::IRTranslatorImpl::translateCall(llvm::User const&, llvm::MachineIRBuilder&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xf47cc2)
# | #14 0x00005eeaa1829137 llvm::IRTranslatorImpl::runOnMachineFunction(llvm::MachineFunction&, llvm::function_ref<llvm::GISelCSEInfo* ()>, bool, llvm::function_ref<llvm::AAResults* ()>, llvm::function_ref<llvm::BranchProbabilityInfo* ()>, llvm::function_ref<llvm::AssumptionCache* ()>, llvm::TargetLibraryInfo*, llvm::LibcallLoweringInfo const*, llvm::SSPLayoutInfo*) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xf5e137)
# | #15 0x00005eeaa182a89f llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xf5f89f)
# | #16 0x00005eeaa1e9cc24 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0x15d1c24)
# | #17 0x00005eeaa1316719 llvm::FPPassManager::runOnFunction(llvm::Function&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xa4b719)
# | #18 0x00005eeaa1316b31 llvm::FPPassManager::runOnModule(llvm::Module&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xa4bb31)
# | #19 0x00005eeaa1317171 (anonymous namespace)::MPPassManager::runOnModule(llvm::Module&) LegacyPassManager.cpp:0:0
# | #20 0x00005eeaa1317894 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xa4c894)
# | #21 0x00005eeaa092d39e runCodeGen(llvm::StringRef, llvm::Triple const&, llvm::opt::ArgList const&, llvm::StringRef, llvm::LLVMContext&) (.isra.0) ClangSYCLLinker.cpp:0:0
# | #22 0x00005eeaa08d8786 main (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xd786)
# | #23 0x00007c12d1c2a1ca __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:74:3
# | #24 0x00007c12d1c2a28b call_init ./csu/../csu/libc-start.c:128:20
# | #25 0x00007c12d1c2a28b __libc_start_main ./csu/../csu/libc-start.c:347:5
# | #26 0x00005eeaa091ed25 _start (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0x53d25)
# |  #0 0x00005eeaa15f3b51 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xd28b51)
# |  #1 0x00005eeaa15f083c llvm::sys::RunSignalHandlers() (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0xd2583c)
# |  #2 0x00005eeaa15f099e SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
# |  #3 0x00007c12d1c45330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x00005eeaa0a0c63f llvm::SPIRVGlobalRegistry::createConstOrTypeAtFunctionEntry(llvm::MachineIRBuilder&, std::function<llvm::MachineInstr* (llvm::MachineIRBuilder&)>) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0x14163f)
# |  #5 0x00005eeaa0a0cfff llvm::SPIRVGlobalRegistry::getOpTypeVectorImpl(unsigned int, llvm::SPIRVTypeInst, llvm::MachineIRBuilder&, bool) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0x141fff)
# |  #6 0x00005eeaa0a13234 llvm::SPIRVGlobalRegistry::restOfCreateSPIRVType(llvm::Type const*, llvm::MachineIRBuilder&, llvm::SPIRV::AccessQualifier::AccessQualifier, bool, bool) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0x148234)
# |  #7 0x00005eeaa0a13f21 llvm::SPIRVGlobalRegistry::getOrCreateSPIRVType(llvm::Type const*, llvm::MachineIRBuilder&, llvm::SPIRV::AccessQualifier::AccessQualifier, bool, bool) (/home/test-user/llvm-buildbot-worker/intel-sycl-gpu/build/bin/clang-sycl-linker+0x148f21)
# |  #8 0x00005eeaa099ec12 llvm::genWorkgroupQuery(llvm::SPIRV::IncomingCall const*, llvm::MachineIRBuilder&, llvm::SPIRVGlobalRegistry*, llvm::SPIRV::BuiltIn::BuiltIn, unsigned long) SPIRVBuiltins.cpp:0:0
...

```

</details>

https://github.com/llvm/llvm-project/pull/210279


More information about the llvm-commits mailing list