[HLSL][clang][Driver] Parse target profile early to update Driver::TargetTriple.
authorXiang Li <python3kgae@outlook.com>
Fri, 13 May 2022 21:36:27 +0000 (14:36 -0700)
committerXiang Li <python3kgae@outlook.com>
Tue, 31 May 2022 20:23:30 +0000 (13:23 -0700)
commitfde240c9c328b8a824a064c8ccd91252516e6d41
tree6d6974701ead83d6eab9b086af16ce9d9233d497
parentce5ebf0b9113df8ccaec1bcfd6804fb16cdef69d
[HLSL][clang][Driver] Parse target profile early to update Driver::TargetTriple.

This is to avoid err_target_unknown_abi which is caused by use default TargetTriple instead of shader model target triple.

Reviewed By: beanz

Differential Revision: https://reviews.llvm.org/D125585
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/HLSL.cpp
clang/lib/Driver/ToolChains/HLSL.h
clang/test/Driver/dxc_fcgl.hlsl
clang/unittests/Driver/ToolChainTest.cpp