/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 41 return TTI::TCC_Free; in getIntImmCost() 44 return TTI::TCC_Free; in getIntImmCost() 47 return TTI::TCC_Free; in getIntImmCost() 52 return TTI::TCC_Basic; in getIntImmCost() 55 return TTI::TCC_Basic; in getIntImmCost() 58 return TTI::TCC_Basic; in getIntImmCost() 60 return 2 * TTI::TCC_Basic; in getIntImmCost() 63 return 4 * TTI::TCC_Basic; in getIntImmCost() 74 return TTI::TCC_Free; in getIntImmCost() 77 return TTI::TCC_Free; in getIntImmCost() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | TargetTransformInfoImpl.h | 33 typedef TargetTransformInfo TTI; typedef 51 return TTI::TCC_Basic; in getOperationCost() 60 return TTI::TCC_Free; in getOperationCost() 63 return TTI::TCC_Basic; in getOperationCost() 71 return TTI::TCC_Expensive; in getOperationCost() 79 return TTI::TCC_Free; in getOperationCost() 82 return TTI::TCC_Basic; in getOperationCost() 90 return TTI::TCC_Free; in getOperationCost() 93 return TTI::TCC_Basic; in getOperationCost() 99 return TTI::TCC_Free; in getOperationCost() [all …]
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 34 return TTI::PSK_FastHardware; in getPopcntSupport() 35 return TTI::PSK_Software; in getPopcntSupport() 49 return TTI::TCC_Free; in getIntImmCost() 53 return TTI::TCC_Basic; in getIntImmCost() 58 return TTI::TCC_Basic; in getIntImmCost() 60 return 2 * TTI::TCC_Basic; in getIntImmCost() 64 return 4 * TTI::TCC_Basic; in getIntImmCost() 80 return TTI::TCC_Free; in getIntImmCost() 86 return TTI::TCC_Free; in getIntImmCost() 90 return TTI::TCC_Free; in getIntImmCost() [all …]
|
D | PPCTargetTransformInfo.h | 30 typedef TargetTransformInfo TTI; typedef 61 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth); 62 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP); 76 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, 77 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, 78 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 79 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None); 80 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXTargetTransformInfo.h | 30 typedef TargetTransformInfo TTI; typedef 57 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, 58 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, 59 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 60 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None); 62 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP);
|
D | NVPTXTargetTransformInfo.cpp | 93 unsigned Opcode, Type *Ty, TTI::OperandValueKind Opd1Info, in getArithmeticInstrCost() 94 TTI::OperandValueKind Opd2Info, TTI::OperandValueProperties Opd1PropInfo, in getArithmeticInstrCost() 95 TTI::OperandValueProperties Opd2PropInfo) { in getArithmeticInstrCost() 122 TTI::UnrollingPreferences &UP) { in getUnrollingPreferences()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.h | 31 typedef TargetTransformInfo TTI; typedef 71 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth); 106 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, 107 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, 108 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 109 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None); 120 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP);
|
D | AArch64TargetTransformInfo.cpp | 72 return TTI::TCC_Free; in getIntImmCost() 77 return TTI::TCC_Free; in getIntImmCost() 81 return 2 * TTI::TCC_Basic; in getIntImmCost() 82 return TTI::TCC_Free; in getIntImmCost() 104 return TTI::TCC_Free; in getIntImmCost() 123 return (Cost <= NumConstants * TTI::TCC_Basic) in getIntImmCost() 124 ? static_cast<int>(TTI::TCC_Free) in getIntImmCost() 138 return TTI::TCC_Free; in getIntImmCost() 142 return TTI::TCC_Free; in getIntImmCost() 152 return (Cost <= NumConstants * TTI::TCC_Basic) in getIntImmCost() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.h | 30 typedef TargetTransformInfo TTI; typedef 55 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth); 67 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, 68 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, 69 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 70 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None); 71 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
|
D | X86TargetTransformInfo.cpp | 41 return ST->hasPOPCNT() ? TTI::PSK_FastHardware : TTI::PSK_Software; in getPopcntSupport() 89 unsigned Opcode, Type *Ty, TTI::OperandValueKind Op1Info, in getArithmeticInstrCost() 90 TTI::OperandValueKind Op2Info, TTI::OperandValueProperties Opd1PropInfo, in getArithmeticInstrCost() 91 TTI::OperandValueProperties Opd2PropInfo) { in getArithmeticInstrCost() 415 int X86TTIImpl::getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, in getShuffleCost() 418 if (Kind != TTI::SK_Reverse && Kind != TTI::SK_Alternate) in getShuffleCost() 421 if (Kind == TTI::SK_Reverse) { in getShuffleCost() 431 if (Kind == TTI::SK_Alternate) { in getShuffleCost() 1030 Cost += getShuffleCost(TTI::SK_Alternate, SrcVTy, 0, nullptr) + in getMaskedMemoryOpCost() 1031 getShuffleCost(TTI::SK_Alternate, MaskTy, 0, nullptr); in getMaskedMemoryOpCost() [all …]
|
/external/llvm/lib/Target/ARM/ |
D | ARMTargetTransformInfo.h | 30 typedef TargetTransformInfo TTI; typedef 97 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp); 111 TTI::OperandValueKind Op1Info = TTI::OK_AnyValue, 112 TTI::OperandValueKind Op2Info = TTI::OK_AnyValue, 113 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 114 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None);
|
/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 45 CostModelAnalysis() : FunctionPass(ID), F(nullptr), TTI(nullptr) { in CostModelAnalysis() 64 const TargetTransformInfo *TTI; member in __anon5255fed00111::CostModelAnalysis 87 TTI = TTIWP ? &TTIWP->getTTI(F) : nullptr; in runOnFunction() 379 if (!TTI) in getInstructionCost() 384 return TTI->getUserCost(I); in getInstructionCost() 389 return TTI->getCFInstrCost(I->getOpcode()); in getInstructionCost() 413 return TTI->getArithmeticInstrCost(I->getOpcode(), I->getType(), Op1VK, in getInstructionCost() 419 return TTI->getCmpSelInstrCost(I->getOpcode(), I->getType(), CondTy); in getInstructionCost() 424 return TTI->getCmpSelInstrCost(I->getOpcode(), ValTy); in getInstructionCost() 429 return TTI->getMemoryOpCost(I->getOpcode(), ValTy, in getInstructionCost() [all …]
|
D | DivergenceAnalysis.cpp | 87 DivergencePropagator(Function &F, TargetTransformInfo &TTI, DominatorTree &DT, in DivergencePropagator() argument 89 : F(F), TTI(TTI), DT(DT), PDT(PDT), DV(DV) {} in DivergencePropagator() 108 TargetTransformInfo &TTI; member in __anon485c62c60111::DivergencePropagator 119 if (TTI.isSourceOfDivergence(&I)) { in populateWithSourcesOfDivergence() 125 if (TTI.isSourceOfDivergence(&Arg)) { in populateWithSourcesOfDivergence() 281 TargetTransformInfo &TTI = TTIWP->getTTI(F); in runOnFunction() local 284 if (!TTI.hasBranchDivergence()) in runOnFunction() 288 DivergencePropagator DP(F, TTI, in runOnFunction()
|
D | CodeMetrics.cpp | 106 const TargetTransformInfo &TTI, in analyzeBasicBlock() argument 134 if (TTI.isLoweredToCall(F)) in analyzeBasicBlock() 163 NumInsts += TTI.getUserCost(&*II); in analyzeBasicBlock()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SimplifyCFGPass.cpp | 129 static bool iterativelySimplifyCFG(Function &F, const TargetTransformInfo &TTI, in iterativelySimplifyCFG() argument 139 if (SimplifyCFG(&*BBIt++, TTI, BonusInstThreshold, AC)) { in iterativelySimplifyCFG() 149 static bool simplifyFunctionCFG(Function &F, const TargetTransformInfo &TTI, in simplifyFunctionCFG() argument 153 EverChanged |= iterativelySimplifyCFG(F, TTI, AC, BonusInstThreshold); in simplifyFunctionCFG() 167 EverChanged = iterativelySimplifyCFG(F, TTI, AC, BonusInstThreshold); in simplifyFunctionCFG() 182 auto &TTI = AM->getResult<TargetIRAnalysis>(F); in run() local 185 if (!simplifyFunctionCFG(F, TTI, &AC, BonusInstThreshold)) in run() 212 const TargetTransformInfo &TTI = in runOnFunction() local 214 return simplifyFunctionCFG(F, TTI, AC, BonusInstThreshold); in runOnFunction()
|
D | SpeculativeExecution.cpp | 99 const TargetTransformInfo *TTI = nullptr; member in __anon207d226f0111::SpeculativeExecution 118 TTI = &getAnalysis<TargetTransformInfoWrapperPass>().getTTI(F); in runOnFunction() 172 const TargetTransformInfo &TTI) { in ComputeSpeculationCost() argument 187 return TTI.getUserCost(I); in ComputeSpeculationCost() 209 const unsigned Cost = ComputeSpeculationCost(&I, *TTI); in considerHoistingFromTo()
|
D | EarlyCSE.cpp | 268 const TargetTransformInfo &TTI; member in __anonc2cac6ee0311::EarlyCSE 328 EarlyCSE(const TargetLibraryInfo &TLI, const TargetTransformInfo &TTI, in EarlyCSE() argument 330 : TLI(TLI), TTI(TTI), DT(DT), AC(AC), CurrentGeneration(0) {} in EarlyCSE() 400 ParseMemoryInst(Instruction *Inst, const TargetTransformInfo &TTI) in ParseMemoryInst() argument 403 if (TTI.getTgtMemIntrinsic(II, Info) && Info.NumMemRefs == 1) in ParseMemoryInst() 496 return TTI.getOrCreateResultFromMemIntrinsic(cast<IntrinsicInst>(Inst), in getOrCreateResult() 598 ParseMemoryInst MemInst(Inst, TTI); in processNode() 695 ParseMemoryInst(LastStore, TTI).getPointerOperand() == in processNode() 723 ParseMemoryInst LastStoreMemInst(LastStore, TTI); in processNode() 823 auto &TTI = AM->getResult<TargetIRAnalysis>(F); in run() local [all …]
|
D | StraightLineStrengthReduce.cpp | 128 : FunctionPass(ID), DL(nullptr), DT(nullptr), TTI(nullptr) { in StraightLineStrengthReduce() 152 bool isFoldable(const Candidate &C, TargetTransformInfo *TTI, 202 TargetTransformInfo *TTI; member in __anondafd89eb0111::StraightLineStrengthReduce 239 const TargetTransformInfo *TTI, in isGEPFoldable() argument 273 return TTI->isLegalAddressingMode(GEP->getType()->getElementType(), BaseGV, in isGEPFoldable() 279 TargetTransformInfo *TTI) { in isAddFoldable() argument 280 return TTI->isLegalAddressingMode(Base->getType(), nullptr, 0, true, in isAddFoldable() 285 TargetTransformInfo *TTI, in isFoldable() argument 288 return isAddFoldable(C.Base, C.Index, C.Stride, TTI); in isFoldable() 290 return isGEPFoldable(cast<GetElementPtrInst>(C.Ins), TTI, DL); in isFoldable() [all …]
|
D | LoopStrengthReduce.cpp | 853 static bool isAMCompletelyFolded(const TargetTransformInfo &TTI, 856 static unsigned getScalingFactorCost(const TargetTransformInfo &TTI, 897 void RateFormula(const TargetTransformInfo &TTI, 989 void Cost::RateFormula(const TargetTransformInfo &TTI, in RateFormula() argument 1025 NumBaseParts - (1 + (F.Scale && isAMCompletelyFolded(TTI, LU, F))); in RateFormula() 1029 ScaleCost += getScalingFactorCost(TTI, LU, F); in RateFormula() 1372 static bool isAMCompletelyFolded(const TargetTransformInfo &TTI, in isAMCompletelyFolded() argument 1378 return TTI.isLegalAddressingMode(AccessTy.MemTy, BaseGV, BaseOffset, in isAMCompletelyFolded() 1406 return TTI.isLegalICmpImmediate(BaseOffset); in isAMCompletelyFolded() 1424 static bool isAMCompletelyFolded(const TargetTransformInfo &TTI, in isAMCompletelyFolded() argument [all …]
|
D | ConstantHoisting.cpp | 109 const TargetTransformInfo *TTI; member in __anonb15c9cc50111::ConstantHoisting 123 ConstantHoisting() : FunctionPass(ID), TTI(nullptr), DT(nullptr), in ConstantHoisting() 142 TTI = &getAnalysis<TargetTransformInfoWrapperPass>().getTTI(Fn); in setup() 152 TTI = nullptr; in cleanup() 283 Cost = TTI->getIntImmCost(IntrInst->getIntrinsicID(), Idx, in collectConstantCandidates() 286 Cost = TTI->getIntImmCost(Inst->getOpcode(), Idx, ConstInt->getValue(), in collectConstantCandidates() 426 TTI->isLegalAddImmediate(Diff.getSExtValue())) in findBaseConstants()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetTransformInfo.h | 30 typedef TargetTransformInfo TTI; typedef 53 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP); 55 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) { in getPopcntSupport() 57 return ST->hasBCNT(TyWidth) ? TTI::PSK_FastHardware : TTI::PSK_Software; in getPopcntSupport()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonTargetTransformInfo.h | 29 typedef TargetTransformInfo TTI; typedef 53 TTI::PopcntSupportKind getPopcntSupport(unsigned IntTyWidthInBit) const; 56 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP);
|
/external/llvm/include/llvm/CodeGen/ |
D | BasicTTIImpl.h | 43 typedef TargetTransformInfo TTI; typedef 219 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP) { in getUnrollingPreferences() 287 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, 288 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, 289 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 290 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None) { 330 unsigned getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, in getShuffleCost() 332 if (Kind == TTI::SK_Alternate) { in getShuffleCost() 781 ->getShuffleCost(TTI::SK_ExtractSubvector, Ty, NumVecElts / 2, Ty); in getReductionCost()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 316 const TargetTransformInfo *TTI, unsigned VecWidth, in InnerLoopVectorizer() argument 318 : OrigLoop(OrigLoop), PSE(PSE), LI(LI), DT(DT), TLI(TLI), TTI(TTI), in InnerLoopVectorizer() 503 const TargetTransformInfo *TTI; member in __anon29f56d100111::InnerLoopVectorizer 564 const TargetTransformInfo *TTI, unsigned UnrollFactor) in InnerLoopUnroller() argument 565 : InnerLoopVectorizer(OrigLoop, PSE, LI, DT, TLI, TTI, 1, UnrollFactor) {} in InnerLoopUnroller() 1187 const TargetTransformInfo *TTI, in LoopVectorizationLegality() argument 1192 TTI(TTI), DT(DT), LAA(LAA), LAI(nullptr), InterleaveInfo(PSE, L, DT), in LoopVectorizationLegality() 1278 return isConsecutivePtr(Ptr) && TTI->isLegalMaskedStore(DataType); in isLegalMaskedStore() 1283 return isConsecutivePtr(Ptr) && TTI->isLegalMaskedLoad(DataType); in isLegalMaskedLoad() 1352 const TargetTransformInfo *TTI; member in __anon29f56d100111::LoopVectorizationLegality [all …]
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyTargetTransformInfo.h | 31 typedef TargetTransformInfo TTI; typedef 57 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const;
|