Skip to content

Commit 4301960

Browse files
committed
Remove function template parameter
1 parent d9de14f commit 4301960

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,7 @@ class AArch64DAGToDAGISel : public SelectionDAGISel {
404404
return SelectSVERegRegAddrMode(N, Scale, Base, Offset);
405405
}
406406

407-
template <int64_t Max>
408-
void SelectMultiVectorLuti(SDNode *Node, unsigned NumOutVecs, unsigned Opc);
407+
void SelectMultiVectorLuti(SDNode *Node, unsigned NumOutVecs, unsigned Opc, uint32_t MaxImm);
409408

410409
template <unsigned MaxIdx, unsigned Scale>
411410
bool SelectSMETileSlice(SDValue N, SDValue &Vector, SDValue &Offset) {
@@ -1867,12 +1866,12 @@ void AArch64DAGToDAGISel::SelectFrintFromVT(SDNode *N, unsigned NumVecs,
18671866
SelectUnaryMultiIntrinsic(N, NumVecs, true, Opcode);
18681867
}
18691868

1870-
template <int64_t Max>
18711869
void AArch64DAGToDAGISel::SelectMultiVectorLuti(SDNode *Node,
18721870
unsigned NumOutVecs,
1873-
unsigned Opc) {
1871+
unsigned Opc,
1872+
uint32_t MaxImm) {
18741873
if (ConstantSDNode *Imm = dyn_cast<ConstantSDNode>(Node->getOperand(4)))
1875-
if (Imm->getZExtValue() > Max)
1874+
if (Imm->getZExtValue() > MaxImm)
18761875
return;
18771876

18781877
SDValue ZtValue;
@@ -5109,15 +5108,15 @@ void AArch64DAGToDAGISel::Select(SDNode *Node) {
51095108
{AArch64::LUTI2_4ZTZI_B, AArch64::LUTI2_4ZTZI_H,
51105109
AArch64::LUTI2_4ZTZI_S}))
51115110
// Second Immediate must be <= 3:
5112-
SelectMultiVectorLuti<3>(Node, 4, Opc);
5111+
SelectMultiVectorLuti(Node, 4, Opc, 3);
51135112
return;
51145113
}
51155114
case Intrinsic::aarch64_sme_luti4_lane_zt_x4: {
51165115
if (auto Opc = SelectOpcodeFromVT<SelectTypeKind::AnyType>(
51175116
Node->getValueType(0),
51185117
{0, AArch64::LUTI4_4ZTZI_H, AArch64::LUTI4_4ZTZI_S}))
51195118
// Second Immediate must be <= 1:
5120-
SelectMultiVectorLuti<1>(Node, 4, Opc);
5119+
SelectMultiVectorLuti(Node, 4, Opc, 1);
51215120
return;
51225121
}
51235122
}

0 commit comments

Comments
 (0)