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,h,c -- 
clang/lib/Headers/hmx_hexagon_protos.h 
clang/test/CodeGen/builtins-hexagon-hmx.c 
clang/test/Headers/hexagon-hmx-headers.c 
llvm/lib/Target/Hexagon/HexagonMergeActivateWeight.cpp 
clang/lib/Basic/Targets/Hexagon.cpp clang/lib/Basic/Targets/Hexagon.h 
clang/test/Driver/hexagon-hmx.c clang/test/Preprocessor/hexagon-predefines.c 
llvm/lib/Target/Hexagon/Hexagon.h 
llvm/lib/Target/Hexagon/HexagonHazardRecognizer.cpp 
llvm/lib/Target/Hexagon/HexagonHazardRecognizer.h 
llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp 
llvm/lib/Target/Hexagon/HexagonInstrInfo.h 
llvm/lib/Target/Hexagon/HexagonSubtarget.cpp 
llvm/lib/Target/Hexagon/HexagonSubtarget.h 
llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp 
llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.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/clang/lib/Headers/hmx_hexagon_protos.h 
b/clang/lib/Headers/hmx_hexagon_protos.h
index 6bc73c8cf..4cd1af3a2 100644
--- a/clang/lib/Headers/hmx_hexagon_protos.h
+++ b/clang/lib/Headers/hmx_hexagon_protos.h
@@ -50,9 +50,8 @@
 
 /* ==========================================================================
    Assembly Syntax:       activation.hf=mxmem(Rs32,Rt32):deep
-   C Intrinsic Prototype: void Q6_activation_hf_mxmem_RR_deep(UWord32 Rs, 
Word32 Rt)
-   Instruction Type:      LD
-   Execution Slots:       SLOT01
+   C Intrinsic Prototype: void Q6_activation_hf_mxmem_RR_deep(UWord32 Rs, 
Word32
+   Rt) Instruction Type:      LD Execution Slots:       SLOT01
    ========================================================================== 
*/
 
 #define Q6_activation_hf_mxmem_RR_deep __builtin_HEXAGON_M8_mxmem_sm_act_hf
@@ -77,12 +76,12 @@
 
 /* ==========================================================================
    Assembly Syntax:       activation.hf=mxmem(Rs32,Rt32):single
-   C Intrinsic Prototype: void Q6_activation_hf_mxmem_RR_single(UWord32 Rs, 
Word32 Rt)
-   Instruction Type:      LD
-   Execution Slots:       SLOT01
+   C Intrinsic Prototype: void Q6_activation_hf_mxmem_RR_single(UWord32 Rs,
+   Word32 Rt) Instruction Type:      LD Execution Slots:       SLOT01
    ========================================================================== 
*/
 
-#define Q6_activation_hf_mxmem_RR_single 
__builtin_HEXAGON_M8_mxmems_blk_sm_act_hf
+#define Q6_activation_hf_mxmem_RR_single                                       
\
+  __builtin_HEXAGON_M8_mxmems_blk_sm_act_hf
 
 #if __HMX_ARCH__ >= 73
 /* ==========================================================================
diff --git a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp 
b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp
index 3815bd297..1e26c1a31 100644
--- a/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonInstrInfo.cpp
@@ -2401,7 +2401,7 @@ bool HexagonInstrInfo::isHMXWeightInstr(const 
MachineInstr &MI) const {
 bool HexagonInstrInfo::isActivateWeightPair(const MachineInstr &MIa,
                                             const MachineInstr &MIb) const {
   return (isHMXActivateInstr(MIa) && isHMXWeightInstr(MIb)) ||
-          (isHMXWeightInstr(MIa) && isHMXActivateInstr(MIb));
+         (isHMXWeightInstr(MIa) && isHMXActivateInstr(MIb));
 }
 
 bool HexagonInstrInfo::isEndLoopN(unsigned Opcode) const {

``````````

</details>


https://github.com/llvm/llvm-project/pull/243572
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to