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/CodeGen/GlobalISel/LegalizerHelper.cpp --diff_from_common_commit
``````````
: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/CodeGen/GlobalISel/LegalizerHelper.cpp
b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
index cee544de9..f5cc27fca 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
@@ -8830,13 +8830,13 @@ LegalizerHelper::lowerFPTRUNC_F64_TO_F16(MachineInstr
&MI) {
// Subtract the fp64 exponent bias (1023) to get the real exponent and
// add the f16 bias (15) to get the biased exponent for the f16 format.
E = MIRBuilder.buildAdd(
- I32, E, MIRBuilder.buildConstant(I32, -ExpBiasf64 + ExpBiasf16));
+ I32, E, MIRBuilder.buildConstant(I32, -ExpBiasf64 + ExpBiasf16));
auto M = MIRBuilder.buildLShr(I32, UH, MIRBuilder.buildConstant(I32, 8));
M = MIRBuilder.buildAnd(I32, M, MIRBuilder.buildConstant(I32, 0xffe));
- auto MaskedSig = MIRBuilder.buildAnd(I32, UH,
- MIRBuilder.buildConstant(I32, 0x1ff));
+ auto MaskedSig =
+ MIRBuilder.buildAnd(I32, UH, MIRBuilder.buildConstant(I32, 0x1ff));
MaskedSig = MIRBuilder.buildOr(I32, MaskedSig, U);
auto Zero = MIRBuilder.buildConstant(I32, 0);
@@ -8862,8 +8862,8 @@ LegalizerHelper::lowerFPTRUNC_F64_TO_F16(MachineInstr
&MI) {
auto B = MIRBuilder.buildSMax(I32, OneSubExp, Zero);
B = MIRBuilder.buildSMin(I32, B, MIRBuilder.buildConstant(I32, 13));
- auto SigSetHigh = MIRBuilder.buildOr(I32, M,
- MIRBuilder.buildConstant(I32, 0x1000));
+ auto SigSetHigh =
+ MIRBuilder.buildOr(I32, M, MIRBuilder.buildConstant(I32, 0x1000));
auto D = MIRBuilder.buildLShr(I32, SigSetHigh, B);
auto D0 = MIRBuilder.buildShl(I32, D, B);
@@ -8890,13 +8890,13 @@ LegalizerHelper::lowerFPTRUNC_F64_TO_F16(MachineInstr
&MI) {
V1 = MIRBuilder.buildOr(I32, V0, V1);
V = MIRBuilder.buildAdd(I32, V, V1);
- auto CmpEGt30 = MIRBuilder.buildICmp(CmpInst::ICMP_SGT, S1,
- E, MIRBuilder.buildConstant(I32, 30));
+ auto CmpEGt30 = MIRBuilder.buildICmp(CmpInst::ICMP_SGT, S1, E,
+ MIRBuilder.buildConstant(I32, 30));
V = MIRBuilder.buildSelect(I32, CmpEGt30,
MIRBuilder.buildConstant(I32, 0x7c00), V);
- auto CmpEGt1039 = MIRBuilder.buildICmp(CmpInst::ICMP_EQ, S1,
- E, MIRBuilder.buildConstant(I32,
1039));
+ auto CmpEGt1039 = MIRBuilder.buildICmp(CmpInst::ICMP_EQ, S1, E,
+ MIRBuilder.buildConstant(I32, 1039));
V = MIRBuilder.buildSelect(I32, CmpEGt1039, I, V);
// Extract the sign bit.
``````````
</details>
https://github.com/llvm/llvm-project/pull/210099
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits