[llvm] [Mips] Print ABI register names in MIR (PR #228017)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 03:11:46 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/include/llvm/CodeGen/TargetRegisterInfo.h llvm/lib/CodeGen/MIRParser/MIParser.cpp llvm/lib/CodeGen/TargetRegisterInfo.cpp llvm/lib/Target/Mips/MipsRegisterInfo.cpp llvm/lib/Target/Mips/MipsRegisterInfo.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/include/llvm/CodeGen/TargetRegisterInfo.h b/llvm/include/llvm/CodeGen/TargetRegisterInfo.h
index ae0f5dc4d..5b531881c 100644
--- a/llvm/include/llvm/CodeGen/TargetRegisterInfo.h
+++ b/llvm/include/llvm/CodeGen/TargetRegisterInfo.h
@@ -1046,9 +1046,7 @@ public:
/// Return the name used to serialize a physical register in MIR. Targets
/// with ABI-dependent register names may override this for each subtarget.
- virtual StringRef getMIRRegName(MCRegister Reg) const {
- return getName(Reg);
- }
+ virtual StringRef getMIRRegName(MCRegister Reg) const { return getName(Reg); }
//===--------------------------------------------------------------------===//
/// Subtarget Hooks
``````````
</details>
https://github.com/llvm/llvm-project/pull/228017
More information about the llvm-commits
mailing list