Home
last modified time | relevance | path

Searched refs:TTI (Results 1 – 25 of 54) sorted by relevance

123

/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp41 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/
DTargetTransformInfoImpl.h31 typedef TargetTransformInfo TTI; typedef
58 return TTI::TCC_Basic; in getOperationCost()
67 return TTI::TCC_Free; in getOperationCost()
70 return TTI::TCC_Basic; in getOperationCost()
74 return TTI::TCC_Basic; in getOperationCost()
81 return TTI::TCC_Free; in getOperationCost()
84 return TTI::TCC_Basic; in getOperationCost()
88 return TTI::TCC_Basic; in getOperationCost()
95 return TTI::TCC_Free; in getOperationCost()
98 return TTI::TCC_Basic; in getOperationCost()
[all …]
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp34 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 …]
DPPCTargetTransformInfo.h30 typedef TargetTransformInfo TTI; typedef
73 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth);
74 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP);
87 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue,
88 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue,
89 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None,
90 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None);
91 unsigned getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index,
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.h30 typedef TargetTransformInfo TTI; typedef
66 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth);
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 unsigned getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index,
DX86TargetTransformInfo.cpp40 return ST->hasPOPCNT() ? TTI::PSK_FastHardware : TTI::PSK_Software; in getPopcntSupport()
82 unsigned Opcode, Type *Ty, TTI::OperandValueKind Op1Info, in getArithmeticInstrCost()
83 TTI::OperandValueKind Op2Info, TTI::OperandValueProperties Opd1PropInfo, in getArithmeticInstrCost()
84 TTI::OperandValueProperties Opd2PropInfo) { in getArithmeticInstrCost()
342 unsigned X86TTIImpl::getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, in getShuffleCost()
345 if (Kind != TTI::SK_Reverse && Kind != TTI::SK_Alternate) in getShuffleCost()
348 if (Kind == TTI::SK_Reverse) { in getShuffleCost()
358 if (Kind == TTI::SK_Alternate) { in getShuffleCost()
852 Cost += getShuffleCost(TTI::SK_Alternate, SrcVTy, 0, 0) + in getMaskedMemoryOpCost()
853 getShuffleCost(TTI::SK_Alternate, MaskTy, 0, 0); in getMaskedMemoryOpCost()
[all …]
/external/llvm/lib/Target/NVPTX/
DNVPTXTargetTransformInfo.h30 typedef TargetTransformInfo TTI; typedef
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);
DNVPTXTargetTransformInfo.cpp93 unsigned Opcode, Type *Ty, TTI::OperandValueKind Opd1Info, in getArithmeticInstrCost()
94 TTI::OperandValueKind Opd2Info, TTI::OperandValueProperties Opd1PropInfo, in getArithmeticInstrCost()
95 TTI::OperandValueProperties Opd2PropInfo) { in getArithmeticInstrCost()
/external/llvm/lib/Target/ARM/
DARMTargetTransformInfo.h30 typedef TargetTransformInfo TTI; typedef
106 unsigned getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index,
121 TTI::OperandValueKind Op1Info = TTI::OK_AnyValue,
122 TTI::OperandValueKind Op2Info = TTI::OK_AnyValue,
123 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None,
124 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None);
DARMTargetTransformInfo.cpp336 unsigned ARMTTIImpl::getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, in getShuffleCost()
339 if (Kind != TTI::SK_Reverse && Kind != TTI::SK_Alternate) in getShuffleCost()
342 if (Kind == TTI::SK_Reverse) { in getShuffleCost()
364 if (Kind == TTI::SK_Alternate) { in getShuffleCost()
393 unsigned Opcode, Type *Ty, TTI::OperandValueKind Op1Info, in getArithmeticInstrCost()
394 TTI::OperandValueKind Op2Info, TTI::OperandValueProperties Opd1PropInfo, in getArithmeticInstrCost()
395 TTI::OperandValueProperties Opd2PropInfo) { in getArithmeticInstrCost()
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.h31 typedef TargetTransformInfo TTI; typedef
88 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth);
121 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue,
122 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue,
123 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None,
124 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None);
135 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP);
DAArch64TargetTransformInfo.cpp72 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<unsigned>(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/Analysis/
DCostModel.cpp45 CostModelAnalysis() : FunctionPass(ID), F(nullptr), TTI(nullptr) { in CostModelAnalysis()
64 const TargetTransformInfo *TTI; member in __anon0882f24f0111::CostModelAnalysis
87 TTI = TTIWP ? &TTIWP->getTTI(F) : nullptr; in runOnFunction()
382 if (!TTI) in getInstructionCost()
388 return TTI->getAddressComputationCost(ValTy); in getInstructionCost()
394 return TTI->getCFInstrCost(I->getOpcode()); in getInstructionCost()
418 return TTI->getArithmeticInstrCost(I->getOpcode(), I->getType(), Op1VK, in getInstructionCost()
424 return TTI->getCmpSelInstrCost(I->getOpcode(), I->getType(), CondTy); in getInstructionCost()
429 return TTI->getCmpSelInstrCost(I->getOpcode(), ValTy); in getInstructionCost()
434 return TTI->getMemoryOpCost(I->getOpcode(), ValTy, in getInstructionCost()
[all …]
DDivergenceAnalysis.cpp130 DivergencePropagator(Function &F, TargetTransformInfo &TTI, in DivergencePropagator() argument
133 : F(F), TTI(TTI), DT(DT), PDT(PDT), DV(DV) {} in DivergencePropagator()
152 TargetTransformInfo &TTI; member in __anonb908b5250211::DivergencePropagator
163 if (TTI.isSourceOfDivergence(&I)) { in populateWithSourcesOfDivergence()
169 if (TTI.isSourceOfDivergence(&Arg)) { in populateWithSourcesOfDivergence()
298 TargetTransformInfo &TTI = TTIWP->getTTI(F); in runOnFunction() local
301 if (!TTI.hasBranchDivergence()) in runOnFunction()
305 DivergencePropagator DP(F, TTI, in runOnFunction()
DCodeMetrics.cpp112 const TargetTransformInfo &TTI, in analyzeBasicBlock() argument
140 if (TTI.isLoweredToCall(F)) in analyzeBasicBlock()
166 NumInsts += TTI.getUserCost(&*II); in analyzeBasicBlock()
/external/llvm/lib/Transforms/Scalar/
DSimplifyCFGPass.cpp129 static bool iterativelySimplifyCFG(Function &F, const TargetTransformInfo &TTI, in iterativelySimplifyCFG() argument
140 if (SimplifyCFG(BBIt++, TTI, BonusInstThreshold, AC)) { in iterativelySimplifyCFG()
150 static bool simplifyFunctionCFG(Function &F, const TargetTransformInfo &TTI, in simplifyFunctionCFG() argument
154 EverChanged |= iterativelySimplifyCFG(F, TTI, AC, BonusInstThreshold); in simplifyFunctionCFG()
168 EverChanged = iterativelySimplifyCFG(F, TTI, AC, BonusInstThreshold); in simplifyFunctionCFG()
183 auto &TTI = AM->getResult<TargetIRAnalysis>(F); in run() local
186 if (!simplifyFunctionCFG(F, TTI, &AC, BonusInstThreshold)) in run()
206 const TargetTransformInfo &TTI = in runOnFunction() local
208 return simplifyFunctionCFG(F, TTI, AC, BonusInstThreshold); in runOnFunction()
DLoopUnrollPass.cpp156 void getUnrollingPreferences(Loop *L, const TargetTransformInfo &TTI, in getUnrollingPreferences() argument
169 TTI.getUnrollingPreferences(L, UP); in getUnrollingPreferences()
334 const TargetTransformInfo &TTI; member in __anon0cdda4420211::UnrollAnalyzer
369 NumberOfOptimizedInstructions += TTI.getUserCost(&I); in visitBinaryOperator()
429 const TargetTransformInfo &TTI) in UnrollAnalyzer() argument
430 : L(L), TripCount(TripCount), SE(SE), TTI(TTI), in UnrollAnalyzer()
478 NumberOfOptimizedInstructions += TTI.getUserCost(LI); in estimateNumberOfOptimizedInstructions()
538 NumberOfOptimizedInstructions += TTI.getUserCost(I); in estimateNumberOfOptimizedInstructions()
555 const TargetTransformInfo &TTI) { in approximateNumberOfOptimizedInstructions() argument
559 UnrollAnalyzer UA(L, TripCount, SE, TTI); in approximateNumberOfOptimizedInstructions()
[all …]
DEarlyCSE.cpp268 const TargetTransformInfo &TTI; member in __anoncdf6c96d0311::EarlyCSE
312 const TargetTransformInfo &TTI, DominatorTree &DT, in EarlyCSE() argument
314 : F(F), TLI(TLI), TTI(TTI), DT(DT), AC(AC), CurrentGeneration(0) {} in EarlyCSE()
384 ParseMemoryInst(Instruction *Inst, const TargetTransformInfo &TTI) in ParseMemoryInst() argument
391 if (!TTI.getTgtMemIntrinsic(II, Info)) in ParseMemoryInst()
446 return TTI.getOrCreateResultFromMemIntrinsic(cast<IntrinsicInst>(Inst), in getOrCreateResult()
524 ParseMemoryInst MemInst(Inst, TTI); in processNode()
602 ParseMemoryInst LastStoreMemInst(LastStore, TTI); in processNode()
689 auto &TTI = AM->getResult<TargetIRAnalysis>(F); in run() local
693 EarlyCSE CSE(F, TLI, TTI, DT, AC); in run()
[all …]
DStraightLineStrengthReduce.cpp126 : FunctionPass(ID), DL(nullptr), DT(nullptr), TTI(nullptr) { in StraightLineStrengthReduce()
150 bool isFoldable(const Candidate &C, TargetTransformInfo *TTI,
200 TargetTransformInfo *TTI; member in __anonaa4ec62a0111::StraightLineStrengthReduce
234 const TargetTransformInfo *TTI, in isGEPFoldable() argument
266 return TTI->isLegalAddressingMode(GEP->getType()->getElementType(), BaseGV, in isGEPFoldable()
272 TargetTransformInfo *TTI) { in isAddFoldable() argument
273 return TTI->isLegalAddressingMode(Base->getType(), nullptr, 0, true, in isAddFoldable()
278 TargetTransformInfo *TTI, in isFoldable() argument
281 return isAddFoldable(C.Base, C.Index, C.Stride, TTI); in isFoldable()
283 return isGEPFoldable(cast<GetElementPtrInst>(C.Ins), TTI, DL); in isFoldable()
[all …]
DLoopStrengthReduce.cpp848 static bool isAMCompletelyFolded(const TargetTransformInfo &TTI,
851 static unsigned getScalingFactorCost(const TargetTransformInfo &TTI,
892 void RateFormula(const TargetTransformInfo &TTI,
984 void Cost::RateFormula(const TargetTransformInfo &TTI, in RateFormula() argument
1022 NumBaseParts - (1 + (F.Scale && isAMCompletelyFolded(TTI, LU, F))); in RateFormula()
1026 ScaleCost += getScalingFactorCost(TTI, LU, F); in RateFormula()
1378 static bool isAMCompletelyFolded(const TargetTransformInfo &TTI, in isAMCompletelyFolded() argument
1384 return TTI.isLegalAddressingMode(AccessTy, BaseGV, BaseOffset, HasBaseReg, Scale); in isAMCompletelyFolded()
1414 return TTI.isLegalICmpImmediate(BaseOffset); in isAMCompletelyFolded()
1432 static bool isAMCompletelyFolded(const TargetTransformInfo &TTI, in isAMCompletelyFolded() argument
[all …]
DConstantHoisting.cpp109 const TargetTransformInfo *TTI; member in __anoneb26ae440111::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/R600/
DAMDGPUTargetTransformInfo.h30 typedef TargetTransformInfo TTI; typedef
64 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP);
66 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) { in getPopcntSupport()
68 return ST->hasBCNT(TyWidth) ? TTI::PSK_FastHardware : TTI::PSK_Software; in getPopcntSupport()
/external/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h43 typedef TargetTransformInfo TTI; typedef
224 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP) { in getUnrollingPreferences()
292 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue,
293 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue,
294 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None,
295 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None) {
339 unsigned getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, in getShuffleCost()
341 if (Kind == TTI::SK_Alternate) { in getShuffleCost()
723 ->getShuffleCost(TTI::SK_ExtractSubvector, Ty, NumVecElts / 2, Ty); in getReductionCost()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp249 const TargetTransformInfo *TTI, unsigned VecWidth, in InnerLoopVectorizer() argument
251 : OrigLoop(OrigLoop), SE(SE), LI(LI), DT(DT), TLI(TLI), TTI(TTI), in InnerLoopVectorizer()
410 const TargetTransformInfo *TTI; member in __anon63bf7e8f0111::InnerLoopVectorizer
461 const TargetTransformInfo *TTI, unsigned UnrollFactor) in InnerLoopUnroller() argument
462 : InnerLoopVectorizer(OrigLoop, SE, LI, DT, TLI, TTI, 1, UnrollFactor) {} in InnerLoopUnroller()
565 Function *F, const TargetTransformInfo *TTI, in LoopVectorizationLegality() argument
568 TTI(TTI), DT(DT), LAA(LAA), LAI(nullptr), Induction(nullptr), in LoopVectorizationLegality()
778 return TTI->isLegalMaskedStore(DataType, isConsecutivePtr(Ptr)); in isLegalMaskedStore()
783 return TTI->isLegalMaskedLoad(DataType, isConsecutivePtr(Ptr)); in isLegalMaskedLoad()
866 const TargetTransformInfo *TTI; member in __anon63bf7e8f0111::LoopVectorizationLegality
[all …]
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp112 const TargetTransformInfo &TTI; member in __anonfb6897ed0111::SimplifyCFGOpt
134 SimplifyCFGOpt(const TargetTransformInfo &TTI, const DataLayout &DL, in SimplifyCFGOpt() argument
136 : TTI(TTI), DL(DL), BonusInstThreshold(BonusInstThreshold), AC(AC) {} in SimplifyCFGOpt()
227 const TargetTransformInfo &TTI) { in ComputeSpeculationCost() argument
230 return TTI.getUserCost(I); in ComputeSpeculationCost()
252 const TargetTransformInfo &TTI) { in DominatesMergePoint() argument
288 unsigned Cost = ComputeSpeculationCost(I, TTI); in DominatesMergePoint()
298 if (!DominatesMergePoint(*i, BB, AggressiveInsts, CostRemaining, TTI)) in DominatesMergePoint()
1056 const TargetTransformInfo &TTI) { in HoistThenElseCodeToIf() argument
1091 if (!TTI.isProfitableToHoist(I1) || !TTI.isProfitableToHoist(I2)) in HoistThenElseCodeToIf()
[all …]

123