[clang] [clang-tools-extra] [CudaSPIRV] Allow using integral non-type template parameters as attribute args (PR #131546)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 16 20:36:48 PDT 2025
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 2dc123b33d51fcccb9e1af7230bc6573f77b3ccc 86eefd7db18252d74f7b5891e7490653b6378eb0 --extensions cpp -- clang-tools-extra/clang-tidy/altera/SingleWorkItemBarrierCheck.cpp clang/lib/CodeGen/CodeGenFunction.cpp clang/lib/CodeGen/Targets/AMDGPU.cpp clang/lib/CodeGen/Targets/TCE.cpp clang/lib/Sema/SemaDeclAttr.cpp clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/Targets/AMDGPU.cpp b/clang/lib/CodeGen/Targets/AMDGPU.cpp
index 8f999ab113..e3c8243cbb 100644
--- a/clang/lib/CodeGen/Targets/AMDGPU.cpp
+++ b/clang/lib/CodeGen/Targets/AMDGPU.cpp
@@ -757,12 +757,8 @@ void CodeGenModule::handleAMDGPUFlatWorkGroupSizeAttr(
return E->EvaluateKnownConstInt(getContext()).getExtValue();
};
if (FlatWGS) {
- Min = Eval(
- FlatWGS
- ->getMin());
- Max = Eval(
- FlatWGS
- ->getMax());
+ Min = Eval(FlatWGS->getMin());
+ Max = Eval(FlatWGS->getMax());
}
if (ReqdWGS && Min == 0 && Max == 0)
Min = Max = Eval(ReqdWGS->getXDim()) * Eval(ReqdWGS->getYDim()) *
``````````
</details>
https://github.com/llvm/llvm-project/pull/131546
More information about the cfe-commits
mailing list