diff --git a/llvm/lib/Target/AMDGPU/VOP2Instructions.td b/llvm/lib/Target/AMDGPU/VOP2Instructions.td index 6ad23bc7497a2f..6c58769316cbf7 100644 --- a/llvm/lib/Target/AMDGPU/VOP2Instructions.td +++ b/llvm/lib/Target/AMDGPU/VOP2Instructions.td @@ -1278,20 +1278,20 @@ let AssemblerPredicate = isGFX6GFX7, DecoderNamespace = "GFX6GFX7" in { VOP2_Real(NAME), SIEncodingFamily.SI>, VOP2_MADKe(NAME).Pfl>; } - multiclass VOP2_Real_e32_gfx6_gfx7 op, string PseudoName = NAME> { + multiclass VOP2_Real_e32_gfx6_gfx7 op, string opName = NAME> { def _e32_gfx6_gfx7 : - VOP2_Real(PseudoName#"_e32"), SIEncodingFamily.SI>, - VOP2e(PseudoName#"_e32").Pfl>; + VOP2_Real(opName#"_e32"), SIEncodingFamily.SI>, + VOP2e(opName#"_e32").Pfl>; } - multiclass VOP2_Real_e64_gfx6_gfx7 op, string PseudoName = NAME> { + multiclass VOP2_Real_e64_gfx6_gfx7 op, string opName = NAME> { def _e64_gfx6_gfx7 : - VOP3_Real(PseudoName#"_e64"), SIEncodingFamily.SI>, - VOP3e_gfx6_gfx7<{1, 0, 0, op{5-0}}, !cast(PseudoName#"_e64").Pfl>; + VOP3_Real(opName#"_e64"), SIEncodingFamily.SI>, + VOP3e_gfx6_gfx7<{1, 0, 0, op{5-0}}, !cast(opName#"_e64").Pfl>; } - multiclass VOP2be_Real_e64_gfx6_gfx7 op, string PseudoName = NAME> { + multiclass VOP2be_Real_e64_gfx6_gfx7 op, string opName = NAME> { def _e64_gfx6_gfx7 : - VOP3_Real(PseudoName#"_e64"), SIEncodingFamily.SI>, - VOP3be_gfx6_gfx7<{1, 0, 0, op{5-0}}, !cast(PseudoName#"_e64").Pfl>; + VOP3_Real(opName#"_e64"), SIEncodingFamily.SI>, + VOP3be_gfx6_gfx7<{1, 0, 0, op{5-0}}, !cast(opName#"_e64").Pfl>; } } // End AssemblerPredicate = isGFX6GFX7, DecoderNamespace = "GFX6GFX7" @@ -1308,16 +1308,16 @@ multiclass VOP2be_Real_gfx6_gfx7 op> : VOP2_Real_e32_gfx6_gfx7, VOP2be_Real_e64_gfx6_gfx7; multiclass VOP2be_Real_gfx6_gfx7_with_name op, - string PseudoName, string asmName> { - defvar ps32 = !cast(PseudoName#"_e32"); - defvar ps64 = !cast(PseudoName#"_e64"); + string opName, string asmName> { + defvar ps32 = !cast(opName#"_e32"); + defvar ps64 = !cast(opName#"_e64"); let AsmString = asmName # ps32.AsmOperands in { - defm "" : VOP2_Real_e32_gfx6_gfx7; + defm "" : VOP2_Real_e32_gfx6_gfx7; } let AsmString = asmName # ps64.AsmOperands in { - defm "" : VOP2be_Real_e64_gfx6_gfx7; + defm "" : VOP2be_Real_e64_gfx6_gfx7; } }