Home
last modified time | relevance | path

Searched refs:InstructionCost (Results 1 – 25 of 73) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DInstructionCost.h29 class InstructionCost {
56 void propagateState(const InstructionCost &RHS) { in propagateState()
66 InstructionCost() = default;
68 InstructionCost(CostState) = delete;
69 InstructionCost(CostType Val) : Value(Val), State(Valid) {} in InstructionCost() function
71 static InstructionCost getMax() { return getMaxValue(); } in getMax()
72 static InstructionCost getMin() { return getMinValue(); } in getMin()
73 static InstructionCost getInvalid(CostType Val = 0) {
74 InstructionCost Tmp(Val);
99 InstructionCost &operator+=(const InstructionCost &RHS) {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h139 InstructionCost getArithmeticInstrCost(
145 InstructionCost getAltInstrCost(VectorType *VecTy, unsigned Opcode0,
150 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
156 InstructionCost getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src,
160 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
165 InstructionCost getVectorInstrCost(unsigned Opcode, Type *Val,
168 InstructionCost getScalarizationOverhead(VectorType *Ty,
172 InstructionCost getReplicationShuffleCost(Type *EltTy, int ReplicationFactor,
176 InstructionCost
181 InstructionCost getMaskedMemoryOpCost(unsigned Opcode, Type *Src,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h69 InstructionCost getVectorInstrCostHelper(const Instruction *I, Type *Val,
90 InstructionCost getIntImmCost(int64_t Val);
91 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty,
93 InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx,
97 InstructionCost getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx,
121 InstructionCost getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
162 InstructionCost getMaskedMemoryOpCost(unsigned Opcode, Type *Src,
166 InstructionCost getGatherScatterOpCost(unsigned Opcode, Type *DataTy,
174 InstructionCost getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src,
179 InstructionCost getExtractWithExtendCost(unsigned Opcode, Type *Dst,
[all …]
H A DAArch64TargetTransformInfo.cpp343 InstructionCost AArch64TTIImpl::getIntImmCost(int64_t Val) { in getIntImmCost()
358 InstructionCost AArch64TTIImpl::getIntImmCost(const APInt &Imm, Type *Ty, in getIntImmCost()
373 InstructionCost Cost = 0; in getIntImmCost()
380 return std::max<InstructionCost>(1, Cost); in getIntImmCost()
383 InstructionCost AArch64TTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst()
443 InstructionCost Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty, CostKind); in getIntImmCostInst()
451 InstructionCost
480 InstructionCost Cost = AArch64TTIImpl::getIntImmCost(Imm, Ty, CostKind); in getIntImmCostIntrin()
517 static InstructionCost getHistogramCost(const IntrinsicCostAttributes &ICA) { in getHistogramCost()
525 return InstructionCost::getInvalid(); in getHistogramCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.h50 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty,
53 InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx,
57 InstructionCost getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx,
61 InstructionCost getInstructionCost(const User *U,
103 InstructionCost vectorCostAdjustmentFactor(unsigned Opcode, Type *Ty1,
105 InstructionCost getArithmeticInstrCost(
111 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, Type *Tp,
117 InstructionCost getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src,
121 InstructionCost getCFInstrCost(unsigned Opcode, TTI::TargetCostKind CostKind,
123 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
[all …]
H A DPPCTargetTransformInfo.cpp165 InstructionCost PPCTTIImpl::getIntImmCost(const APInt &Imm, Type *Ty, in getIntImmCost()
195 InstructionCost PPCTTIImpl::getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, in getIntImmCostIntrin()
230 InstructionCost PPCTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst()
323 InstructionCost PPCTTIImpl::getInstructionCost(const User *U, in getInstructionCost()
333 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(U->getType()); in getInstructionCost()
553 InstructionCost PPCTTIImpl::vectorCostAdjustmentFactor(unsigned Opcode, in vectorCostAdjustmentFactor()
560 return InstructionCost::getInvalid(); in vectorCostAdjustmentFactor()
563 return InstructionCost(1); in vectorCostAdjustmentFactor()
565 std::pair<InstructionCost, MVT> LT1 = getTypeLegalizationCost(Ty1); in vectorCostAdjustmentFactor()
569 return InstructionCost(1); in vectorCostAdjustmentFactor()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h130 InstructionCost ScalarizationCost = InstructionCost::getInvalid();
135 InstructionCost ScalarCost = InstructionCost::getInvalid(),
141 InstructionCost ScalarCost = InstructionCost::getInvalid());
150 InstructionCost ScalarCost = InstructionCost::getInvalid());
156 InstructionCost getScalarizationCost() const { return ScalarizationCost; } in getScalarizationCost()
301 InstructionCost
340 InstructionCost
379 InstructionCost getMemcpyCost(const Instruction *I) const;
406 InstructionCost getInstructionCost(const User *U,
412 InstructionCost getInstructionCost(const User *U, in getInstructionCost()
[all …]
H A DTargetTransformInfoImpl.h50 InstructionCost getGEPCost(Type *PointeeType, const Value *Ptr, in getGEPCost()
84 InstructionCost getMemcpyCost(const Instruction *I) const { in getMemcpyCost()
102 InstructionCost getBranchMispredictPenalty() const { return 0; } in getBranchMispredictPenalty()
340 InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost()
372 InstructionCost getScalarizationOverhead(VectorType *Ty, in getScalarizationOverhead()
379 InstructionCost
432 InstructionCost getFPOpCost(Type *Ty) const { in getFPOpCost()
436 InstructionCost getIntImmCodeSizeCost(unsigned Opcode, unsigned Idx, in getIntImmCodeSizeCost()
441 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty, in getIntImmCost()
446 InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx,
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.h106 InstructionCost getCallInstrCost(Function *F, Type *RetTy,
109 InstructionCost getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
111 InstructionCost getAddressComputationCost(Type *Tp, ScalarEvolution *SE,
113 InstructionCost
118 InstructionCost getMaskedMemoryOpCost(unsigned Opcode, Type *Src,
121 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, Type *Tp,
127 InstructionCost getGatherScatterOpCost(unsigned Opcode, Type *DataTy,
132 InstructionCost getInterleavedMemoryOpCost(
136 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
140 InstructionCost getArithmeticInstrCost(
[all …]
H A DHexagonTargetTransformInfo.cpp141 InstructionCost HexagonTTIImpl::getCallInstrCost(Function *F, Type *RetTy, in getCallInstrCost()
147 InstructionCost
151 std::pair<InstructionCost, MVT> LT = in getIntrinsicInstrCost()
158 InstructionCost HexagonTTIImpl::getAddressComputationCost(Type *Tp, in getAddressComputationCost()
164 InstructionCost HexagonTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost()
221 InstructionCost
229 InstructionCost HexagonTTIImpl::getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, in getShuffleCost()
238 InstructionCost HexagonTTIImpl::getGatherScatterOpCost( in getGatherScatterOpCost()
245 InstructionCost HexagonTTIImpl::getInterleavedMemoryOpCost( in getInterleavedMemoryOpCost()
258 InstructionCost HexagonTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, in getCmpSelInstrCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp72 Intrinsic::ID Id, const CallBase &CI, InstructionCost ScalarizationCost, in IntrinsicCostAttributes()
90 InstructionCost ScalarCost) in IntrinsicCostAttributes()
110 InstructionCost ScalarCost) in IntrinsicCostAttributes()
245 InstructionCost TargetTransformInfo::getGEPCost( in getGEPCost()
251 InstructionCost TargetTransformInfo::getPointersChainCost( in getPointersChainCost()
266 InstructionCost
270 InstructionCost Cost = TTIImpl->getInstructionCost(U, Operands, CostKind); in getInstructionCost()
282 InstructionCost TargetTransformInfo::getBranchMispredictPenalty() const { in getBranchMispredictPenalty()
546 InstructionCost TargetTransformInfo::getScalingFactorCost( in getScalingFactorCost()
549 InstructionCost Cost = TTIImpl->getScalingFactorCost( in getScalingFactorCost()
[all …]
H A DCostModel.cpp58 InstructionCost Cost; in CostModelAnalysis()
62 InstructionCost::getInvalid(), true);
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h51 InstructionCost getRISCVInstructionCost(ArrayRef<unsigned> OpCodes, MVT VT,
56 InstructionCost getConstantPoolLoadCost(Type *Ty,
68 InstructionCost getStoreImmCost(Type *VecTy, TTI::OperandValueInfo OpInfo,
71 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty,
73 InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx,
77 InstructionCost getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx,
124 InstructionCost getMaskedMemoryOpCost(unsigned Opcode, Type *Src,
128 InstructionCost getPointersChainCost(ArrayRef<const Value *> Ptrs,
145 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
152 InstructionCost getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
[all …]
H A DRISCVTargetTransformInfo.cpp39 InstructionCost
44 return InstructionCost::getInvalid(); in getRISCVInstructionCost()
48 InstructionCost LMULCost = TLI->getLMULCost(VT); in getRISCVInstructionCost()
51 InstructionCost Cost = 0; in getRISCVInstructionCost()
112 static InstructionCost getIntImmCostImpl(const DataLayout &DL, in getIntImmCostImpl()
129 InstructionCost RISCVTTIImpl::getIntImmCost(const APInt &Imm, Type *Ty, in getIntImmCost()
161 InstructionCost RISCVTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst()
268 InstructionCost
337 InstructionCost
356 InstructionCost RISCVTTIImpl::getShuffleCost(TTI::ShuffleKind Kind, in getShuffleCost()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h91 InstructionCost getBroadcastShuffleOverhead(FixedVectorType *VTy, in getBroadcastShuffleOverhead()
93 InstructionCost Cost = 0; in getBroadcastShuffleOverhead()
108 InstructionCost getPermuteShuffleOverhead(FixedVectorType *VTy, in getPermuteShuffleOverhead()
110 InstructionCost Cost = 0; in getPermuteShuffleOverhead()
129 InstructionCost getExtractSubvectorOverhead(VectorType *VTy, in getExtractSubvectorOverhead()
141 InstructionCost Cost = 0; in getExtractSubvectorOverhead()
157 InstructionCost getInsertSubvectorOverhead(VectorType *VTy, in getInsertSubvectorOverhead()
169 InstructionCost Cost = 0; in getInsertSubvectorOverhead()
209 InstructionCost getCommonMaskedMemoryOpCost(unsigned Opcode, Type *DataTy,
217 return InstructionCost::getInvalid();
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h133 InstructionCost getIntImmCodeSizeCost(unsigned Opcode, unsigned Idx,
137 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty,
140 InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx,
211 InstructionCost getMemcpyCost(const Instruction *I);
219 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
234 InstructionCost getCFInstrCost(unsigned Opcode, TTI::TargetCostKind CostKind,
237 InstructionCost getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src,
242 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
248 InstructionCost getVectorInstrCost(unsigned Opcode, Type *Val,
252 InstructionCost getAddressComputationCost(Type *Val, ScalarEvolution *SE,
[all …]
H A DARMTargetTransformInfo.cpp301 InstructionCost ARMTTIImpl::getIntImmCost(const APInt &Imm, Type *Ty, in getIntImmCost()
336 InstructionCost ARMTTIImpl::getIntImmCodeSizeCost(unsigned Opcode, unsigned Idx, in getIntImmCodeSizeCost()
393 InstructionCost ARMTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst()
464 InstructionCost ARMTTIImpl::getCFInstrCost(unsigned Opcode, in getCFInstrCost()
478 InstructionCost ARMTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost()
487 auto AdjustCost = [&CostKind](InstructionCost Cost) -> InstructionCost { in getCastInstrCost()
644 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Src); in getCastInstrCost()
832 const InstructionCost CallCost = in getCastInstrCost()
882 InstructionCost ARMTTIImpl::getVectorInstrCost(unsigned Opcode, Type *ValTy, in getVectorInstrCost()
903 return std::max<InstructionCost>( in getVectorInstrCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.h44 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty,
47 InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx,
51 InstructionCost getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx,
88 InstructionCost getArithmeticInstrCost(
94 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
104 InstructionCost getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src,
108 InstructionCost getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
113 InstructionCost getVectorInstrCost(unsigned Opcode, Type *Val,
117 InstructionCost
123 InstructionCost getInterleavedMemoryOpCost(
[all …]
H A DSystemZTargetTransformInfo.cpp73 InstructionCost SystemZTTIImpl::getIntImmCost(const APInt &Imm, Type *Ty, in getIntImmCost()
107 InstructionCost SystemZTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst()
227 InstructionCost
292 InstructionCost NumStores = 0; in getUnrollingPreferences()
425 InstructionCost SystemZTTIImpl::getArithmeticInstrCost( in getArithmeticInstrCost()
569 InstructionCost ScalarCost = in getArithmeticInstrCost()
572 InstructionCost Cost = in getArithmeticInstrCost()
592 InstructionCost Cost = (VF * LIBCALL_COST) + in getArithmeticInstrCost()
606 InstructionCost SystemZTTIImpl::getShuffleCost( in getShuffleCost()
768 InstructionCost SystemZTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.h101 std::pair<InstructionCost, MVT> getTypeLegalizationCost(Type *Ty) const;
154 InstructionCost getArithmeticInstrCost(
161 InstructionCost getCFInstrCost(unsigned Opcode, TTI::TargetCostKind CostKind,
168 InstructionCost getVectorInstrCost(unsigned Opcode, Type *ValTy,
231 InstructionCost getVectorSplitCost() { return 0; } in getVectorSplitCost()
233 InstructionCost getShuffleCost(TTI::ShuffleKind Kind, VectorType *Tp,
249 InstructionCost getArithmeticReductionCost(
253 InstructionCost getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
255 InstructionCost getMinMaxReductionCost(Intrinsic::ID IID, VectorType *Ty,
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiTargetTransformInfo.h52 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty, in getIntImmCost()
80 InstructionCost getIntImmCostInst(unsigned Opc, unsigned Idx,
87 InstructionCost getIntImmCostIntrin(Intrinsic::ID IID, unsigned Idx, in getIntImmCostIntrin()
93 InstructionCost getArithmeticInstrCost(
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp53 InstructionCost WebAssemblyTTIImpl::getArithmeticInstrCost( in getArithmeticInstrCost()
59 InstructionCost Cost = in getArithmeticInstrCost()
83 InstructionCost
87 InstructionCost Cost = BasicTTIImplBase::getVectorInstrCost( in getVectorInstrCost()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp245 InstructionCost OldCost = in vectorizeLoadInsert()
254 InstructionCost NewCost = in vectorizeLoadInsert()
327 InstructionCost OldCost = in widenSubvectorLoad()
331 InstructionCost NewCost = in widenSubvectorLoad()
367 InstructionCost Cost0 = in getShuffleExtract()
369 InstructionCost Cost1 = in getShuffleExtract()
412 InstructionCost ScalarOpCost, VectorOpCost; in isExtractExtractCheap()
435 InstructionCost Extract0Cost = in isExtractExtractCheap()
437 InstructionCost Extract1Cost = in isExtractExtractCheap()
447 InstructionCost CheapExtractCost = std::min(Extract0Cost, Extract1Cost); in isExtractExtractCheap()
[all …]
H A DLoopVectorize.cpp1055 unsigned selectInterleaveCount(ElementCount VF, InstructionCost LoopCost);
1186 InstructionCost Cost) { in setWideningDecision()
1195 InstructionCost Cost) { in setWideningDecision()
1227 InstructionCost getWideningCost(Instruction *I, ElementCount VF) { in getWideningCost()
1240 InstructionCost Cost;
1246 InstructionCost Cost) { in setCallWideningDecision()
1345 bool isDivRemScalarWithPredication(InstructionCost ScalarCost, in isDivRemScalarWithPredication()
1346 InstructionCost SafeDivisorCost) const { in isDivRemScalarWithPredication()
1373 std::pair<InstructionCost, InstructionCost>
1527 InstructionCost getVectorIntrinsicCost(CallInst *CI, ElementCount VF) const;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DPartialInlining.cpp253 InstructionCost OutlinedRegionCost = 0;
327 std::tuple<InstructionCost, InstructionCost>
333 static InstructionCost computeBBInlineCost(BasicBlock *BB,
400 InstructionCost OverallFunctionCost = 0; in computeOutliningColdRegionsInfo()
407 InstructionCost MinOutlineRegionCost = OverallFunctionCost.map( in computeOutliningColdRegionsInfo()
470 InstructionCost OutlineRegionCost = 0; in computeOutliningColdRegionsInfo()
803 InstructionCost
806 InstructionCost InlineCost = 0; in computeBBInlineCost()
864 std::tuple<InstructionCost, InstructionCost>
866 InstructionCost OutliningFuncCallCost = 0, OutlinedFunctionCost = 0; in computeOutliningCosts()
[all …]

123