From 62c246eda24c362f1aa5a71f2cf11f9df5642460 Mon Sep 17 00:00:00 2001 From: Carl Ritson Date: Mon, 14 Dec 2020 20:01:49 +0900 Subject: [PATCH] [AMDGPU][NFC] Rename opsel/opsel_hi/neg_lo/neg_hi with suffix 0 These parameters set a default value of 0, so I believe they should include a 0 suffix. This allows for versions which do not set a default value in future. Reviewed By: foad Differential Revision: https://reviews.llvm.org/D93187 --- llvm/lib/Target/AMDGPU/SIInstrInfo.td | 32 ++++++++++----------- llvm/lib/Target/AMDGPU/VOP3Instructions.td | 2 +- llvm/lib/Target/AMDGPU/VOP3PInstructions.td | 2 +- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.td b/llvm/lib/Target/AMDGPU/SIInstrInfo.td index 295030d80240..5a6c81a0c89b 100644 --- a/llvm/lib/Target/AMDGPU/SIInstrInfo.td +++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.td @@ -1136,10 +1136,10 @@ def src0_sel : NamedOperandU32<"SDWASrc0Sel", NamedMatchClass<"SDWASrc0Sel">>; def src1_sel : NamedOperandU32<"SDWASrc1Sel", NamedMatchClass<"SDWASrc1Sel">>; def dst_unused : NamedOperandU32<"SDWADstUnused", NamedMatchClass<"SDWADstUnused">>; -def op_sel : NamedOperandU32Default0<"OpSel", NamedMatchClass<"OpSel">>; -def op_sel_hi : NamedOperandU32Default0<"OpSelHi", NamedMatchClass<"OpSelHi">>; -def neg_lo : NamedOperandU32Default0<"NegLo", NamedMatchClass<"NegLo">>; -def neg_hi : NamedOperandU32Default0<"NegHi", NamedMatchClass<"NegHi">>; +def op_sel0 : NamedOperandU32Default0<"OpSel", NamedMatchClass<"OpSel">>; +def op_sel_hi0 : NamedOperandU32Default0<"OpSelHi", NamedMatchClass<"OpSelHi">>; +def neg_lo0 : NamedOperandU32Default0<"NegLo", NamedMatchClass<"NegLo">>; +def neg_hi0 : NamedOperandU32Default0<"NegHi", NamedMatchClass<"NegHi">>; def blgp : NamedOperandU32<"BLGP", NamedMatchClass<"BLGP">>; def cbsz : NamedOperandU32<"CBSZ", NamedMatchClass<"CBSZ">>; @@ -1677,25 +1677,25 @@ class getInsVOP3P , VOP3 let InsVOP3OpSel = (ins IntOpSelMods:$src0_modifiers, VRegSrc_32:$src0, IntOpSelMods:$src1_modifiers, SCSrc_b32:$src1, IntOpSelMods:$src2_modifiers, SCSrc_b32:$src2, - VGPR_32:$vdst_in, op_sel:$op_sel); + VGPR_32:$vdst_in, op_sel0:$op_sel); let HasClamp = 0; let HasOMod = 0; } diff --git a/llvm/lib/Target/AMDGPU/VOP3PInstructions.td b/llvm/lib/Target/AMDGPU/VOP3PInstructions.td index 2a9992087ca9..09346f400d71 100644 --- a/llvm/lib/Target/AMDGPU/VOP3PInstructions.td +++ b/llvm/lib/Target/AMDGPU/VOP3PInstructions.td @@ -39,7 +39,7 @@ class VOP3_VOP3PInst