Lines Matching refs:Ty

26 InstructionCost RISCVTTIImpl::getIntImmCost(const APInt &Imm, Type *Ty,  in getIntImmCost()  argument
28 assert(Ty->isIntegerTy() && in getIntImmCost()
37 return RISCVMatInt::getIntMatCost(Imm, DL.getTypeSizeInBits(Ty), in getIntImmCost()
42 const APInt &Imm, Type *Ty, in getIntImmCostInst() argument
45 assert(Ty->isIntegerTy() && in getIntImmCostInst()
99 return getIntImmCost(Imm, Ty, CostKind); in getIntImmCostInst()
108 const APInt &Imm, Type *Ty, in getIntImmCostIntrin() argument
310 unsigned RISCVTTIImpl::getMaxVLFor(VectorType *Ty) { in getMaxVLFor() argument
311 if (isa<ScalableVectorType>(Ty)) { in getMaxVLFor()
312 const unsigned EltSize = DL.getTypeSizeInBits(Ty->getElementType()); in getMaxVLFor()
313 const unsigned MinSize = DL.getTypeSizeInBits(Ty).getKnownMinValue(); in getMaxVLFor()
317 return cast<FixedVectorType>(Ty)->getNumElements(); in getMaxVLFor()
321 RISCVTTIImpl::getMinMaxReductionCost(VectorType *Ty, VectorType *CondTy, in getMinMaxReductionCost() argument
324 if (isa<FixedVectorType>(Ty) && !ST->useRVVForFixedLengthVectors()) in getMinMaxReductionCost()
325 return BaseT::getMinMaxReductionCost(Ty, CondTy, IsUnsigned, CostKind); in getMinMaxReductionCost()
328 if (Ty->getScalarSizeInBits() > ST->getELEN()) in getMinMaxReductionCost()
329 return BaseT::getMinMaxReductionCost(Ty, CondTy, IsUnsigned, CostKind); in getMinMaxReductionCost()
331 std::pair<InstructionCost, MVT> LT = TLI->getTypeLegalizationCost(DL, Ty); in getMinMaxReductionCost()
332 if (Ty->getElementType()->isIntegerTy(1)) in getMinMaxReductionCost()
339 unsigned VL = getMaxVLFor(Ty); in getMinMaxReductionCost()
344 RISCVTTIImpl::getArithmeticReductionCost(unsigned Opcode, VectorType *Ty, in getArithmeticReductionCost() argument
347 if (isa<FixedVectorType>(Ty) && !ST->useRVVForFixedLengthVectors()) in getArithmeticReductionCost()
348 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind); in getArithmeticReductionCost()
351 if (Ty->getScalarSizeInBits() > ST->getELEN()) in getArithmeticReductionCost()
352 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind); in getArithmeticReductionCost()
359 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind); in getArithmeticReductionCost()
361 std::pair<InstructionCost, MVT> LT = TLI->getTypeLegalizationCost(DL, Ty); in getArithmeticReductionCost()
362 if (Ty->getElementType()->isIntegerTy(1)) in getArithmeticReductionCost()
368 unsigned VL = getMaxVLFor(Ty); in getArithmeticReductionCost()
457 unsigned RISCVTTIImpl::getRegUsageForType(Type *Ty) { in getRegUsageForType() argument
458 TypeSize Size = Ty->getPrimitiveSizeInBits(); in getRegUsageForType()
459 if (Ty->isVectorTy()) { in getRegUsageForType()
467 return BaseT::getRegUsageForType(Ty); in getRegUsageForType()