[all-commits] [llvm/llvm-project] 10194a: [HLSL] Restrict to supported targets

Chris B via All-commits all-commits at lists.llvm.org
Fri Sep 2 11:42:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10194a51a9d304ab9f68432f244749c672f9012a
      https://github.com/llvm/llvm-project/commit/10194a51a9d304ab9f68432f244749c672f9012a
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-09-02 (Fri, 02 Sep 2022)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticDriverKinds.td
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/CodeGenHLSL/validator_version.hlsl
    A clang/test/Driver/hlsl-lang-targets.hlsl
    M clang/test/Preprocessor/predefined-macros-hlsl.hlsl

  Log Message:
  -----------
  [HLSL] Restrict to supported targets

Someday we would like to support HLSL on a wider range of targets, but
today targeting anything other than `dxil` is likly to cause lots of
headaches. This adds an error and tests to validate that the expected
target is `dxil-?-shadermodel`.

We will continue to do a best effort to ensure the code we write makes
it easy to support other targets (like SPIR-V), but this error will
prevent users from hitting frustrating errors for unsupported cases.

Reviewed By: jcranmer-intel, Anastasia

Differential Revision: https://reviews.llvm.org/D132056




More information about the All-commits mailing list