llvm.org GIT mirror llvm / fc1cc11
ARM: stop passing unused values up the TableGen hierarchy. It's bad enough that I have to look up 5 different levels of TableGen class definitions to work out what bits go where in a simple NEON instruction anyway, without having to keep track of umpteen unused parameters. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207420 91177308-0d34-0410-b5e6-96231b3b80d8 Tim Northover 6 years ago
2 changed file(s) with 8 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
20282028 // Same as N2V but not predicated.
20292029 class N2Vnp op19_18, bits<2> op17_16, bits<3> op10_8, bit op7, bit op6,
20302030 dag oops, dag iops, InstrItinClass itin, string OpcodeStr,
2031 string Dt, ValueType ResTy, ValueType OpTy, list pattern>
2031 string Dt, list pattern>
20322032 : NeonInp
20332033 OpcodeStr, Dt, "$Vd, $Vm", "", pattern> {
20342034 bits<5> Vd;
21372137
21382138 class N3Vnp op27_23, bits<2> op21_20, bits<4> op11_8, bit op6,
21392139 bit op4, dag oops, dag iops,Format f, InstrItinClass itin,
2140 string OpcodeStr, string Dt, ValueType ResTy, ValueType OpTy,
2141 SDPatternOperator IntOp, bit Commutable, list pattern>
2140 string OpcodeStr, string Dt, list pattern>
21422141 : NeonInp
21432142 Dt, "$Vd, $Vn, $Vm", "", pattern> {
21442143 bits<5> Vd;
24552455 InstrItinClass itin, string OpcodeStr, string Dt,
24562456 ValueType ResTy, ValueType OpTy, SDPatternOperator IntOp>
24572457 : N2Vnp<0b10, op17_16, op10_8, op7, 0, (outs DPR:$Vd), (ins DPR:$Vm),
2458 itin, OpcodeStr, Dt, ResTy, OpTy,
2458 itin, OpcodeStr, Dt,
24592459 [(set DPR:$Vd, (ResTy (IntOp (OpTy DPR:$Vm))))]>;
24602460
24612461 class N2VQIntnp op17_16, bits<3> op10_8, bit op7,
24622462 InstrItinClass itin, string OpcodeStr, string Dt,
24632463 ValueType ResTy, ValueType OpTy, SDPatternOperator IntOp>
24642464 : N2Vnp<0b10, op17_16, op10_8, op7, 1, (outs QPR:$Vd), (ins QPR:$Vm),
2465 itin, OpcodeStr, Dt, ResTy, OpTy,
2465 itin, OpcodeStr, Dt,
24662466 [(set QPR:$Vd, (ResTy (IntOp (OpTy QPR:$Vm))))]>;
24672467
24682468 // Similar to NV2VQIntnp with some more encoding bits exposed (crypto).
24702470 bit op7, InstrItinClass itin, string OpcodeStr, string Dt,
24712471 ValueType ResTy, ValueType OpTy, SDPatternOperator IntOp>
24722472 : N2Vnp
2473 itin, OpcodeStr, Dt, ResTy, OpTy,
2473 itin, OpcodeStr, Dt,
24742474 [(set QPR:$Vd, (ResTy (IntOp (OpTy QPR:$Vm))))]>;
24752475
24762476 // Same as N2VQIntXnp but with Vd as a src register.
24792479 ValueType ResTy, ValueType OpTy, SDPatternOperator IntOp>
24802480 : N2Vnp
24812481 (outs QPR:$Vd), (ins QPR:$src, QPR:$Vm),
2482 itin, OpcodeStr, Dt, ResTy, OpTy,
2482 itin, OpcodeStr, Dt,
24832483 [(set QPR:$Vd, (ResTy (IntOp (OpTy QPR:$src), (OpTy QPR:$Vm))))]> {
24842484 let Constraints = "$src = $Vd";
24852485 }
26532653 SDPatternOperator IntOp, bit Commutable>
26542654 : N3Vnp
26552655 (outs DPR:$Vd), (ins DPR:$Vn, DPR:$Vm), N3RegFrm, itin, OpcodeStr, Dt,
2656 ResTy, OpTy, IntOp, Commutable,
26572656 [(set DPR:$Vd, (ResTy (IntOp (OpTy DPR:$Vn), (OpTy DPR:$Vm))))]>;
26582657
26592658 class N3VDIntSL op21_20, bits<4> op11_8, InstrItinClass itin,
27072706 SDPatternOperator IntOp, bit Commutable>
27082707 : N3Vnp
27092708 (outs QPR:$Vd), (ins QPR:$Vn, QPR:$Vm), f, itin, OpcodeStr, Dt,
2710 ResTy, OpTy, IntOp, Commutable,
27112709 [(set QPR:$Vd, (ResTy (IntOp (OpTy QPR:$Vn), (OpTy QPR:$Vm))))]>;
27122710
27132711 // Same as N3VQIntnp but with Vd as a src register.
27162714 string Dt, ValueType ResTy, ValueType OpTy,
27172715 SDPatternOperator IntOp, bit Commutable>
27182716 : N3Vnp
2719 (outs QPR:$Vd), (ins QPR:$src, QPR:$Vn, QPR:$Vm), f, itin, OpcodeStr,
2720 Dt, ResTy, OpTy, IntOp, Commutable,
2717 (outs QPR:$Vd), (ins QPR:$src, QPR:$Vn, QPR:$Vm),
2718 f, itin, OpcodeStr, Dt,
27212719 [(set QPR:$Vd, (ResTy (IntOp (OpTy QPR:$src), (OpTy QPR:$Vn),
27222720 (OpTy QPR:$Vm))))]> {
27232721 let Constraints = "$src = $Vd";
30373035 SDPatternOperator IntOp, bit Commutable>
30383036 : N3Vnp
30393037 (outs QPR:$Vd), (ins DPR:$Vn, DPR:$Vm), N3RegFrm, itin, OpcodeStr, Dt,
3040 ResTy, OpTy, IntOp, Commutable,
30413038 [(set QPR:$Vd, (ResTy (IntOp (OpTy DPR:$Vn), (OpTy DPR:$Vm))))]>;
30423039
30433040 class N3VLIntSL op21_20, bits<4> op11_8, InstrItinClass itin,