/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/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 41 TTI::PSK_SlowHardware : TTI::PSK_FastHardware; in getPopcntSupport() 42 return TTI::PSK_Software; in getPopcntSupport() 56 return TTI::TCC_Free; in getIntImmCost() 60 return TTI::TCC_Basic; in getIntImmCost() 65 return TTI::TCC_Basic; in getIntImmCost() 67 return 2 * TTI::TCC_Basic; in getIntImmCost() 71 return 4 * TTI::TCC_Basic; in getIntImmCost() 87 return TTI::TCC_Free; in getIntImmCost() 93 return TTI::TCC_Free; in getIntImmCost() 97 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); 78 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, 79 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, 80 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 81 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None); 82 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetTransformInfo.h | 30 typedef TargetTransformInfo TTI; typedef 76 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP); 78 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) { in getPopcntSupport() 80 return TTI::PSK_FastHardware; in getPopcntSupport() 90 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, 91 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, 92 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 93 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None);
|
/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/Lanai/ |
D | LanaiTargetTransformInfo.h | 30 typedef TargetTransformInfo TTI; typedef 54 return TTI::PSK_FastHardware; in getPopcntSupport() 55 return TTI::PSK_Software; in getPopcntSupport() 60 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, 61 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, 62 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 63 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None) {
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXTargetTransformInfo.h | 30 typedef TargetTransformInfo TTI; typedef 61 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, 62 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, 63 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 64 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None); 66 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/WebAssembly/ |
D | WebAssemblyTargetTransformInfo.h | 31 typedef TargetTransformInfo TTI; typedef 57 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const; 68 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, 69 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, 70 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 71 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None);
|
D | WebAssemblyTargetTransformInfo.cpp | 47 unsigned Opcode, Type *Ty, TTI::OperandValueKind Opd1Info, in getArithmeticInstrCost() 48 TTI::OperandValueKind Opd2Info, TTI::OperandValueProperties Opd1PropInfo, in getArithmeticInstrCost() 49 TTI::OperandValueProperties Opd2PropInfo) { in getArithmeticInstrCost() 62 if (Opd2Info != TTI::OK_UniformValue && in getArithmeticInstrCost() 63 Opd2Info != TTI::OK_UniformConstantValue) in getArithmeticInstrCost()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.h | 31 typedef TargetTransformInfo TTI; typedef 71 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth); 109 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue, 110 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue, 111 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 112 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None); 123 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/ARM/ |
D | ARMTargetTransformInfo.h | 30 typedef TargetTransformInfo TTI; typedef 106 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp); 120 TTI::OperandValueKind Op1Info = TTI::OK_AnyValue, 121 TTI::OperandValueKind Op2Info = TTI::OK_AnyValue, 122 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None, 123 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None);
|
/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);
|
/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 45 CostModelAnalysis() : FunctionPass(ID), F(nullptr), TTI(nullptr) { in CostModelAnalysis() 64 const TargetTransformInfo *TTI; member in __anonf9986d4e0111::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 | 85 DivergencePropagator(Function &F, TargetTransformInfo &TTI, DominatorTree &DT, in DivergencePropagator() argument 87 : F(F), TTI(TTI), DT(DT), PDT(PDT), DV(DV) {} in DivergencePropagator() 106 TargetTransformInfo &TTI; member in __anonc16dff040111::DivergencePropagator 117 if (TTI.isSourceOfDivergence(&I)) { in populateWithSourcesOfDivergence() 123 if (TTI.isSourceOfDivergence(&Arg)) { in populateWithSourcesOfDivergence() 290 TargetTransformInfo &TTI = TTIWP->getTTI(F); in runOnFunction() local 293 if (!TTI.hasBranchDivergence()) in runOnFunction() 298 DivergencePropagator DP(F, TTI, in runOnFunction()
|
/external/llvm/lib/Transforms/Scalar/ |
D | SimplifyCFGPass.cpp | 131 static bool iterativelySimplifyCFG(Function &F, const TargetTransformInfo &TTI, in iterativelySimplifyCFG() argument 148 if (SimplifyCFG(&*BBIt++, TTI, BonusInstThreshold, AC, &LoopHeaders)) { in iterativelySimplifyCFG() 158 static bool simplifyFunctionCFG(Function &F, const TargetTransformInfo &TTI, in simplifyFunctionCFG() argument 162 EverChanged |= iterativelySimplifyCFG(F, TTI, AC, BonusInstThreshold); in simplifyFunctionCFG() 176 EverChanged = iterativelySimplifyCFG(F, TTI, AC, BonusInstThreshold); in simplifyFunctionCFG() 191 auto &TTI = AM.getResult<TargetIRAnalysis>(F); in run() local 194 if (!simplifyFunctionCFG(F, TTI, &AC, BonusInstThreshold)) in run() 219 const TargetTransformInfo &TTI = in runOnFunction() local 221 return simplifyFunctionCFG(F, TTI, AC, BonusInstThreshold); in runOnFunction()
|
D | PartiallyInlineLibCalls.cpp | 84 const TargetTransformInfo *TTI) { in runPartiallyInlineLibCalls() argument 109 if (TTI->haveFastSqrt(Call->getType()) && in runPartiallyInlineLibCalls() 128 auto &TTI = AM.getResult<TargetIRAnalysis>(F); in run() local 129 if (!runPartiallyInlineLibCalls(F, &TLI, &TTI)) in run() 156 const TargetTransformInfo *TTI = in runOnFunction() local 158 return runPartiallyInlineLibCalls(F, TLI, TTI); in runOnFunction()
|
D | SpeculativeExecution.cpp | 129 const TargetTransformInfo *TTI = nullptr; member in __anon54c5dbed0111::SpeculativeExecution 149 TTI = &getAnalysis<TargetTransformInfoWrapperPass>().getTTI(F); in runOnFunction() 150 if (OnlyIfDivergentTarget && !TTI->hasBranchDivergence()) { in runOnFunction() 208 const TargetTransformInfo &TTI) { in ComputeSpeculationCost() argument 223 return TTI.getUserCost(I); in ComputeSpeculationCost() 245 const unsigned Cost = ComputeSpeculationCost(&I, *TTI); in considerHoistingFromTo()
|
D | LoopDataPrefetch.cpp | 99 return TTI->getMinPrefetchStride(); in getMinPrefetchStride() 105 return TTI->getPrefetchDistance(); in getPrefetchDistance() 111 return TTI->getMaxPrefetchIterationsAhead(); in getMaxPrefetchIterationsAhead() 117 const TargetTransformInfo *TTI; member in __anon95e175b90111::LoopDataPrefetch 158 TTI = &getAnalysis<TargetTransformInfoWrapperPass>().getTTI(F); in runOnFunction() 165 assert(TTI->getCacheLineSize() && "Cache line size is not set for target"); in runOnFunction() 200 Metrics.analyzeBasicBlock(*I, *TTI, EphValues); in runOnLoop() 261 if (PD < (int64_t) TTI->getCacheLineSize()) { in runOnLoop()
|
D | EarlyCSE.cpp | 251 const TargetTransformInfo &TTI; member in __anon59dad36c0311::EarlyCSE 314 EarlyCSE(const TargetLibraryInfo &TLI, const TargetTransformInfo &TTI, in EarlyCSE() argument 316 : TLI(TLI), TTI(TTI), DT(DT), AC(AC), CurrentGeneration(0) {} in EarlyCSE() 386 ParseMemoryInst(Instruction *Inst, const TargetTransformInfo &TTI) in ParseMemoryInst() argument 389 if (TTI.getTgtMemIntrinsic(II, Info) && Info.NumMemRefs == 1) in ParseMemoryInst() 487 return TTI.getOrCreateResultFromMemIntrinsic(cast<IntrinsicInst>(Inst), in getOrCreateResult() 618 ParseMemoryInst MemInst(Inst, TTI); in processNode() 722 ParseMemoryInst(LastStore, TTI).getPointerOperand() == in processNode() 750 ParseMemoryInst LastStoreMemInst(LastStore, TTI); in processNode() 850 auto &TTI = AM.getResult<TargetIRAnalysis>(F); in run() local [all …]
|
D | TailRecursionElimination.cpp | 446 const TargetTransformInfo *TTI) { in findTRECandidate() argument 479 !TTI->isLoweredToCall(CI->getCalledFunction())) { in findTRECandidate() 678 const TargetTransformInfo *TTI) { in foldReturnAndProcessPred() argument 697 if (CallInst *CI = findTRECandidate(BI, CannotTailCallElimCallsMarkedTail, TTI)){ in foldReturnAndProcessPred() 724 const TargetTransformInfo *TTI) { in processReturningBlock() argument 725 CallInst *CI = findTRECandidate(Ret, CannotTailCallElimCallsMarkedTail, TTI); in processReturningBlock() 734 static bool eliminateTailRecursion(Function &F, const TargetTransformInfo *TTI) { in eliminateTailRecursion() argument 769 ArgumentPHIs, !CanTRETailMarkedCall, TTI); in eliminateTailRecursion() 773 ArgumentPHIs, !CanTRETailMarkedCall, TTI); in eliminateTailRecursion() 831 TargetTransformInfo &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 __anonde56e9e90111::StraightLineStrengthReduce 238 const TargetTransformInfo *TTI) { in isGEPFoldable() argument 242 return TTI->getGEPCost(GEP->getSourceElementType(), GEP->getPointerOperand(), in isGEPFoldable() 248 TargetTransformInfo *TTI) { in isAddFoldable() argument 251 TTI->isLegalAddressingMode(Base->getType(), nullptr, 0, true, in isAddFoldable() 256 TargetTransformInfo *TTI, in isFoldable() argument 259 return isAddFoldable(C.Base, C.Index, C.Stride, TTI); in isFoldable() 261 return isGEPFoldable(cast<GetElementPtrInst>(C.Ins), TTI); in isFoldable() [all …]
|
D | LoopUnrollPass.cpp | 110 Loop *L, const TargetTransformInfo &TTI, Optional<unsigned> UserThreshold, in gatherUnrollingPreferences() argument 132 TTI.getUnrollingPreferences(L, UP); in gatherUnrollingPreferences() 236 ScalarEvolution &SE, const TargetTransformInfo &TTI, in analyzeLoopUnrollCost() argument 329 UnrolledCost += TTI.getUserCost(I); in analyzeLoopUnrollCost() 417 RolledDynamicCost += TTI.getUserCost(&I); in analyzeLoopUnrollCost() 531 const TargetTransformInfo &TTI, in ApproximateLoopSize() argument 538 Metrics.analyzeBasicBlock(BB, TTI, EphValues); in ApproximateLoopSize() 692 static bool computeUnrollCount(Loop *L, const TargetTransformInfo &TTI, in computeUnrollCount() argument 766 L, TripCount, DT, *SE, TTI, in computeUnrollCount() 898 ScalarEvolution *SE, const TargetTransformInfo &TTI, in tryToUnrollLoop() argument [all …]
|
/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);
|