aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringRefTest.cpp
diff options
context:
space:
mode:
authorS. Bharadwaj Yadavalli <Bharadwaj.Yadavalli@microsoft.com>2024-05-08 12:20:41 -0400
committerGitHub <noreply@github.com>2024-05-08 12:20:41 -0400
commit6d8901488f160dd92aea5b98fcc21c7fa7c1cbe6 (patch)
treeb94490c771bbe4fe15dde05753a84fdcb3c51754 /llvm/unittests/ADT/StringRefTest.cpp
parent5636eb89bd69f9c55f4e4aeafaa8c04aa99e5c84 (diff)
downloadllvm-6d8901488f160dd92aea5b98fcc21c7fa7c1cbe6.zip
llvm-6d8901488f160dd92aea5b98fcc21c7fa7c1cbe6.tar.gz
llvm-6d8901488f160dd92aea5b98fcc21c7fa7c1cbe6.tar.bz2
[DXIL] Set DXIL Version in DXIL target triple based on shader model version (#91407)
This change set restores commit 080978dd2067d0c9ea7e229aa7696c2480d89ef1 that was reverted to address ASAN failures and includes a fix for the ASAN failures. Following is the description of the change: An earlier commit provided a way to decouple DXIL version from Shader Model version by representing the DXIL version as `SubArch` in the DXIL Target Triple and adding corresponding valid DXIL Arch types. This change constructs DXIL target triple with DXIL version that is deduced from Shader Model version specified in the following scenarios: 1. When compilation target profile is specified: For e.g., DXIL target triple `dxilv1.8-unknown-shader6.8-library` is constructed when `-T lib_6_8` is specified. 2. When DXIL target triple without DXIL version is specified: For e.g., DXIL target triple `dxilv1.8-pc-shadermodel6.8-library` is constructed when `-mtriple=dxil-pc-shadermodel6.8-library` is specified. Updated relevant HLSL tests that check for target triple.
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
0 files changed, 0 insertions, 0 deletions