[HLSL] [Dirver] add dxv as a VerifyDebug Job
authorXiang Li <python3kgae@outlook.com>
Fri, 13 Jan 2023 18:05:36 +0000 (13:05 -0500)
committerXiang Li <python3kgae@outlook.com>
Thu, 2 Feb 2023 01:07:25 +0000 (20:07 -0500)
commitd5a7439e220c79ca9aad323f38cd115a1a34a13f
tree57a5c8bd13614107de9fe98b8a695b51d7242027
parent1a17739d3aa78599c32f6106e05dcfa7f3f9e823
[HLSL] [Dirver] add dxv as a VerifyDebug Job

New option --dxv-path is  added for dxc mode to set the installation path for dxv.
If cannot find dxv, a warning will be report.

dxv will be executed with command line dxv file_name -o file_name.
It will validate and sign the file and overwrite it.

Differential Revision: https://reviews.llvm.org/D141705
14 files changed:
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/include/clang/Basic/DiagnosticGroups.td
clang/include/clang/Driver/Action.h
clang/include/clang/Driver/Options.td
clang/include/clang/Driver/Types.def
clang/lib/Driver/Action.cpp
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains/HLSL.cpp
clang/lib/Driver/ToolChains/HLSL.h
clang/test/Driver/dxc_D.hlsl
clang/test/Driver/dxc_I.hlsl
clang/test/Driver/dxc_dxv_path.hlsl [new file with mode: 0644]
clang/unittests/Driver/DXCModeTest.cpp