[all-commits] [llvm/llvm-project] 0c89b3: [HLSL] Pass flags to cc1 based on language

Chris B via All-commits all-commits at lists.llvm.org
Tue Sep 20 08:56:40 PDT 2022


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

  Changed paths:
    M clang/include/clang/Driver/Types.h
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/Types.cpp
    M clang/test/Driver/hlsl_no_stdinc.hlsl

  Log Message:
  -----------
  [HLSL] Pass flags to cc1 based on language

Having the flags only pass through if you're using the dxc-driver means
that the clang driver doesn't work for HLSL, which is undesirable. This
change switches to instead passing flags based on the language mode
similar to how OpenCL does it. This allows the clang driver to be used
for HLSL source files as well.

Reviewed By: python3kgae

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




More information about the All-commits mailing list