[llvm-branch-commits] [llvm] [AArch64][llvm] Simplify and dedupe hint alias parsing code (NFC) (PR #196318)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jun 16 08:43:12 PDT 2026
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 origin/main HEAD --extensions h,cpp -- llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
index 3f5b9282a..c814117d0 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
@@ -1575,9 +1575,7 @@ unsigned AArch64InstPrinter::decodeIdentityHint(unsigned Value) {
return Value;
}
-unsigned AArch64InstPrinter::decodePHint(unsigned Value) {
- return Value - 48;
-}
+unsigned AArch64InstPrinter::decodePHint(unsigned Value) { return Value - 48; }
unsigned AArch64InstPrinter::decodeBTIHint(unsigned Value) {
return Value ^ 32;
``````````
</details>
https://github.com/llvm/llvm-project/pull/196318
More information about the llvm-branch-commits
mailing list