From: Craig Topper Date: Mon, 7 Jan 2013 06:14:20 +0000 (+0000) Subject: Remove more unnecessary # operators with nothing to paste proceeding them. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a812641879b89d636bd2e72b0cba8c13d84be709;p=oota-llvm.git Remove more unnecessary # operators with nothing to paste proceeding them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171702 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Hexagon/HexagonInstrInfo.td b/lib/Target/Hexagon/HexagonInstrInfo.td index a8824cfe078..8b183b967cd 100644 --- a/lib/Target/Hexagon/HexagonInstrInfo.td +++ b/lib/Target/Hexagon/HexagonInstrInfo.td @@ -98,7 +98,7 @@ let isExtendable = 1, opExtendable = 2, isExtentSigned = 1, opExtentBits = 8 in multiclass ALU32_Pbase { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME : ALU32_rr<(outs IntRegs:$dst), (ins PredRegs:$src1, IntRegs:$src2, IntRegs: $src3), !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew,".new) $dst = ", @@ -107,7 +107,7 @@ multiclass ALU32_Pbase { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : ALU32_Pbase; // Predicate new defm _cdn#NAME : ALU32_Pbase; @@ -144,7 +144,7 @@ defm SUB_rr : ALU32_base<"sub", "SUB", sub>, ImmRegRel, PredNewRel; // ALU32/ALU (ADD with register-immediate form) //===----------------------------------------------------------------------===// multiclass ALU32ri_Pbase { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME : ALU32_ri<(outs IntRegs:$dst), (ins PredRegs:$src1, IntRegs:$src2, s8Ext: $src3), !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew,".new) $dst = ", @@ -153,7 +153,7 @@ multiclass ALU32ri_Pbase { } multiclass ALU32ri_Pred { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : ALU32ri_Pbase; // Predicate new defm _cdn#NAME : ALU32ri_Pbase; @@ -222,7 +222,7 @@ def SUB_ri : ALU32_ri<(outs IntRegs:$dst), multiclass TFR_Pred { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { def _c#NAME : ALU32_rr<(outs IntRegs:$dst), (ins PredRegs:$src1, IntRegs:$src2), !if(PredNot, "if (!$src1", "if ($src1")#") $dst = $src2", @@ -252,7 +252,7 @@ multiclass TFR_base { } multiclass TFR64_Pred { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { def _c#NAME : ALU32_rr<(outs DoubleRegs:$dst), (ins PredRegs:$src1, DoubleRegs:$src2), !if(PredNot, "if (!$src1", "if ($src1")#") $dst = $src2", @@ -283,7 +283,7 @@ multiclass TFR64_base { multiclass TFRI_Pred { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { def _c#NAME : ALU32_ri<(outs IntRegs:$dst), (ins PredRegs:$src1, s12Ext:$src2), !if(PredNot, "if (!$src1", "if ($src1")#") $dst = #$src2", @@ -845,16 +845,16 @@ let isReturn = 1, isTerminator = 1, isBarrier = 1, isPredicated = 1, // Load -- MEMri operand multiclass LD_MEMri_Pbase { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME : LDInst2<(outs RC:$dst), (ins PredRegs:$src1, MEMri:$addr), - #!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", + !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", ") ")#"$dst = "#mnemonic#"($addr)", []>; } multiclass LD_MEMri_Pred { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : LD_MEMri_Pbase; // Predicate new defm _cdn#NAME : LD_MEMri_Pbase; @@ -911,17 +911,17 @@ def : Pat < (i64 (load ADDRriS11_3:$addr)), // Load - Base with Immediate offset addressing mode multiclass LD_Idxd_Pbase { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME : LDInst2<(outs RC:$dst), (ins PredRegs:$src1, IntRegs:$src2, predImmOp:$src3), - #!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", + !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", ") ")#"$dst = "#mnemonic#"($src2+#$src3)", []>; } multiclass LD_Idxd_Pred { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : LD_Idxd_Pbase; // Predicate new defm _cdn#NAME : LD_Idxd_Pbase; @@ -1005,10 +1005,10 @@ def LDd_GP : LDInst2<(outs DoubleRegs:$dst), multiclass LD_PostInc_Pbase { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME : LDInst2PI<(outs RC:$dst, IntRegs:$dst2), (ins PredRegs:$src1, IntRegs:$src2, ImmOp:$offset), - #!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", + !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", ") ")#"$dst = "#mnemonic#"($src2++#$offset)", [], "$src2 = $dst2">; @@ -1016,7 +1016,7 @@ multiclass LD_PostInc_Pbase { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : LD_PostInc_Pbase; // Predicate new let Predicates = [HasV4T], validSubTargets = HasV4SubT in @@ -1440,7 +1440,7 @@ def POST_STdri_cNotPt : STInst2PI<(outs IntRegs:$dst), //===----------------------------------------------------------------------===// multiclass ST_MEMri_Pbase { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME : STInst2<(outs), (ins PredRegs:$src1, MEMri:$addr, RC: $src2), !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", @@ -1449,7 +1449,7 @@ multiclass ST_MEMri_Pbase { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : ST_MEMri_Pbase; // Predicate new @@ -1467,7 +1467,7 @@ multiclass ST_MEMri; let opExtendable = 2, isExtentSigned = 0, opExtentBits = PredImmBits, @@ -1506,7 +1506,7 @@ def : Pat<(store (i64 DoubleRegs:$src1), ADDRriS11_3:$addr), //===----------------------------------------------------------------------===// multiclass ST_Idxd_Pbase { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME : STInst2<(outs), (ins PredRegs:$src1, IntRegs:$src2, predImmOp:$src3, RC: $src4), !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", @@ -1516,7 +1516,7 @@ multiclass ST_Idxd_Pbase { - let PredSense = #!if(PredNot, "false", "true"), isPredicated = 1 in { + let PredSense = !if(PredNot, "false", "true"), isPredicated = 1 in { defm _c#NAME : ST_Idxd_Pbase; // Predicate new @@ -1535,7 +1535,7 @@ multiclass ST_Idxd; let opExtendable = 2, isExtentSigned = 0, opExtentBits = PredImmBits in { diff --git a/lib/Target/Hexagon/HexagonInstrInfoV4.td b/lib/Target/Hexagon/HexagonInstrInfoV4.td index bfe9bb9a762..372de9a8b28 100644 --- a/lib/Target/Hexagon/HexagonInstrInfoV4.td +++ b/lib/Target/Hexagon/HexagonInstrInfoV4.td @@ -418,7 +418,7 @@ def LDrid_indexed_V4 : LDInst<(outs DoubleRegs:$dst), // addressing mode multiclass ld_idxd_shl_pbase { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME : LDInst2<(outs RC:$dst), (ins PredRegs:$src1, IntRegs:$src2, IntRegs:$src3, u2Imm:$offset), !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", @@ -427,7 +427,7 @@ multiclass ld_idxd_shl_pbase { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : ld_idxd_shl_pbase; // Predicate new defm _cdn#NAME : ld_idxd_shl_pbase; @@ -1518,7 +1518,7 @@ def STriw_abs_set_V4 : STInst2<(outs IntRegs:$dst1), // mode multiclass ST_Idxd_shl_Pbase { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME : STInst2<(outs), (ins PredRegs:$src1, IntRegs:$src2, IntRegs:$src3, u2Imm:$src4, RC:$src5), @@ -1529,7 +1529,7 @@ multiclass ST_Idxd_shl_Pbase { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : ST_Idxd_shl_Pbase; // Predicate new defm _cdn#NAME : ST_Idxd_shl_Pbase; @@ -1542,7 +1542,7 @@ multiclass ST_Idxd_shl { let isPredicable = 1 in def NAME#_V4 : STInst2<(outs), (ins IntRegs:$src1, IntRegs:$src2, u2Imm:$src3, RC:$src4), - #mnemonic#"($src1+$src2<<#$src3) = $src4", + mnemonic#"($src1+$src2<<#$src3) = $src4", []>, Requires<[HasV4T]>; @@ -1557,7 +1557,7 @@ multiclass ST_Idxd_shl { // addressing mode. multiclass ST_Idxd_shl_Pbase_nv { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME#_nv_V4 : NVInst_V4<(outs), (ins PredRegs:$src1, IntRegs:$src2, IntRegs:$src3, u2Imm:$src4, RC:$src5), @@ -1568,7 +1568,7 @@ multiclass ST_Idxd_shl_Pbase_nv { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : ST_Idxd_shl_Pbase_nv; // Predicate new defm _cdn#NAME : ST_Idxd_shl_Pbase_nv; @@ -1581,7 +1581,7 @@ multiclass ST_Idxd_shl_nv { let isPredicable = 1 in def NAME#_nv_V4 : NVInst_V4<(outs), (ins IntRegs:$src1, IntRegs:$src2, u2Imm:$src3, RC:$src4), - #mnemonic#"($src1+$src2<<#$src3) = $src4.new", + mnemonic#"($src1+$src2<<#$src3) = $src4.new", []>, Requires<[HasV4T]>; @@ -1682,17 +1682,17 @@ def POST_STdri_cdnNotPt_V4 : STInst2PI<(outs IntRegs:$dst), // addressing mode and immediate stored value. multiclass ST_Imm_Pbase { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME : STInst2<(outs), (ins PredRegs:$src1, IntRegs:$src2, OffsetOp:$src3, s6Ext:$src4), - #!if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", + !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", ") ")#mnemonic#"($src2+#$src3) = #$src4", []>, Requires<[HasV4T]>; } multiclass ST_Imm_Pred { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : ST_Imm_Pbase; // Predicate new defm _cdn#NAME : ST_Imm_Pbase; @@ -1705,7 +1705,7 @@ multiclass ST_Imm { let opExtendable = 2, opExtentBits = 8, isPredicable = 1 in def NAME#_V4 : STInst2<(outs), (ins IntRegs:$src1, OffsetOp:$src2, s8Ext:$src3), - #mnemonic#"($src1+#$src2) = #$src3", + mnemonic#"($src1+#$src2) = #$src3", []>, Requires<[HasV4T]>; @@ -2356,7 +2356,7 @@ def : Pat<(store (i32 IntRegs:$src1), // multiclass ST_Idxd_Pbase_nv { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME#_nv_V4 : NVInst_V4<(outs), (ins PredRegs:$src1, IntRegs:$src2, predImmOp:$src3, RC: $src4), !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", @@ -2367,7 +2367,7 @@ multiclass ST_Idxd_Pbase_nv { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : ST_Idxd_Pbase_nv; // Predicate new defm _cdn#NAME : ST_Idxd_Pbase_nv; @@ -2384,7 +2384,7 @@ multiclass ST_Idxd_nv, Requires<[HasV4T]>; @@ -2409,7 +2409,7 @@ let addrMode = BaseImmOffset, validSubTargets = HasV4SubT in { // and MEMri operand. multiclass ST_MEMri_Pbase_nv { - let PNewValue = #!if(isPredNew, "new", "") in + let PNewValue = !if(isPredNew, "new", "") in def NAME#_nv_V4 : NVInst_V4<(outs), (ins PredRegs:$src1, MEMri:$addr, RC: $src2), !if(isNot, "if (!$src1", "if ($src1")#!if(isPredNew, ".new) ", @@ -2419,7 +2419,7 @@ multiclass ST_MEMri_Pbase_nv { - let PredSense = #!if(PredNot, "false", "true") in { + let PredSense = !if(PredNot, "false", "true") in { defm _c#NAME : ST_MEMri_Pbase_nv; // Predicate new @@ -2436,7 +2436,7 @@ multiclass ST_MEMri_nv, Requires<[HasV4T]>;