[clang] [llvm] [HLSL] AST support for WaveSize attribute. (PR #101240)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 30 13:54:38 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 d01c0514ab272bc06aa5845acb810d0eec587436 c7a476a4d8b06e399e9c076cc15208871e1b5a25 --extensions h,cpp -- llvm/include/llvm/Frontend/HLSL/HLSLWaveSize.h clang/include/clang/Sema/SemaHLSL.h clang/lib/Sema/SemaDecl.cpp clang/lib/Sema/SemaDeclAttr.cpp clang/lib/Sema/SemaHLSL.cpp llvm/include/llvm/Support/DXILABI.h
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index c9a7c9e54d..6ec53a791a 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -2863,9 +2863,9 @@ static bool mergeDeclAttribute(Sema &S, NamedDecl *D,
     NewAttr = S.HLSL().mergeNumThreadsAttr(D, *NT, NT->getX(), NT->getY(),
                                            NT->getZ());
   else if (const auto *NT = dyn_cast<HLSLWaveSizeAttr>(Attr))
-    NewAttr =
-        S.HLSL().mergeWaveSizeAttr(D, *NT, NT->getMin(), NT->getMax(),
-                                   NT->getPreferred(), NT->getSpelledArgsCount());
+    NewAttr = S.HLSL().mergeWaveSizeAttr(D, *NT, NT->getMin(), NT->getMax(),
+                                         NT->getPreferred(),
+                                         NT->getSpelledArgsCount());
   else if (const auto *SA = dyn_cast<HLSLShaderAttr>(Attr))
     NewAttr = S.HLSL().mergeShaderAttr(D, *SA, SA->getType());
   else if (isa<SuppressAttr>(Attr))

``````````

</details>


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


More information about the cfe-commits mailing list