Skip to content

[PowerPC][NFC] revert changes to dmrp register class name #142434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

lei137
Copy link
Contributor

@lei137 lei137 commented Jun 2, 2025

No description provided.

@lei137 lei137 requested a review from maryammo June 2, 2025 17:14
@llvmbot
Copy link
Member

llvmbot commented Jun 2, 2025

@llvm/pr-subscribers-backend-powerpc

Author: Lei Huang (lei137)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/142434.diff

2 Files Affected:

  • (modified) llvm/lib/Target/PowerPC/PPCInstrFutureMMA.td (+3-3)
  • (modified) llvm/lib/Target/PowerPC/PPCRegisterInfo.td (+1-1)
diff --git a/llvm/lib/Target/PowerPC/PPCInstrFutureMMA.td b/llvm/lib/Target/PowerPC/PPCInstrFutureMMA.td
index 71c6eac0860ea..ef8b27f9b8d36 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrFutureMMA.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrFutureMMA.td
@@ -481,7 +481,7 @@ let Predicates = [IsISAFuture] in {
                      RegConstraint<"$ATi = $AT">, NoEncode<"$ATi">;
 
   def DMSHA3HASH :
-    XForm_ATp2_SR5<31, 15, 177, (outs dmrprc:$ATp), (ins dmrprc:$ATpi , u5imm:$SR),
+    XForm_ATp2_SR5<31, 15, 177, (outs dmrp:$ATp), (ins dmrp:$ATpi , u5imm:$SR),
                    "dmsha3hash $ATp, $SR",
                    [(set v2048i1:$ATp, (int_ppc_mma_dmsha3hash v2048i1:$ATpi, timm:$SR))]>,
                    RegConstraint<"$ATpi = $ATp">, NoEncode<"$ATpi">;
@@ -626,10 +626,10 @@ let Predicates = [IsISAFuture] in {
                   (DMSHA2HASH dmr:$AT, dmr:$AB, 1)>;
 
   def : InstAlias<"dmsha3dw $ATp",
-                  (DMSHA3HASH dmrprc:$ATp, 0)>;
+                  (DMSHA3HASH dmrp:$ATp, 0)>;
 
   def : InstAlias<"dmcryshash $ATp",
-                  (DMSHA3HASH dmrprc:$ATp, 12)>;
+                  (DMSHA3HASH dmrp:$ATp, 12)>;
 
   def : InstAlias<"dmxxsha3512pad $AT, $XB, $E",
                   (DMXXSHAPAD dmr:$AT, vsrc:$XB, 0, u1imm:$E, 0)>;
diff --git a/llvm/lib/Target/PowerPC/PPCRegisterInfo.td b/llvm/lib/Target/PowerPC/PPCRegisterInfo.td
index 359adc31eb10b..8b690b7b833b3 100644
--- a/llvm/lib/Target/PowerPC/PPCRegisterInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCRegisterInfo.td
@@ -1140,6 +1140,6 @@ def PPCRegDMRpRCAsmOperand : AsmOperandClass {
   let PredicateMethod = "isDMRpRegNumber";
 }
 
-def dmrprc : RegisterOperand<DMRpRC> {
+def dmrp : RegisterOperand<DMRpRC> {
   let ParserMatchClass = PPCRegDMRpRCAsmOperand;
 }

Copy link
Contributor

@maryammo maryammo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@lei137 lei137 merged commit 31c022a into llvm:main Jun 2, 2025
8 of 12 checks passed
sallto pushed a commit to sallto/llvm-project that referenced this pull request Jun 3, 2025
DhruvSrivastavaX pushed a commit to DhruvSrivastavaX/lldb-for-aix that referenced this pull request Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants