[llvm] [DXIL] Add constraint specification and backend implementation of DXIL Ops (PR #97593)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 13:29:33 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 88c0a8258800bbc72e7c0b0586436d4a1c62a260 a1c76a248540c53f1bf15921654923a8e966817a -- llvm/lib/Target/DirectX/DXILOpBuilder.cpp llvm/lib/Target/DirectX/DXILOpBuilder.h llvm/lib/Target/DirectX/DXILOpLowering.cpp llvm/utils/TableGen/DXILEmitter.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/DirectX/DXILOpBuilder.cpp b/llvm/lib/Target/DirectX/DXILOpBuilder.cpp
index 3e45ade64b..7da72aca1d 100644
--- a/llvm/lib/Target/DirectX/DXILOpBuilder.cpp
+++ b/llvm/lib/Target/DirectX/DXILOpBuilder.cpp
@@ -234,9 +234,9 @@ CallInst *DXILOpBuilder::createDXILOpCall(dxil::OpCode OpCode,
 
   // Ensure valid shader stage constraints are specified
   if (ValidShaderKindMask == ShaderKind::Unknown) {
-    report_fatal_error(
-        StringRef(SMVer.getAsString().append(": Unhandled Target Shader Stage")),
-        /*gen_crash_diag*/ false);
+    report_fatal_error(StringRef(SMVer.getAsString().append(
+                           ": Unhandled Target Shader Stage")),
+                       /*gen_crash_diag*/ false);
   }
 
   // Validate the shader stage specified in target triple to be known

``````````

</details>


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


More information about the llvm-commits mailing list