Lines Matching refs:TTIImpl
234 : TTIImpl(new Model<NoTTIImpl>(NoTTIImpl(DL))) {} in TargetTransformInfo()
239 : TTIImpl(std::move(Arg.TTIImpl)) {} in TargetTransformInfo()
242 TTIImpl = std::move(RHS.TTIImpl); in operator =()
247 return TTIImpl->getInliningThresholdMultiplier(); in getInliningThresholdMultiplier()
251 return TTIImpl->getInlinerVectorBonusPercent(); in getInlinerVectorBonusPercent()
257 return TTIImpl->getGEPCost(PointeeType, Ptr, Operands, CostKind); in getGEPCost()
263 return TTIImpl->getEstimatedNumberOfCaseClusters(SI, JTSize, PSI, BFI); in getEstimatedNumberOfCaseClusters()
269 int Cost = TTIImpl->getUserCost(U, Operands, CostKind); in getUserCost()
276 return TTIImpl->hasBranchDivergence(); in hasBranchDivergence()
280 return TTIImpl->useGPUDivergenceAnalysis(); in useGPUDivergenceAnalysis()
284 return TTIImpl->isSourceOfDivergence(V); in isSourceOfDivergence()
288 return TTIImpl->isAlwaysUniform(V); in isAlwaysUniform()
292 return TTIImpl->getFlatAddressSpace(); in getFlatAddressSpace()
297 return TTIImpl->collectFlatAddressOperands(OpIndexes, IID); in collectFlatAddressOperands()
302 return TTIImpl->isNoopAddrSpaceCast(FromAS, ToAS); in isNoopAddrSpaceCast()
306 return TTIImpl->getAssumedAddrSpace(V); in getAssumedAddrSpace()
311 return TTIImpl->rewriteIntrinsicWithAddressSpace(II, OldV, NewV); in rewriteIntrinsicWithAddressSpace()
315 return TTIImpl->isLoweredToCall(F); in isLoweredToCall()
321 return TTIImpl->isHardwareLoopProfitable(L, SE, AC, LibInfo, HWLoopInfo); in isHardwareLoopProfitable()
328 return TTIImpl->preferPredicateOverEpilogue(L, LI, SE, AC, TLI, DT, LAI); in preferPredicateOverEpilogue()
332 return TTIImpl->emitGetActiveLaneMask(); in emitGetActiveLaneMask()
338 return TTIImpl->instCombineIntrinsic(IC, II); in instCombineIntrinsic()
344 return TTIImpl->simplifyDemandedUseBitsIntrinsic(IC, II, DemandedMask, Known, in simplifyDemandedUseBitsIntrinsic()
353 return TTIImpl->simplifyDemandedVectorEltsIntrinsic( in simplifyDemandedVectorEltsIntrinsic()
360 return TTIImpl->getUnrollingPreferences(L, SE, UP); in getUnrollingPreferences()
365 return TTIImpl->getPeelingPreferences(L, SE, PP); in getPeelingPreferences()
369 return TTIImpl->isLegalAddImmediate(Imm); in isLegalAddImmediate()
373 return TTIImpl->isLegalICmpImmediate(Imm); in isLegalICmpImmediate()
381 return TTIImpl->isLegalAddressingMode(Ty, BaseGV, BaseOffset, HasBaseReg, in isLegalAddressingMode()
386 return TTIImpl->isLSRCostLess(C1, C2); in isLSRCostLess()
390 return TTIImpl->isNumRegsMajorCostOfLSR(); in isNumRegsMajorCostOfLSR()
394 return TTIImpl->isProfitableLSRChainElement(I); in isProfitableLSRChainElement()
398 return TTIImpl->canMacroFuseCmp(); in canMacroFuseCmp()
405 return TTIImpl->canSaveCmp(L, BI, SE, LI, DT, AC, LibInfo); in canSaveCmp()
409 return TTIImpl->shouldFavorPostInc(); in shouldFavorPostInc()
413 return TTIImpl->shouldFavorBackedgeIndex(L); in shouldFavorBackedgeIndex()
418 return TTIImpl->isLegalMaskedStore(DataType, Alignment); in isLegalMaskedStore()
423 return TTIImpl->isLegalMaskedLoad(DataType, Alignment); in isLegalMaskedLoad()
428 return TTIImpl->isLegalNTStore(DataType, Alignment); in isLegalNTStore()
432 return TTIImpl->isLegalNTLoad(DataType, Alignment); in isLegalNTLoad()
437 return TTIImpl->isLegalMaskedGather(DataType, Alignment); in isLegalMaskedGather()
442 return TTIImpl->isLegalMaskedScatter(DataType, Alignment); in isLegalMaskedScatter()
446 return TTIImpl->isLegalMaskedCompressStore(DataType); in isLegalMaskedCompressStore()
450 return TTIImpl->isLegalMaskedExpandLoad(DataType); in isLegalMaskedExpandLoad()
454 return TTIImpl->hasDivRemOp(DataType, IsSigned); in hasDivRemOp()
459 return TTIImpl->hasVolatileVariant(I, AddrSpace); in hasVolatileVariant()
463 return TTIImpl->prefersVectorizedAddressing(); in prefersVectorizedAddressing()
470 int Cost = TTIImpl->getScalingFactorCost(Ty, BaseGV, BaseOffset, HasBaseReg, in getScalingFactorCost()
477 return TTIImpl->LSRWithInstrQueries(); in LSRWithInstrQueries()
481 return TTIImpl->isTruncateFree(Ty1, Ty2); in isTruncateFree()
485 return TTIImpl->isProfitableToHoist(I); in isProfitableToHoist()
488 bool TargetTransformInfo::useAA() const { return TTIImpl->useAA(); } in useAA()
491 return TTIImpl->isTypeLegal(Ty); in isTypeLegal()
495 return TTIImpl->getRegUsageForType(Ty); in getRegUsageForType()
499 return TTIImpl->shouldBuildLookupTables(); in shouldBuildLookupTables()
503 return TTIImpl->shouldBuildLookupTablesForConstant(C); in shouldBuildLookupTablesForConstant()
507 return TTIImpl->useColdCCForColdCall(F); in useColdCCForColdCall()
514 return TTIImpl->getScalarizationOverhead(Ty, DemandedElts, Insert, Extract); in getScalarizationOverhead()
519 return TTIImpl->getOperandsScalarizationOverhead(Args, VF); in getOperandsScalarizationOverhead()
523 return TTIImpl->supportsEfficientVectorElementLoadStore(); in supportsEfficientVectorElementLoadStore()
528 return TTIImpl->enableAggressiveInterleaving(LoopHasReductions); in enableAggressiveInterleaving()
533 return TTIImpl->enableMemCmpExpansion(OptSize, IsZeroCmp); in enableMemCmpExpansion()
537 return TTIImpl->enableInterleavedAccessVectorization(); in enableInterleavedAccessVectorization()
541 return TTIImpl->enableMaskedInterleavedAccessVectorization(); in enableMaskedInterleavedAccessVectorization()
545 return TTIImpl->isFPVectorizationPotentiallyUnsafe(); in isFPVectorizationPotentiallyUnsafe()
553 return TTIImpl->allowsMisalignedMemoryAccesses(Context, BitWidth, in allowsMisalignedMemoryAccesses()
559 return TTIImpl->getPopcntSupport(IntTyWidthInBit); in getPopcntSupport()
563 return TTIImpl->haveFastSqrt(Ty); in haveFastSqrt()
567 return TTIImpl->isFCmpOrdCheaperThanFCmpZero(Ty); in isFCmpOrdCheaperThanFCmpZero()
571 int Cost = TTIImpl->getFPOpCost(Ty); in getFPOpCost()
579 int Cost = TTIImpl->getIntImmCodeSizeCost(Opcode, Idx, Imm, Ty); in getIntImmCodeSizeCost()
586 int Cost = TTIImpl->getIntImmCost(Imm, Ty, CostKind); in getIntImmCost()
595 int Cost = TTIImpl->getIntImmCostInst(Opcode, Idx, Imm, Ty, CostKind, Inst); in getIntImmCostInst()
604 int Cost = TTIImpl->getIntImmCostIntrin(IID, Idx, Imm, Ty, CostKind); in getIntImmCostIntrin()
610 return TTIImpl->getNumberOfRegisters(ClassID); in getNumberOfRegisters()
615 return TTIImpl->getRegisterClassForType(Vector, Ty); in getRegisterClassForType()
619 return TTIImpl->getRegisterClassName(ClassID); in getRegisterClassName()
623 return TTIImpl->getRegisterBitWidth(Vector); in getRegisterBitWidth()
627 return TTIImpl->getMinVectorRegisterBitWidth(); in getMinVectorRegisterBitWidth()
631 return TTIImpl->shouldMaximizeVectorBandwidth(OptSize); in shouldMaximizeVectorBandwidth()
635 return TTIImpl->getMinimumVF(ElemWidth); in getMinimumVF()
640 return TTIImpl->shouldConsiderAddressTypePromotion( in shouldConsiderAddressTypePromotion()
645 return TTIImpl->getCacheLineSize(); in getCacheLineSize()
650 return TTIImpl->getCacheSize(Level); in getCacheSize()
655 return TTIImpl->getCacheAssociativity(Level); in getCacheAssociativity()
659 return TTIImpl->getPrefetchDistance(); in getPrefetchDistance()
665 return TTIImpl->getMinPrefetchStride(NumMemAccesses, NumStridedMemAccesses, in getMinPrefetchStride()
670 return TTIImpl->getMaxPrefetchIterationsAhead(); in getMaxPrefetchIterationsAhead()
674 return TTIImpl->enableWritePrefetching(); in enableWritePrefetching()
678 return TTIImpl->getMaxInterleaveFactor(VF); in getMaxInterleaveFactor()
737 int Cost = TTIImpl->getArithmeticInstrCost( in getArithmeticInstrCost()
746 int Cost = TTIImpl->getShuffleCost(Kind, Ty, Index, SubTp); in getShuffleCost()
801 int Cost = TTIImpl->getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
809 int Cost = TTIImpl->getExtractWithExtendCost(Opcode, Dst, VecTy, Index); in getExtractWithExtendCost()
816 int Cost = TTIImpl->getCFInstrCost(Opcode, CostKind); in getCFInstrCost()
829 TTIImpl->getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
836 int Cost = TTIImpl->getVectorInstrCost(Opcode, Val, Index); in getVectorInstrCost()
847 int Cost = TTIImpl->getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
857 TTIImpl->getMaskedMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMaskedMemoryOpCost()
866 int Cost = TTIImpl->getGatherScatterOpCost(Opcode, DataTy, Ptr, VariableMask, in getGatherScatterOpCost()
876 int Cost = TTIImpl->getInterleavedMemoryOpCost( in getInterleavedMemoryOpCost()
886 int Cost = TTIImpl->getIntrinsicInstrCost(ICA, CostKind); in getIntrinsicInstrCost()
894 int Cost = TTIImpl->getCallInstrCost(F, RetTy, Tys, CostKind); in getCallInstrCost()
900 return TTIImpl->getNumberOfParts(Tp); in getNumberOfParts()
906 int Cost = TTIImpl->getAddressComputationCost(Tp, SE, Ptr); in getAddressComputationCost()
912 int Cost = TTIImpl->getMemcpyCost(I); in getMemcpyCost()
921 int Cost = TTIImpl->getArithmeticReductionCost(Opcode, Ty, IsPairwiseForm, in getArithmeticReductionCost()
931 TTIImpl->getMinMaxReductionCost(Ty, CondTy, IsPairwiseForm, IsUnsigned, in getMinMaxReductionCost()
939 return TTIImpl->getCostOfKeepingLiveOverCall(Tys); in getCostOfKeepingLiveOverCall()
944 return TTIImpl->getTgtMemIntrinsic(Inst, Info); in getTgtMemIntrinsic()
948 return TTIImpl->getAtomicMemIntrinsicMaxElementSize(); in getAtomicMemIntrinsicMaxElementSize()
953 return TTIImpl->getOrCreateResultFromMemIntrinsic(Inst, ExpectedType); in getOrCreateResultFromMemIntrinsic()
959 return TTIImpl->getMemcpyLoopLoweringType(Context, Length, SrcAddrSpace, in getMemcpyLoopLoweringType()
967 TTIImpl->getMemcpyLoopResidualLoweringType(OpsOut, Context, RemainingBytes, in getMemcpyLoopResidualLoweringType()
974 return TTIImpl->areInlineCompatible(Caller, Callee); in areInlineCompatible()
980 return TTIImpl->areFunctionArgsABICompatible(Caller, Callee, Args); in areFunctionArgsABICompatible()
985 return TTIImpl->isIndexedLoadLegal(Mode, Ty); in isIndexedLoadLegal()
990 return TTIImpl->isIndexedStoreLegal(Mode, Ty); in isIndexedStoreLegal()
994 return TTIImpl->getLoadStoreVecRegBitWidth(AS); in getLoadStoreVecRegBitWidth()
998 return TTIImpl->isLegalToVectorizeLoad(LI); in isLegalToVectorizeLoad()
1002 return TTIImpl->isLegalToVectorizeStore(SI); in isLegalToVectorizeStore()
1007 return TTIImpl->isLegalToVectorizeLoadChain(ChainSizeInBytes, Alignment, in isLegalToVectorizeLoadChain()
1013 return TTIImpl->isLegalToVectorizeStoreChain(ChainSizeInBytes, Alignment, in isLegalToVectorizeStoreChain()
1021 return TTIImpl->getLoadVectorFactor(VF, LoadSize, ChainSizeInBytes, VecTy); in getLoadVectorFactor()
1028 return TTIImpl->getStoreVectorFactor(VF, StoreSize, ChainSizeInBytes, VecTy); in getStoreVectorFactor()
1033 return TTIImpl->useReductionIntrinsic(Opcode, Ty, Flags); in useReductionIntrinsic()
1038 return TTIImpl->preferInLoopReduction(Opcode, Ty, Flags); in preferInLoopReduction()
1043 return TTIImpl->preferPredicatedReductionSelect(Opcode, Ty, Flags); in preferPredicatedReductionSelect()
1047 return TTIImpl->shouldExpandReduction(II); in shouldExpandReduction()
1051 return TTIImpl->getGISelRematGlobalCost(); in getGISelRematGlobalCost()
1055 return TTIImpl->getInstructionLatency(I); in getInstructionLatency()