| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | InstructionCost.h | 30 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 D | X86TargetTransformInfo.h | 140 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 D | AArch64TargetTransformInfo.h | 73 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 D | CostModel.cpp | 52 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 D | TargetTransformInfo.cpp | 75 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 D | TargetTransformInfo.h | 131 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 D | TargetTransformInfoImpl.h | 54 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 D | RISCVTargetTransformInfo.h | 58 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 D | RISCVTargetTransformInfo.cpp | 46 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 D | PPCTargetTransformInfo.h | 50 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 D | PPCTargetTransformInfo.cpp | 163 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 D | SystemZTargetTransformInfo.h | 45 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 D | SystemZTargetTransformInfo.cpp | 151 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 D | HexagonTargetTransformInfo.h | 108 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 D | HexagonTargetTransformInfo.cpp | 142 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 D | ARMTargetTransformInfo.h | 133 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 D | ARMTargetTransformInfo.cpp | 320 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 D | BasicTTIImpl.h | 91 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 D | WebAssemblyTargetTransformInfo.cpp | 53 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 D | WebAssemblyTargetTransformInfo.h | 65 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 D | AMDGPUTargetTransformInfo.h | 102 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 D | NVPTXTargetTransformInfo.h | 102 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 D | Region.h | 30 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 D | VectorCombine.cpp | 274 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 D | LanaiTargetTransformInfo.h | 53 InstructionCost getIntImmCost(const APInt &Imm, Type *Ty, in getIntImmCost() 81 InstructionCost 88 InstructionCost 94 InstructionCost getArithmeticInstrCost(
|