[llvm] [SystemZ] Fix variable names to reflect Coding Standards (PR #161899)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 4 09:57:06 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 origin/main HEAD --extensions cpp -- llvm/lib/Target/SystemZ/MCTargetDesc/SystemZInstPrinterCommon.cpp llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp b/llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
index 3a8668094..8c31579b4 100644
--- a/llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
@@ -13,10 +13,9 @@
using namespace llvm;
-SystemZConstantPoolValue::
-SystemZConstantPoolValue(const GlobalValue *GV,
- SystemZCP::SystemZCPModifier Modifier)
- : MachineConstantPoolValue(GV->getType()), GV(GV), Modifier(Modifier) {}
+SystemZConstantPoolValue::SystemZConstantPoolValue(
+ const GlobalValue *GV, SystemZCP::SystemZCPModifier Modifier)
+ : MachineConstantPoolValue(GV->getType()), GV(GV), Modifier(Modifier) {}
SystemZConstantPoolValue *
SystemZConstantPoolValue::Create(const GlobalValue *GV,
diff --git a/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp b/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
index af0913563..5313fba3b 100644
--- a/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.cpp
@@ -352,8 +352,7 @@ int SystemZHazardRecognizer::groupingCost(SUnit *SU) const {
// Similarly, a group-ending SU may either fit well (last in group), or
// end the group prematurely.
if (SC->EndGroup) {
- unsigned ResultingGroupSize =
- (CurrGroupSize + getNumDecoderSlots(SU));
+ unsigned ResultingGroupSize = (CurrGroupSize + getNumDecoderSlots(SU));
if (ResultingGroupSize < 3)
return (3 - ResultingGroupSize);
return -1;
``````````
</details>
https://github.com/llvm/llvm-project/pull/161899
More information about the llvm-commits
mailing list