[llvm] [AArch64][NFC] Move getPartialReductionCost into cpp file (PR #123370)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 08:53:30 PST 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 0d7c8c0e294d23fcfc9a396dafebe1465c471035 f92cbd2a4804398efda507c0f894ec0821f58268 --extensions cpp,h -- llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
index ba26af129f..c2d998a3dc 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
@@ -5574,12 +5574,11 @@ bool AArch64TTIImpl::isProfitableToSinkOperands(
   return false;
 }
 
-InstructionCost
-AArch64TTIImpl::getPartialReductionCost(unsigned Opcode, Type *InputTypeA, Type *InputTypeB,
-                        Type *AccumType, ElementCount VF,
-                        TTI::PartialReductionExtendKind OpAExtend,
-                        TTI::PartialReductionExtendKind OpBExtend,
-                        std::optional<unsigned> BinOp) const {
+InstructionCost AArch64TTIImpl::getPartialReductionCost(
+    unsigned Opcode, Type *InputTypeA, Type *InputTypeB, Type *AccumType,
+    ElementCount VF, TTI::PartialReductionExtendKind OpAExtend,
+    TTI::PartialReductionExtendKind OpBExtend,
+    std::optional<unsigned> BinOp) const {
   InstructionCost Invalid = InstructionCost::getInvalid();
   InstructionCost Cost(TTI::TCC_Basic);
 

``````````

</details>


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


More information about the llvm-commits mailing list