[llvm] [ARM] Change the type of CC and VCC code in `splitMnemonic`. (PR #83413)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 29 07:56:39 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 fb3e4e78c65ea22b5eda1b4f7e2b5a5e8c6dd5b4 55a6345bca833b889c67194b658ec169605c80f4 -- llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 37e95ad40e..efec163c6e 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -6384,7 +6384,8 @@ StringRef ARMAsmParser::splitMnemonic(StringRef Mnemonic, StringRef ExtraToken,
       Mnemonic != "vqmovnt" && Mnemonic != "vqmovunt" &&
       Mnemonic != "vqmovnt" && Mnemonic != "vmovnt" && Mnemonic != "vqdmullt" &&
       Mnemonic != "vpnot" && Mnemonic != "vcvtt" && Mnemonic != "vcvt") {
-    unsigned VCC = ARMVectorCondCodeFromString(Mnemonic.substr(Mnemonic.size()-1));
+    unsigned VCC =
+        ARMVectorCondCodeFromString(Mnemonic.substr(Mnemonic.size() - 1));
     if (VCC != ~0U) {
       Mnemonic = Mnemonic.slice(0, Mnemonic.size()-1);
       VPTPredicationCode = static_cast<ARMVCC::VPTCodes>(VCC);

``````````

</details>


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


More information about the llvm-commits mailing list