[clang] [llvm] [DirectX] Set DXIL Version using shader model version in compilation target profile (PR #89823)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 24 09:06:51 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff b4a0fd40f1b94eac571d29ee7695b492934d9bfc 13f31a56d554def1f3f3e71bfffe21485452f85a -- clang/lib/Driver/ToolChains/HLSL.cpp clang/test/CodeGenHLSL/basic-target.c clang/test/Frontend/hlsl-entry.cpp clang/test/Preprocessor/predefined-macros-no-warnings.c clang/unittests/Driver/DXCModeTest.cpp llvm/lib/TargetParser/Triple.cpp llvm/unittests/TargetParser/TripleTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Driver/ToolChains/HLSL.cpp b/clang/lib/Driver/ToolChains/HLSL.cpp
index 2cb5bd08b9..c4600d1f83 100644
--- a/clang/lib/Driver/ToolChains/HLSL.cpp
+++ b/clang/lib/Driver/ToolChains/HLSL.cpp
@@ -137,7 +137,7 @@ std::optional<std::string> tryParseProfile(StringRef Profile) {
   case 8:
     SubArch = llvm::Triple::DXILSubArch_v1_8;
     break;
-  default :
+  default:
     // No DXIL Version corresponding to specified Shader Model version found
     return std::nullopt;
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/89823


More information about the cfe-commits mailing list