[llvm] [RISCV][GISEL] Add support for lowerFormalArguments that contain scalable vector types (PR #70882)

via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 13:44:49 PDT 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 1abd8d1a8d962a14ca96e19c0f6da4f9ac394d0a 67f562ea9c35a0ab123ba67a54a4007c33906043 -- llvm/include/llvm/CodeGen/TargetRegisterInfo.h llvm/lib/CodeGen/LowLevelType.cpp llvm/lib/CodeGen/MachineVerifier.cpp llvm/lib/CodeGen/TargetRegisterInfo.cpp llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp b/llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp
index 0f4940794ffa..a0813e1cd280 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp
+++ b/llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp
@@ -401,7 +401,8 @@ bool RISCVCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder,
   const RISCVSubtarget &Subtarget =
       MIRBuilder.getMF().getSubtarget<RISCVSubtarget>();
   for (auto &Arg : F.args()) {
-    if (!isSupportedArgumentType(Arg.getType(), Subtarget, /*IsLowerArgs*/true))
+    if (!isSupportedArgumentType(Arg.getType(), Subtarget,
+                                 /*IsLowerArgs*/ true))
       return false;
   }
 

``````````

</details>


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


More information about the llvm-commits mailing list