Lines Matching defs:VecTy
381 Type *VecTy = Ext0->getVectorOperand()->getType();
382 assert(VecTy == Ext1->getVectorOperand()->getType() && "Need matching types");
384 TTI.getVectorInstrCost(*Ext0, VecTy, CostKind, Index0);
386 TTI.getVectorInstrCost(*Ext1, VecTy, CostKind, Index1);
429 auto *VecTy = cast<VectorType>(Ext0Src->getType());
436 VectorOpCost = TTI.getArithmeticInstrCost(Opcode, VecTy, CostKind);
444 Opcode, VecTy, CmpInst::makeCmpResultType(VecTy), Pred, CostKind);
453 TTI.getVectorInstrCost(*Ext0, VecTy, CostKind, Ext0Index);
455 TTI.getVectorInstrCost(*Ext1, VecTy, CostKind, Ext1Index);
501 if (auto *FixedVecTy = dyn_cast<FixedVectorType>(VecTy)) {
506 VecTy, ShuffleMask, CostKind, 0, nullptr,
510 TTI.getShuffleCost(TargetTransformInfo::SK_PermuteSingleSrc, VecTy,
528 auto *VecTy = cast<FixedVectorType>(Vec->getType());
529 SmallVector<int, 32> ShufMask(VecTy->getNumElements(), PoisonMaskElem);
679 auto *VecTy = cast<FixedVectorType>(I.getType());
680 auto *ScalarTy = VecTy->getScalarType();
686 unsigned NumElts = VecTy->getNumElements();
698 TTI.getVectorInstrCost(I, VecTy, CostKind, Index);
704 OldCost += TTI.getVectorInstrCost(*Extract, VecTy, CostKind, Index);
707 TTI.getArithmeticInstrCost(Instruction::FNeg, VecTy, CostKind) +
708 TTI.getShuffleCost(TargetTransformInfo::SK_PermuteTwoSrc, VecTy, Mask,
875 VectorType *VecTy = cast<VectorType>(VPI.getType());
877 if (auto *FVTy = dyn_cast<FixedVectorType>(VecTy))
880 TTI.getVectorInstrCost(Instruction::InsertElement, VecTy, CostKind, 0) +
881 TTI.getShuffleCost(TargetTransformInfo::SK_Broadcast, VecTy, Mask,
888 IntrinsicCostAttributes Attrs(IntrID, VecTy, Args);
905 IntrinsicCostAttributes Attrs(*ScalarIntrID, VecTy->getScalarType(), Args);
909 VecTy->getScalarType(), CostKind);
947 ? Builder.CreateIntrinsic(VecTy->getScalarType(), *ScalarIntrID,
1016 Type *VecTy = I.getType();
1017 assert(VecTy->isVectorTy() &&
1030 Opcode, VecTy, CmpInst::makeCmpResultType(VecTy), Pred, CostKind);
1033 VectorOpCost = TTI.getArithmeticInstrCost(Opcode, VecTy, CostKind);
1039 Instruction::InsertElement, VecTy, CostKind, Index);
1129 auto *VecTy = dyn_cast<FixedVectorType>(X->getType());
1130 if (!VecTy)
1134 TTI.getVectorInstrCost(*Ext0, VecTy, CostKind, Index0);
1136 TTI.getVectorInstrCost(*Ext1, VecTy, CostKind, Index1);
1154 SmallVector<int, 32> ShufMask(VecTy->getNumElements(), PoisonMaskElem);
1170 SmallVector<Constant *, 32> CmpC(VecTy->getNumElements(),
1171 PoisonValue::get(VecTy->getElementType()));
1253 /// Check if it is legal to scalarize a memory access to \p VecTy at index \p
1255 static ScalarizationResult canScalarizeAccess(VectorType *VecTy, Value *Idx,
1262 uint64_t NumElements = VecTy->getElementCount().getKnownMinValue();
1335 auto VecTy = cast<VectorType>(SI->getValueOperand()->getType());
1344 auto ScalarizableIdx = canScalarizeAccess(VecTy, Idx, Load, AC, DT);
1380 auto *VecTy = cast<VectorType>(LI->getType());
1381 if (LI->isVolatile() || !DL->typeSizeEqualsStoreSize(VecTy->getScalarType()))
1385 TTI.getMemoryOpCost(Instruction::Load, VecTy, LI->getAlign(),
1421 canScalarizeAccess(VecTy, UI->getIndexOperand(), LI, AC, DT);
1431 TTI.getVectorInstrCost(Instruction::ExtractElement, VecTy, CostKind,
1434 TTI.getMemoryOpCost(Instruction::Load, VecTy->getElementType(),
1436 ScalarizedCost += TTI.getAddressComputationCost(VecTy->getElementType());
1458 Builder.CreateInBoundsGEP(VecTy, Ptr, {Builder.getInt32(0), Idx});
1460 VecTy->getElementType(), GEP, EI->getName() + ".scalar"));
1463 LI->getAlign(), VecTy->getElementType(), Idx, *DL);
2116 auto *VecTy = cast<FixedVectorType>(II0->getArgOperand(I)->getType());
2117 NewArgsTy.push_back(FixedVectorType::get(VecTy->getElementType(),
2118 VecTy->getNumElements() * 2));
2120 VecTy, OldMask, CostKind);
3090 auto *VecTy = dyn_cast<FixedVectorType>(I.getType());
3091 if (!VecTy || SrcVec->getType() != VecTy)
3094 unsigned NumElts = VecTy->getNumElements();
3115 TTI.getVectorInstrCost(*Ins, VecTy, CostKind, InsIdx);
3117 TTI.getVectorInstrCost(*Ext, VecTy, CostKind, ExtIdx);
3124 NewCost += TTI.getShuffleCost(SK, VecTy, Mask, CostKind, 0, nullptr,