[llvm] caeb13a - [AMDGPU] Allow SOP asm mnemonic to differ
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 1 16:00:16 PDT 2020
Author: Stanislav Mekhanoshin
Date: 2020-10-01T16:00:04-07:00
New Revision: caeb13aba853b949ca45627f023dbeac77c13b2f
URL: https://github.com/llvm/llvm-project/commit/caeb13aba853b949ca45627f023dbeac77c13b2f
DIFF: https://github.com/llvm/llvm-project/commit/caeb13aba853b949ca45627f023dbeac77c13b2f.diff
LOG: [AMDGPU] Allow SOP asm mnemonic to differ
Allows the creation of real SOP1 instructions with
assembler mnemonics that differ from their
pseudo-instruction mnemonics. The default behavior
keeps the mnemonics matching.
Corrects a subtarget label typo in a comment.
Authored By: Joe_Nash
Differential Revision: https://reviews.llvm.org/D88708
Added:
Modified:
llvm/lib/Target/AMDGPU/SOPInstructions.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SOPInstructions.td b/llvm/lib/Target/AMDGPU/SOPInstructions.td
index ecfe4c79063f..76257ed1584b 100644
--- a/llvm/lib/Target/AMDGPU/SOPInstructions.td
+++ b/llvm/lib/Target/AMDGPU/SOPInstructions.td
@@ -54,9 +54,9 @@ class SOP1_Pseudo <string opName, dag outs, dag ins,
bits<1> has_sdst = 1;
}
-class SOP1_Real<bits<8> op, SOP1_Pseudo ps> :
+class SOP1_Real<bits<8> op, SOP1_Pseudo ps, string real_name = ps.Mnemonic> :
InstSI <ps.OutOperandList, ps.InOperandList,
- ps.Mnemonic # " " # ps.AsmOperands, []>,
+ real_name # " " # ps.AsmOperands, []>,
Enc32 {
let isPseudo = 0;
@@ -1621,7 +1621,7 @@ defm S_SETREG_B32 : SOPK_Real32_gfx6_gfx7_gfx10<0x013>;
defm S_SETREG_IMM32_B32 : SOPK_Real64_gfx6_gfx7_gfx10<0x015>;
//===----------------------------------------------------------------------===//
-// GFX8, GFX9 (VI).
+// GFX8 (VI), GFX9.
//===----------------------------------------------------------------------===//
class Select_vi<string opName> :
More information about the llvm-commits
mailing list