[llvm] [RISCV][GISEL] Add IRTranslation for shufflevector on scalable vector types (PR #80378)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 18:16:50 PST 2024


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 59eadcd28f787a98a2fd5f057beb3df7950654ee 0b1db1494e8309a7c42d2aa99c5a20dfd507cd5d -- llvm/include/llvm/CodeGen/GlobalISel/Utils.h llvm/lib/CodeGen/GlobalISel/CallLowering.cpp llvm/lib/CodeGen/GlobalISel/Utils.cpp llvm/lib/CodeGen/MachineVerifier.cpp llvm/lib/Target/RISCV/RISCVISelLowering.cpp llvm/unittests/CodeGen/GlobalISel/GISelUtilsTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index f72584839f..ef1cefc487 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -1632,7 +1632,7 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
 
     if (Src0Ty.isScalableVector()) {
       if (!llvm::all_of(MaskIdxes,
-                       [&MaskIdxes](int M) { return M == MaskIdxes[0]; }))
+                        [&MaskIdxes](int M) { return M == MaskIdxes[0]; }))
         report("Elements of a scalable G_SHUFFLE_VECTOR mask must match", MI);
       if (MaskIdxes[0] != 0 && MaskIdxes[0] != -1)
         report("Elements of a scalable G_SHUFFLE_VECTOR mask be zero or undef",

``````````

</details>


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


More information about the llvm-commits mailing list