From: Cullen Rhodes Date: Mon, 13 Sep 2021 09:46:04 +0000 (+0000) Subject: [Hexagon] NFC: Remove unused tblgen template args X-Git-Tag: upstream/15.0.7~31618 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97a6d76694e4f156945e3582a7798e0059c8a3ba;p=platform%2Fupstream%2Fllvm.git [Hexagon] NFC: Remove unused tblgen template args Identified in D109359. Reviewed By: kparzysz Differential Revision: https://reviews.llvm.org/D109604 --- diff --git a/llvm/lib/Target/Hexagon/HexagonInstrFormats.td b/llvm/lib/Target/Hexagon/HexagonInstrFormats.td index ef2b304..45adaf5 100644 --- a/llvm/lib/Target/Hexagon/HexagonInstrFormats.td +++ b/llvm/lib/Target/Hexagon/HexagonInstrFormats.td @@ -268,8 +268,7 @@ class OpcodeDuplex { let Inst{12-0} = ISubLo; } -class InstDuplex iClass, list pattern = [], - string cstr = ""> +class InstDuplex iClass, string cstr = ""> : Instruction, OpcodeDuplex { let Namespace = "Hexagon"; IType Type = TypeDUPLEX; // uses slot 0,1 diff --git a/llvm/lib/Target/Hexagon/HexagonPseudo.td b/llvm/lib/Target/Hexagon/HexagonPseudo.td index 20c9395..11f8af7 100644 --- a/llvm/lib/Target/Hexagon/HexagonPseudo.td +++ b/llvm/lib/Target/Hexagon/HexagonPseudo.td @@ -198,7 +198,7 @@ def PS_callr_nr: InstHexagon<(outs), (ins IntRegs:$Rs), let isCall = 1, hasSideEffects = 1, isExtended = 0, isExtendable = 1, opExtendable = 0, isCodeGenOnly = 1, BaseOpcode = "PS_call_nr", isExtentSigned = 1, opExtentAlign = 2 in -class Call_nr nbits, bit isPred, bit isFalse, dag iops, +class Call_nr nbits, bit isFalse, dag iops, InstrItinClass itin> : Pseudo<(outs), iops, "">, PredRel { bits<2> Pu; @@ -210,7 +210,7 @@ class Call_nr nbits, bit isPred, bit isFalse, dag iops, let Itinerary = itin; } -def PS_call_nr : Call_nr<24, 0, 0, (ins s32_0Imm:$Ii), J2_call.Itinerary>; +def PS_call_nr : Call_nr<24, 0, (ins s32_0Imm:$Ii), J2_call.Itinerary>; //def PS_call_nrt: Call_nr<17, 1, 0, (ins PredRegs:$Pu, s32_0Imm:$dst), // J2_callt.Itinerary>; //def PS_call_nrf: Call_nr<17, 1, 1, (ins PredRegs:$Pu, s32_0Imm:$dst), @@ -267,7 +267,7 @@ let isMoveImm = 1, isAsCheapAsAMove = 1, isReMaterializable = 1, class CondStr { string S = "if (" # !if(True,"","!") # CReg # !if(New,".new","") # ") "; } -class JumpOpcStr { +class JumpOpcStr { string S = Mnemonic # !if(Taken, ":t", ":nt"); } let isBranch = 1, isIndirectBranch = 1, Defs = [PC], isPredicated = 1, @@ -275,7 +275,7 @@ let isBranch = 1, isIndirectBranch = 1, Defs = [PC], isPredicated = 1, class T_JMPr_c : InstHexagon<(outs), (ins PredRegs:$src, IntRegs:$dst), CondStr<"$src", !if(PredNot,0,1), isPredNew>.S # - JumpOpcStr<"jumpr", isPredNew, isTak>.S # " $dst", + JumpOpcStr<"jumpr", isTak>.S # " $dst", [], "", rootInst.Itinerary, rootInst.Type>, OpcodeHexagon { let isTaken = isTak;