llvm
8527438f - [Clang][SYCL] Fix bundler target triple for SPIR-V in old offload model (#22429)

Commit
7 days ago
[Clang][SYCL] Fix bundler target triple for SPIR-V in old offload model (#22429) Upstream f8cb6be61b99 ("clang: Use the effective triple string for offload jobs") added FOUR_IDENT normalization in OffloadBundler::ConstructJob, causing SYCL SPIR-V device triples to be emitted in 4-component form (spir64-unknown-unknown-unknown) instead of the 3-component form (spir64-unknown-unknown) expected by the old offload model bundler. Skip FOUR_IDENT normalization for SYCL+SPIR/SPIRV targets in bundling jobs to preserve the 3-component triple format. Fixes - Driver/clang-offload-bundler-bc-archive-support-linux-old-model.cpp - Driver/sycl-no-rdc-fat-archive-old-model.cpp - Driver/sycl-offload-old-model.cpp - Driver/sycl-oneapi-gpu-intelgpu.cpp - Driver/sycl-oneapi-gpu-nvidia.cpp Changing to 4-component triples could be done later together with https://github.com/intel/llvm/blob/5bec703f62da/clang/lib/Driver/ToolChains/Clang.cpp#L10369 --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> (cherry picked from commit 1c5ce7d792375506d9f16053eb2c71f502efb67f)
Author
Committer
Parents
Loading