[llvm] [AArch64][llvm] Add support for optional register in `SYS` alias instructions (PR #153905)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 15 17:12:27 PDT 2025


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 HEAD~1 HEAD --extensions cpp,h -- llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
index 971e3453b..857a3c73f 100644
--- a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
+++ b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
@@ -414,7 +414,8 @@ struct SysAliasOptionalReg : SysAlias {
   bool OptionalReg;
   constexpr SysAliasOptionalReg(const char *N, uint16_t E, bool R, bool O)
       : SysAlias(N, E), NeedsReg(R), OptionalReg(O) {}
-  constexpr SysAliasOptionalReg(const char *N, uint16_t E, bool R, bool O, FeatureBitset F)
+  constexpr SysAliasOptionalReg(const char *N, uint16_t E, bool R, bool O,
+                                FeatureBitset F)
       : SysAlias(N, E, F), NeedsReg(R), OptionalReg(O) {}
 };
 

``````````

</details>


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


More information about the llvm-commits mailing list