[clang] [RISCV] Support __riscv_v_fixed_vlen for vbool types. (PR #76551)

via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 28 19:16:29 PST 2023


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 2dc50d28414c827b6723ae6b01c20a7fc3f38165 4e651e382ef68ae3f9ff7c9f9059ea1a1bddf892 -- clang/include/clang/AST/Type.h clang/lib/AST/ASTContext.cpp clang/lib/AST/ItaniumMangle.cpp clang/lib/AST/JSONNodeDumper.cpp clang/lib/AST/TextNodeDumper.cpp clang/lib/AST/Type.cpp clang/lib/AST/TypePrinter.cpp clang/lib/CodeGen/Targets/RISCV.cpp clang/lib/Sema/SemaExpr.cpp clang/lib/Sema/SemaType.cpp clang/test/CodeGen/attr-riscv-rvv-vector-bits-bitcast.c clang/test/CodeGen/attr-riscv-rvv-vector-bits-call.c clang/test/CodeGen/attr-riscv-rvv-vector-bits-cast.c clang/test/CodeGen/attr-riscv-rvv-vector-bits-codegen.c clang/test/CodeGen/attr-riscv-rvv-vector-bits-globals.c clang/test/CodeGen/attr-riscv-rvv-vector-bits-types.c clang/test/CodeGenCXX/riscv-mangle-rvv-fixed-vectors.cpp clang/test/Sema/attr-riscv-rvv-vector-bits.c
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/AST/Type.cpp b/clang/lib/AST/Type.cpp
index 774ca8e55f..66fc145b8f 100644
--- a/clang/lib/AST/Type.cpp
+++ b/clang/lib/AST/Type.cpp
@@ -2479,8 +2479,8 @@ bool Type::isRVVVLSBuiltinType() const {
                         IsFP, IsBF)                                            \
   case BuiltinType::Id:                                                        \
     return NF == 1;
-#define RVV_PREDICATE_TYPE(Name, Id, SingletonId, NumEls) \
-  case BuiltinType::Id: \
+#define RVV_PREDICATE_TYPE(Name, Id, SingletonId, NumEls)                      \
+  case BuiltinType::Id:                                                        \
     return true;
 #include "clang/Basic/RISCVVTypes.def"
     default:

``````````

</details>


https://github.com/llvm/llvm-project/pull/76551


More information about the cfe-commits mailing list