[clang] [clang-tools-extra] [llvm] [Driver] Report invalid target triple versions for all environment types. (PR #78655)

Dmitry Sidorov via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 21 04:57:48 PDT 2025


MrSidims wrote:

Hi @ZijunZhaoCCK , sorry, I'm quite late for the party, but may I ask you some questions?

We want to be able to distinguish between Vulkan and OpenCL environments in [SPIR-V backend](https://github.com/intel/llvm/tree/sycl/llvm/lib/Target/SPIRV), so we could be able to pick between Shader and Kernel capabilities depending on the environment. And OpenCL environment added by this patch seems like the perfect match for us.

We would also need to change OpenCL CodeGen in clang to start emitting this part of the triple, but before doing that I'd like to check, what was the intention under adding OpenCL environment in this PR (as currently it's not exposed in LLVM anywhere, so I could take a look)? Particularly I'd like to know, whether your intentions were to add OpenCL as a language to the triple or OpenCL as an execution environment?

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


More information about the llvm-commits mailing list