Home
last modified time | relevance | path

Searched refs:TTI (Results 1 – 25 of 65) 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.h33 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/
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
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/
DNVPTXTargetTransformInfo.h30 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);
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()
122 TTI::UnrollingPreferences &UP) { in getUnrollingPreferences()
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.h31 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);
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<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/
DX86TargetTransformInfo.h30 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);
DX86TargetTransformInfo.cpp41 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/
DARMTargetTransformInfo.h30 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/
DCostModel.cpp45 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 …]
DDivergenceAnalysis.cpp87 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()
DCodeMetrics.cpp106 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/
DSimplifyCFGPass.cpp129 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()
DSpeculativeExecution.cpp99 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()
DEarlyCSE.cpp268 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 …]
DStraightLineStrengthReduce.cpp128 : 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 …]
DLoopStrengthReduce.cpp853 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 …]
DConstantHoisting.cpp109 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/
DAMDGPUTargetTransformInfo.h30 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/
DHexagonTargetTransformInfo.h29 typedef TargetTransformInfo TTI; typedef
53 TTI::PopcntSupportKind getPopcntSupport(unsigned IntTyWidthInBit) const;
56 void getUnrollingPreferences(Loop *L, TTI::UnrollingPreferences &UP);
/external/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h43 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/
DLoopVectorize.cpp316 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/
DWebAssemblyTargetTransformInfo.h31 typedef TargetTransformInfo TTI; typedef
57 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const;

123