aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2025-08-15 18:06:07 +0200
committerGitHub <noreply@github.com>2025-08-15 18:06:07 +0200
commit01bc7421855889dcc3b10a131928e3a4a8e4b38c (patch)
tree80bbb9dd9cd8717e5d9bc654bceadad42164d907 /llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
parent1d1e52e614f95eed5ee440b43fa1992e46976629 (diff)
downloadllvm-01bc7421855889dcc3b10a131928e3a4a8e4b38c.zip
llvm-01bc7421855889dcc3b10a131928e3a4a8e4b38c.tar.gz
llvm-01bc7421855889dcc3b10a131928e3a4a8e4b38c.tar.bz2
[CodeGen] Give ArgListEntry a proper constructor (NFC) (#153817)
This ensures that the required fields are set, and also makes the construction more convenient.
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
index d2ecc133..2ca9895 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
@@ -2223,17 +2223,13 @@ bool VectorLegalizer::tryExpandVecMathCall(SDNode *Node, RTLIB::Libcall LC,
SDLoc DL(Node);
TargetLowering::ArgListTy Args;
- TargetLowering::ArgListEntry Entry;
- Entry.IsSExt = false;
- Entry.IsZExt = false;
unsigned OpNum = 0;
for (auto &VFParam : OptVFInfo->Shape.Parameters) {
if (VFParam.ParamKind == VFParamKind::GlobalPredicate) {
EVT MaskVT = TLI.getSetCCResultType(DAG.getDataLayout(), *Ctx, VT);
- Entry.Node = DAG.getBoolConstant(true, DL, MaskVT, VT);
- Entry.Ty = MaskVT.getTypeForEVT(*Ctx);
- Args.push_back(Entry);
+ Args.emplace_back(DAG.getBoolConstant(true, DL, MaskVT, VT),
+ MaskVT.getTypeForEVT(*Ctx));
continue;
}
@@ -2241,9 +2237,7 @@ bool VectorLegalizer::tryExpandVecMathCall(SDNode *Node, RTLIB::Libcall LC,
if (VFParam.ParamKind != VFParamKind::Vector)
return false;
- Entry.Node = Node->getOperand(OpNum++);
- Entry.Ty = Ty;
- Args.push_back(Entry);
+ Args.emplace_back(Node->getOperand(OpNum++), Ty);
}
// Emit a call to the vector function.