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 9b1f905b483a2b42e4681bbef42b2641f8ccf5ad c389db7ffd143fbf462aafc0e1897f96c7478fad --extensions h,cpp -- clang/lib/CodeGen/BuiltinTargets/AArch64.cpp clang/lib/CodeGen/BuiltinTargets/AMDGPU.cpp clang/lib/CodeGen/BuiltinTargets/Hexagon.cpp clang/lib/CodeGen/BuiltinTargets/NVPTX.cpp clang/lib/CodeGen/BuiltinTargets/PPC.cpp clang/lib/CodeGen/BuiltinTargets/RISCV.cpp clang/lib/CodeGen/BuiltinTargets/SPIR.cpp clang/lib/CodeGen/BuiltinTargets/SystemZ.cpp clang/lib/CodeGen/BuiltinTargets/WebAssembly.cpp clang/lib/CodeGen/BuiltinTargets/X86.cpp clang/lib/CodeGen/CGBuiltin.h clang/lib/CodeGen/CGBuiltin.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/clang/lib/CodeGen/BuiltinTargets/AArch64.cpp b/clang/lib/CodeGen/BuiltinTargets/AArch64.cpp index 1b4907b947..ce4ee6920e 100644 --- a/clang/lib/CodeGen/BuiltinTargets/AArch64.cpp +++ b/clang/lib/CodeGen/BuiltinTargets/AArch64.cpp @@ -578,19 +578,15 @@ struct ARMVectorIntrinsicInfo { } // end anonymous namespace #define NEONMAP0(NameBase) \ - { #NameBase, NEON::BI__builtin_neon_##NameBase, 0, 0, 0 } + {#NameBase, NEON::BI__builtin_neon_##NameBase, 0, 0, 0} #define NEONMAP1(NameBase, LLVMIntrinsic, TypeModifier) \ - { \ - #NameBase, NEON::BI__builtin_neon_##NameBase, Intrinsic::LLVMIntrinsic, 0, \ - TypeModifier \ - } + {#NameBase, NEON::BI__builtin_neon_##NameBase, Intrinsic::LLVMIntrinsic, 0, \ + TypeModifier} #define NEONMAP2(NameBase, LLVMIntrinsic, AltLLVMIntrinsic, TypeModifier) \ - { \ - #NameBase, NEON::BI__builtin_neon_##NameBase, Intrinsic::LLVMIntrinsic, \ - Intrinsic::AltLLVMIntrinsic, TypeModifier \ - } + {#NameBase, NEON::BI__builtin_neon_##NameBase, Intrinsic::LLVMIntrinsic, \ + Intrinsic::AltLLVMIntrinsic, TypeModifier} static const ARMVectorIntrinsicInfo ARMSIMDIntrinsicMap[] = { NEONMAP1(__a32_vcvt_bf16_f32, arm_neon_vcvtfp2bf, 0), @@ -1937,13 +1933,11 @@ static const std::pair<unsigned, unsigned> NEONEquivalentIntrinsicMap[] = { #undef NEONMAP2 #define SVEMAP1(NameBase, LLVMIntrinsic, TypeModifier) \ - { \ - #NameBase, SVE::BI__builtin_sve_##NameBase, Intrinsic::LLVMIntrinsic, 0, \ - TypeModifier \ - } + {#NameBase, SVE::BI__builtin_sve_##NameBase, Intrinsic::LLVMIntrinsic, 0, \ + TypeModifier} #define SVEMAP2(NameBase, TypeModifier) \ - { #NameBase, SVE::BI__builtin_sve_##NameBase, 0, 0, TypeModifier } + {#NameBase, SVE::BI__builtin_sve_##NameBase, 0, 0, TypeModifier} static const ARMVectorIntrinsicInfo AArch64SVEIntrinsicMap[] = { #define GET_SVE_LLVM_INTRINSIC_MAP #include "clang/Basic/BuiltinsAArch64NeonSVEBridge_cg.def" @@ -1955,13 +1949,11 @@ static const ARMVectorIntrinsicInfo AArch64SVEIntrinsicMap[] = { #undef SVEMAP2 #define SMEMAP1(NameBase, LLVMIntrinsic, TypeModifier) \ - { \ - #NameBase, SME::BI__builtin_sme_##NameBase, Intrinsic::LLVMIntrinsic, 0, \ - TypeModifier \ - } + {#NameBase, SME::BI__builtin_sme_##NameBase, Intrinsic::LLVMIntrinsic, 0, \ + TypeModifier} #define SMEMAP2(NameBase, TypeModifier) \ - { #NameBase, SME::BI__builtin_sme_##NameBase, 0, 0, TypeModifier } + {#NameBase, SME::BI__builtin_sme_##NameBase, 0, 0, TypeModifier} static const ARMVectorIntrinsicInfo AArch64SMEIntrinsicMap[] = { #define GET_SME_LLVM_INTRINSIC_MAP #include "clang/Basic/arm_sme_builtin_cg.inc" diff --git a/clang/lib/CodeGen/BuiltinTargets/NVPTX.cpp b/clang/lib/CodeGen/BuiltinTargets/NVPTX.cpp index d73ec27385..73b7177474 100644 --- a/clang/lib/CodeGen/BuiltinTargets/NVPTX.cpp +++ b/clang/lib/CodeGen/BuiltinTargets/NVPTX.cpp @@ -36,7 +36,7 @@ struct NVPTXMmaLdstInfo { #define MMA_INTR(geom_op_type, layout) \ Intrinsic::nvvm_wmma_##geom_op_type##_##layout##_stride #define MMA_LDST(n, geom_op_type) \ - { n, MMA_INTR(geom_op_type, col), MMA_INTR(geom_op_type, row) } + {n, MMA_INTR(geom_op_type, col), MMA_INTR(geom_op_type, row)} static NVPTXMmaLdstInfo getNVPTXMmaLdstInfo(unsigned BuiltinID) { switch (BuiltinID) { `````````` </details> https://github.com/llvm/llvm-project/pull/132252 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits