Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DInstructionCost.h30 class InstructionCost {
57 void propagateState(const InstructionCost &RHS) { in propagateState()
67 InstructionCost() = default;
69 InstructionCost(CostState) = delete;
70 InstructionCost(CostType Val) : Value(Val), State(Valid) {} in InstructionCost() function
72 static InstructionCost getMax() { return getMaxValue(); } in getMax()
73 static InstructionCost getMin() { return getMinValue(); } in getMin()
74 static InstructionCost getInvalid(CostType Val = 0) {
75 InstructionCost Tmp(Val);
99 InstructionCost &operator+=(const InstructionCost &RHS) {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h140 InstructionCost getArithmeticInstrCost(
146 InstructionCost getAltInstrCost(VectorType *VecTy, unsigned Opcode0,
151 InstructionCost
156 InstructionCost
160 InstructionCost getCmpSelInstrCost(
167 InstructionCost getVectorInstrCost(unsigned Opcode, Type *Val,
171 InstructionCost getScalarizationOverhead(
175 InstructionCost
179 InstructionCost getMemoryOpCost(
184 InstructionCost
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h73 InstructionCost getVectorInstrCostHelper(
100 InstructionCost getIntImmCost(int64_t Val) const;
101 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty,
103 InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx,
107 InstructionCost
133 InstructionCost
177 InstructionCost
182 InstructionCost
191 InstructionCost
196 InstructionCost
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCostModel.cpp52 InstructionCost, enumerator
60 cl::init(IntrinsicCostStrategy::InstructionCost),
62 clEnumValN(IntrinsicCostStrategy::InstructionCost, "instruction-cost",
74 static InstructionCost getCost(Instruction &Inst, TTI::TargetCostKind CostKind, in getCost()
78 if (II && IntrinsicCost != IntrinsicCostStrategy::InstructionCost) { in getCost()
80 II->getIntrinsicID(), *II, InstructionCost::getInvalid(), in getCost()
116 InstructionCost RThru = in run()
118 InstructionCost CodeSize = getCost(Inst, TTI::TCK_CodeSize, TTI, TLI); in run()
119 InstructionCost Lat = getCost(Inst, TTI::TCK_Latency, TTI, TLI); in run()
120 InstructionCost SizeLat = in run()
[all …]
H A DTargetTransformInfo.cpp75 Intrinsic::ID Id, const CallBase &CI, InstructionCost ScalarizationCost, in IntrinsicCostAttributes()
93 InstructionCost ScalarCost) in IntrinsicCostAttributes()
111 InstructionCost ScalarCost, TargetLibraryInfo const *LibInfo) in IntrinsicCostAttributes()
251 InstructionCost TargetTransformInfo::getGEPCost( in getGEPCost()
257 InstructionCost TargetTransformInfo::getPointersChainCost( in getPointersChainCost()
272 InstructionCost
276 InstructionCost Cost = TTIImpl->getInstructionCost(U, Operands, CostKind); in getInstructionCost()
288 InstructionCost TargetTransformInfo::getBranchMispredictPenalty() const { in getBranchMispredictPenalty()
563 InstructionCost TargetTransformInfo::getScalingFactorCost( in getScalingFactorCost()
566 InstructionCost Cost = TTIImpl->getScalingFactorCost( in getScalingFactorCost()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfo.h131 InstructionCost ScalarizationCost = InstructionCost::getInvalid();
137 InstructionCost ScalarCost = InstructionCost::getInvalid(),
143 InstructionCost ScalarCost = InstructionCost::getInvalid());
152 InstructionCost ScalarCost = InstructionCost::getInvalid(),
159 InstructionCost getScalarizationCost() const { return ScalarizationCost; } in getScalarizationCost()
313 LLVM_ABI InstructionCost
352 LLVM_ABI InstructionCost getPointersChainCost(
393 LLVM_ABI InstructionCost getMemcpyCost(const Instruction *I) const;
420 LLVM_ABI InstructionCost getInstructionCost(const User *U,
426 InstructionCost getInstructionCost(const User *U, in getInstructionCost()
[all …]
H A DTargetTransformInfoImpl.h54 virtual InstructionCost getGEPCost(Type *PointeeType, const Value *Ptr, in getGEPCost()
67 virtual InstructionCost
84 virtual InstructionCost
112 virtual InstructionCost getMemcpyCost(const Instruction *I) const { in getMemcpyCost()
128 virtual InstructionCost getBranchMispredictPenalty() const { return 0; } in getBranchMispredictPenalty()
400 virtual InstructionCost getScalingFactorCost(Type *Ty, GlobalValue *BaseGV, in getScalingFactorCost()
409 return InstructionCost::getInvalid(); in getScalingFactorCost()
454 virtual InstructionCost getScalarizationOverhead(
461 virtual InstructionCost
529 virtual InstructionCost getFPOpCost(Type *Ty) const { in getFPOpCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h58 InstructionCost getRISCVInstructionCost(ArrayRef<unsigned> OpCodes, MVT VT,
63 InstructionCost getConstantPoolLoadCost(Type *Ty,
68 InstructionCost getSlideCost(FixedVectorType *Tp, ArrayRef<int> Mask,
78 InstructionCost getStoreImmCost(Type *VecTy, TTI::OperandValueInfo OpInfo,
81 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty,
83 InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx,
87 InstructionCost
103 InstructionCost getPartialReductionCost(
141 InstructionCost
146 InstructionCost
[all …]
H A DRISCVTargetTransformInfo.cpp46 InstructionCost
51 return InstructionCost::getInvalid(); in getRISCVInstructionCost()
55 InstructionCost LMULCost = TLI->getLMULCost(VT); in getRISCVInstructionCost()
58 InstructionCost Cost = 0; in getRISCVInstructionCost()
119 static InstructionCost getIntImmCostImpl(const DataLayout &DL, in getIntImmCostImpl()
136 InstructionCost
169 InstructionCost RISCVTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst()
277 InstructionCost
297 InstructionCost RISCVTTIImpl::getPartialReductionCost( in getPartialReductionCost()
309 return InstructionCost::getInvalid(); in getPartialReductionCost()
[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
61 InstructionCost
105 InstructionCost vectorCostAdjustmentFactor(unsigned Opcode, Type *Ty1,
107 InstructionCost getArithmeticInstrCost(
113 InstructionCost
118 InstructionCost
122 InstructionCost getCFInstrCost(unsigned Opcode, TTI::TargetCostKind CostKind,
124 InstructionCost getCmpSelInstrCost(
[all …]
H A DPPCTargetTransformInfo.cpp163 InstructionCost PPCTTIImpl::getIntImmCost(const APInt &Imm, Type *Ty, in getIntImmCost()
193 InstructionCost
229 InstructionCost PPCTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst()
322 InstructionCost
332 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(U->getType()); in getInstructionCost()
553 InstructionCost PPCTTIImpl::vectorCostAdjustmentFactor(unsigned Opcode, in vectorCostAdjustmentFactor()
561 return InstructionCost::getInvalid(); in vectorCostAdjustmentFactor()
564 return InstructionCost(1); in vectorCostAdjustmentFactor()
566 std::pair<InstructionCost, MVT> LT1 = getTypeLegalizationCost(Ty1); in vectorCostAdjustmentFactor()
570 return InstructionCost(1); in vectorCostAdjustmentFactor()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.h45 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty,
48 InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx,
52 InstructionCost
88 InstructionCost getScalarizationOverhead(
95 InstructionCost getArithmeticInstrCost(
101 InstructionCost
110 InstructionCost
114 InstructionCost getCmpSelInstrCost(
121 InstructionCost getVectorInstrCost(unsigned Opcode, Type *Val,
127 InstructionCost getMemoryOpCost(
[all …]
H A DSystemZTargetTransformInfo.cpp151 InstructionCost
186 InstructionCost SystemZTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst()
306 InstructionCost
371 InstructionCost NumStores = 0; in getUnrollingPreferences()
494 InstructionCost SystemZTTIImpl::getScalarizationOverhead( in getScalarizationOverhead()
499 InstructionCost Cost = 0; in getScalarizationOverhead()
506 InstructionCost CurrVectorCost = 0; in getScalarizationOverhead()
511 Cost += std::min(InstructionCost(1), CurrVectorCost); in getScalarizationOverhead()
542 InstructionCost SystemZTTIImpl::getArithmeticInstrCost( in getArithmeticInstrCost()
689 InstructionCost ScalarCost = in getArithmeticInstrCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.h108 InstructionCost getCallInstrCost(Function *F, Type *RetTy,
111 InstructionCost
114 InstructionCost getAddressComputationCost(Type *Tp, ScalarEvolution *SE,
116 InstructionCost getMemoryOpCost(
121 InstructionCost
125 InstructionCost
130 InstructionCost getGatherScatterOpCost(unsigned Opcode, Type *DataTy,
135 InstructionCost getInterleavedMemoryOpCost(
139 InstructionCost getCmpSelInstrCost(
145 InstructionCost getArithmeticInstrCost(
[all …]
H A DHexagonTargetTransformInfo.cpp142 InstructionCost
148 InstructionCost
152 std::pair<InstructionCost, MVT> LT = in getIntrinsicInstrCost()
159 InstructionCost HexagonTTIImpl::getAddressComputationCost(Type *Tp, in getAddressComputationCost()
165 InstructionCost HexagonTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost()
221 InstructionCost
229 InstructionCost
238 InstructionCost HexagonTTIImpl::getGatherScatterOpCost( in getGatherScatterOpCost()
245 InstructionCost HexagonTTIImpl::getInterleavedMemoryOpCost( in getInterleavedMemoryOpCost()
257 InstructionCost HexagonTTIImpl::getCmpSelInstrCost( in getCmpSelInstrCost()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.h133 InstructionCost getIntImmCodeSizeCost(unsigned Opcode, unsigned Idx,
138 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty,
141 InstructionCost getIntImmCostInst(unsigned Opcode, unsigned Idx,
217 InstructionCost getMemcpyCost(const Instruction *I) const override;
225 InstructionCost
239 InstructionCost getCFInstrCost(unsigned Opcode, TTI::TargetCostKind CostKind,
242 InstructionCost
247 InstructionCost getCmpSelInstrCost(
255 InstructionCost getVectorInstrCost(unsigned Opcode, Type *Val,
260 InstructionCost getAddressComputationCost(Type *Val, ScalarEvolution *SE,
[all …]
H A DARMTargetTransformInfo.cpp320 InstructionCost ARMTTIImpl::getIntImmCost(const APInt &Imm, Type *Ty, in getIntImmCost()
355 InstructionCost ARMTTIImpl::getIntImmCodeSizeCost(unsigned Opcode, unsigned Idx, in getIntImmCodeSizeCost()
413 InstructionCost ARMTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst()
484 InstructionCost ARMTTIImpl::getCFInstrCost(unsigned Opcode, in getCFInstrCost()
498 InstructionCost ARMTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost()
507 auto AdjustCost = [&CostKind](InstructionCost Cost) -> InstructionCost { in getCastInstrCost()
664 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Src); in getCastInstrCost()
852 const InstructionCost CallCost = in getCastInstrCost()
902 InstructionCost ARMTTIImpl::getVectorInstrCost(unsigned Opcode, Type *ValTy, in getVectorInstrCost()
923 return std::max<InstructionCost>( in getVectorInstrCost()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h91 InstructionCost
94 InstructionCost Cost = 0; in getBroadcastShuffleOverhead()
109 InstructionCost
112 InstructionCost Cost = 0; in getPermuteShuffleOverhead()
131 InstructionCost getExtractSubvectorOverhead(VectorType *VTy, in getExtractSubvectorOverhead()
143 InstructionCost Cost = 0; in getExtractSubvectorOverhead()
159 InstructionCost getInsertSubvectorOverhead(VectorType *VTy, in getInsertSubvectorOverhead()
171 InstructionCost Cost = 0; in getInsertSubvectorOverhead()
211 InstructionCost getCommonMaskedMemoryOpCost(unsigned Opcode, Type *DataTy,
219 return InstructionCost::getInvalid();
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp53 InstructionCost WebAssemblyTTIImpl::getArithmeticInstrCost( in getArithmeticInstrCost()
58 InstructionCost Cost = in getArithmeticInstrCost()
82 InstructionCost WebAssemblyTTIImpl::getCastInstrCost( in getCastInstrCost()
144 InstructionCost WebAssemblyTTIImpl::getMemoryOpCost( in getMemoryOpCost()
167 return InstructionCost::getInvalid(); in getMemoryOpCost()
185 InstructionCost WebAssemblyTTIImpl::getVectorInstrCost( in getVectorInstrCost()
188 InstructionCost Cost = BasicTTIImplBase::getVectorInstrCost( in getVectorInstrCost()
198 InstructionCost WebAssemblyTTIImpl::getPartialReductionCost( in getPartialReductionCost()
203 InstructionCost Invalid = InstructionCost::getInvalid(); in getPartialReductionCost()
210 InstructionCost Cost(TTI::TCC_Basic); in getPartialReductionCost()
H A DWebAssemblyTargetTransformInfo.h65 InstructionCost getArithmeticInstrCost(
72 InstructionCost
76 InstructionCost getMemoryOpCost(
82 InstructionCost getVectorInstrCost(unsigned Opcode, Type *Val,
86 InstructionCost getPartialReductionCost(
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.h102 std::pair<InstructionCost, MVT> getTypeLegalizationCost(Type *Ty) const;
157 InstructionCost getArithmeticInstrCost(
164 InstructionCost getCFInstrCost(unsigned Opcode, TTI::TargetCostKind CostKind,
171 InstructionCost getVectorInstrCost(unsigned Opcode, Type *ValTy,
236 InstructionCost getVectorSplitCost() const { return 0; } in getVectorSplitCost()
238 InstructionCost
260 InstructionCost
265 InstructionCost
268 InstructionCost
295 InstructionCost getMemoryOpCost(
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXTargetTransformInfo.h102 InstructionCost
106 InstructionCost getArithmeticInstrCost(
113 InstructionCost getScalarizationOverhead(
118 return InstructionCost::getInvalid();
122 InstructionCost Cost = 0;
139 InstructionCost Cost = 3; // 3 x PRMT
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DRegion.h30 InstructionCost AfterCost = 0;
32 InstructionCost BeforeCost = 0;
34 LLVM_ABI InstructionCost getCost(Instruction *I) const;
46 InstructionCost getAfterCost() const { return AfterCost; } in getAfterCost()
48 InstructionCost getBeforeCost() const { return BeforeCost; } in getBeforeCost()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp274 InstructionCost OldCost = in vectorizeLoadInsert()
282 InstructionCost NewCost = in vectorizeLoadInsert()
356 InstructionCost OldCost = in widenSubvectorLoad()
360 InstructionCost NewCost = in widenSubvectorLoad()
395 InstructionCost Cost0 = in getShuffleExtract()
397 InstructionCost Cost1 = in getShuffleExtract()
442 InstructionCost ScalarOpCost, VectorOpCost; in isExtractExtractCheap()
464 InstructionCost Extract0Cost = in isExtractExtractCheap()
466 InstructionCost Extract1Cost = in isExtractExtractCheap()
478 InstructionCost CheapExtractCost = std::min(Extract0Cost, Extract1Cost); in isExtractExtractCheap()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiTargetTransformInfo.h53 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty, in getIntImmCost()
81 InstructionCost
88 InstructionCost
94 InstructionCost getArithmeticInstrCost(

1234