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/CodeGen/TargetBuiltins/RISCV.cpp 
clang/lib/Headers/riscv_packed_simd.h clang/test/CodeGen/RISCV/rvp-intrinsics.c 
cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c 
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp 
llvm/lib/Target/RISCV/RISCVISelLowering.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/riscv_packed_simd.h 
b/clang/lib/Headers/riscv_packed_simd.h
index aaf7112d5..fb829996a 100644
--- a/clang/lib/Headers/riscv_packed_simd.h
+++ b/clang/lib/Headers/riscv_packed_simd.h
@@ -285,7 +285,7 @@ typedef uint32_t uint32x2_t 
__attribute__((__vector_size__(8)));
     return builtin(__rs1, __rs2);                                              
\
   }
 
-#define __packed_ternary_builtin(name, rty, ty, builtin)                       
 \
+#define __packed_ternary_builtin(name, rty, ty, builtin)                       
\
   static __inline__ rty __DEFAULT_FN_ATTRS __riscv_##name(rty __rd, ty __rs1,  
\
                                                           ty __rs2) {          
\
     return builtin(__rd, __rs1, __rs2);                                        
\
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp 
b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 34b5d23ae..072098a47 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -17108,8 +17108,8 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
       EVT VT = N->getValueType(0);
       if (!Subtarget.is64Bit() || VT != MVT::i32)
         return;
-      SDValue Rd = DAG.getBuildVector(MVT::v2i32, DL,
-                                      {N->getOperand(1), 
DAG.getUNDEF(MVT::i32)});
+      SDValue Rd = DAG.getBuildVector(
+          MVT::v2i32, DL, {N->getOperand(1), DAG.getUNDEF(MVT::i32)});
       auto WidenSrc = [&](SDValue V) {
         return DAG.getNode(ISD::CONCAT_VECTORS, DL, MVT::v4i16,
                            {V, DAG.getUNDEF(MVT::v2i16)});

``````````

</details>


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

Reply via email to