[all-commits] [llvm/llvm-project] c21f48: [HLSL][SPIR-V] Add Vulkan to target triple (#76749)

Natalie Chouinard via All-commits all-commits at lists.llvm.org
Thu Jan 18 09:52:12 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c21f48e5ad1799db41cc9f16541b8365e3b75e63
      https://github.com/llvm/llvm-project/commit/c21f48e5ad1799db41cc9f16541b8365e3b75e63
  Author: Natalie Chouinard <sudonatalie at google.com>
  Date:   2024-01-18 (Thu, 18 Jan 2024)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/lib/Basic/Targets/SPIR.h
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/Driver/hlsl-lang-targets-spirv.hlsl
    M clang/test/Driver/hlsl-lang-targets.hlsl
    M llvm/include/llvm/TargetParser/Triple.h
    M llvm/lib/TargetParser/Triple.cpp
    M llvm/unittests/TargetParser/TripleTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list