[HLSL][SPIR-V] Add Vulkan to target triple (#76749)
commitc21f48e5ad1799db41cc9f16541b8365e3b75e63
authorNatalie Chouinard <sudonatalie@google.com>
Thu, 18 Jan 2024 17:52:00 +0000 (18 12:52 -0500)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2024 17:52:00 +0000 (18 12:52 -0500)
treecf596d8e996fee87b75c799bdceeb4702186d22a
parentb689e1678c429b724dd898edb9e24cbb9c437667
[HLSL][SPIR-V] Add Vulkan to target triple (#76749)

Add support for specifying the logical SPIR-V target environment in the
triple as Vulkan. When compiling HLSL, this replaces the DirectX Shader
Model with a Vulkan environment instead.

Currently, the only supported combinations of SPIR-V version and Vulkan
environment are:
- Vulkan 1.2 and SPIR-V 1.5
- Vulkan 1.3 and SPIR-V 1.6

Fixes #70051
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Basic/Targets/SPIR.h
clang/lib/Frontend/CompilerInvocation.cpp
clang/test/Driver/hlsl-lang-targets-spirv.hlsl
clang/test/Driver/hlsl-lang-targets.hlsl
llvm/include/llvm/TargetParser/Triple.h
llvm/lib/TargetParser/Triple.cpp
llvm/unittests/TargetParser/TripleTest.cpp