Home
last modified time | relevance | path

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

1234567

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/
DLanaiTargetTransformInfo.h30 typedef TargetTransformInfo TTI; typedef
48 return TTI::PSK_FastHardware; in getPopcntSupport()
49 return TTI::PSK_Software; in getPopcntSupport()
55 return TTI::TCC_Free; in getIntImmCost()
57 return TTI::TCC_Basic; in getIntImmCost()
59 return TTI::TCC_Basic; in getIntImmCost()
62 return TTI::TCC_Basic; in getIntImmCost()
63 return 2 * TTI::TCC_Basic; in getIntImmCost()
66 return 4 * TTI::TCC_Basic; in getIntImmCost()
80 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue,
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyTargetTransformInfo.h30 typedef TargetTransformInfo TTI; typedef
49 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) const;
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,
DWebAssemblyTargetTransformInfo.cpp47 unsigned Opcode, Type *Ty, TTI::OperandValueKind Opd1Info, in getArithmeticInstrCost()
48 TTI::OperandValueKind Opd2Info, TTI::OperandValueProperties Opd1PropInfo, in getArithmeticInstrCost()
49 TTI::OperandValueProperties Opd2PropInfo, ArrayRef<const Value *> Args, in getArithmeticInstrCost()
63 if (Opd2Info != TTI::OK_UniformValue && in getArithmeticInstrCost()
64 Opd2Info != TTI::OK_UniformConstantValue) in getArithmeticInstrCost()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp92 return TTI::TCC_Free; in getIntImmCostInst()
97 return TTI::TCC_Free; in getIntImmCostInst()
101 return 2 * TTI::TCC_Basic; in getIntImmCostInst()
102 return TTI::TCC_Free; in getIntImmCostInst()
124 return TTI::TCC_Free; in getIntImmCostInst()
143 return (Cost <= NumConstants * TTI::TCC_Basic) in getIntImmCostInst()
144 ? static_cast<int>(TTI::TCC_Free) in getIntImmCostInst()
158 return TTI::TCC_Free; in getIntImmCostIntrin()
168 return TTI::TCC_Free; in getIntImmCostIntrin()
178 return (Cost <= NumConstants * TTI::TCC_Basic) in getIntImmCostIntrin()
[all …]
DAArch64TargetTransformInfo.h43 using TTI = TargetTransformInfo; variable
80 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth);
124 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue,
125 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue,
126 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None,
127 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None,
136 TTI::MemCmpExpansionOptions enableMemCmpExpansion(bool OptSize,
145 TTI::UnrollingPreferences &UP);
208 TTI::ReductionFlags Flags) const;
213 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXTargetTransformInfo.h29 typedef TargetTransformInfo TTI; typedef
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,
98 TTI::UnrollingPreferences &UP);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/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 …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.h28 typedef TargetTransformInfo TTI; typedef
56 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth);
65 TTI::UnrollingPreferences &UP);
73 TTI::MemCmpExpansionOptions enableMemCmpExpansion(bool OptSize,
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,
96 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
DPPCTargetTransformInfo.cpp54 TTI::PSK_SlowHardware : TTI::PSK_FastHardware; in getPopcntSupport()
55 return TTI::PSK_Software; in getPopcntSupport()
69 return TTI::TCC_Free; in getIntImmCost()
73 return TTI::TCC_Basic; in getIntImmCost()
78 return TTI::TCC_Basic; in getIntImmCost()
80 return 2 * TTI::TCC_Basic; in getIntImmCost()
84 return 4 * TTI::TCC_Basic; in getIntImmCost()
100 return TTI::TCC_Free; in getIntImmCostIntrin()
106 return TTI::TCC_Free; in getIntImmCostIntrin()
110 return TTI::TCC_Free; in getIntImmCostIntrin()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.h20 typedef TargetTransformInfo TTI; typedef
47 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth);
50 TTI::UnrollingPreferences &UP);
74 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue,
75 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue,
76 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None,
77 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None,
80 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
DSystemZTargetTransformInfo.cpp40 return TTI::TCC_Free; in getIntImmCost()
43 return TTI::TCC_Free; in getIntImmCost()
46 return TTI::TCC_Free; in getIntImmCost()
51 return TTI::TCC_Basic; in getIntImmCost()
54 return TTI::TCC_Basic; in getIntImmCost()
57 return TTI::TCC_Basic; in getIntImmCost()
59 return 2 * TTI::TCC_Basic; in getIntImmCost()
62 return 4 * TTI::TCC_Basic; in getIntImmCost()
73 return TTI::TCC_Free; in getIntImmCostInst()
76 return TTI::TCC_Free; in getIntImmCostInst()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUTargetTransformInfo.h43 using TTI = TargetTransformInfo; variable
63 TTI::UnrollingPreferences &UP);
68 using TTI = TargetTransformInfo; variable
141 TTI::UnrollingPreferences &UP);
143 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth) { in getPopcntSupport()
145 return TTI::PSK_FastHardware; in getPopcntSupport()
176 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue,
177 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue,
178 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None,
179 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None,
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonTargetTransformInfo.h35 using TTI = TargetTransformInfo; variable
61 TTI::PopcntSupportKind getPopcntSupport(unsigned IntTyWidthInBit) const;
65 TTI::UnrollingPreferences &UP);
120 unsigned getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index,
132 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue,
133 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue,
134 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None,
135 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp65 return ST->hasPOPCNT() ? TTI::PSK_FastHardware : TTI::PSK_Software; in getPopcntSupport()
173 TTI::OperandValueKind Op1Info, in getArithmeticInstrCost()
174 TTI::OperandValueKind Op2Info, in getArithmeticInstrCost()
175 TTI::OperandValueProperties Opd1PropInfo, in getArithmeticInstrCost()
176 TTI::OperandValueProperties Opd2PropInfo, in getArithmeticInstrCost()
889 int X86TTIImpl::getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, in getShuffleCost()
896 if (Kind == TTI::SK_Transpose) in getShuffleCost()
897 Kind = TTI::SK_PermuteTwoSrc; in getShuffleCost()
902 if (Kind == TTI::SK_Broadcast) in getShuffleCost()
907 if (Kind == TTI::SK_ExtractSubvector && LT.second.isVector()) { in getShuffleCost()
[all …]
DX86TargetTransformInfo.h29 typedef TargetTransformInfo TTI; typedef
103 TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth);
124 TTI::OperandValueKind Opd1Info = TTI::OK_AnyValue,
125 TTI::OperandValueKind Opd2Info = TTI::OK_AnyValue,
126 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None,
127 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None,
130 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
203 TTI::MemCmpExpansionOptions enableMemCmpExpansion(bool OptSize,
/third_party/boost/libs/tti/doc/
Dtti_tests.qbk8 [section:tti_tests Testing TTI]
11 which can be used to test TTI functionality.
14 'tti', will run tests for both basic TTI and for the variadic macro
15 portion of TTI. You can run tests for only the basic TTI,
16 which is the vast majority of TTI functionality, by specifying
19 of TTI, specify the target as 'ttivm'.
21 The TTI library has been successfully tested with:
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSpeculativeExecution.cpp147 auto *TTI = &getAnalysis<TargetTransformInfoWrapperPass>().getTTI(F); in runOnFunction() local
148 return Impl.runImpl(F, TTI); in runOnFunction()
153 bool SpeculativeExecutionPass::runImpl(Function &F, TargetTransformInfo *TTI) { in runImpl() argument
154 if (OnlyIfDivergentTarget && !TTI->hasBranchDivergence()) { in runImpl()
160 this->TTI = TTI; in runImpl()
213 const TargetTransformInfo &TTI) { in ComputeSpeculationCost() argument
247 return TTI.getUserCost(I); in ComputeSpeculationCost()
269 const unsigned Cost = ComputeSpeculationCost(&I, *TTI); in considerHoistingFromTo()
311 auto *TTI = &AM.getResult<TargetIRAnalysis>(F); in run() local
313 bool Changed = runImpl(F, TTI); in run()
DLoopDataPrefetch.cpp65 const TargetTransformInfo *TTI, in LoopDataPrefetch() argument
67 : AC(AC), LI(LI), SE(SE), TTI(TTI), ORE(ORE) {} in LoopDataPrefetch()
81 return TTI->getMinPrefetchStride(); in getMinPrefetchStride()
87 return TTI->getPrefetchDistance(); in getPrefetchDistance()
93 return TTI->getMaxPrefetchIterationsAhead(); in getMaxPrefetchIterationsAhead()
99 const TargetTransformInfo *TTI; member in __anon38c73ee40111::LoopDataPrefetch
164 const TargetTransformInfo *TTI = &AM.getResult<TargetIRAnalysis>(F); in run() local
166 LoopDataPrefetch LDP(AC, LI, SE, TTI, ORE); in run()
189 const TargetTransformInfo *TTI = in runOnFunction() local
192 LoopDataPrefetch LDP(AC, LI, SE, TTI, ORE); in runOnFunction()
[all …]
DPartiallyInlineLibCalls.cpp33 const TargetTransformInfo *TTI) { in optimizeSQRT() argument
76 Value *FCmp = TTI->isFCmpOrdCheaperThanFCmpZero(Ty) in optimizeSQRT()
91 const TargetTransformInfo *TTI) { in runPartiallyInlineLibCalls() argument
119 if (TTI->haveFastSqrt(Call->getType()) && in runPartiallyInlineLibCalls()
120 optimizeSQRT(Call, CalledFunc, *CurrBB, BB, TTI)) in runPartiallyInlineLibCalls()
138 auto &TTI = AM.getResult<TargetIRAnalysis>(F); in run() local
139 if (!runPartiallyInlineLibCalls(F, &TLI, &TTI)) in run()
166 const TargetTransformInfo *TTI = in runOnFunction() local
168 return runPartiallyInlineLibCalls(F, TLI, TTI); in runOnFunction()
DSimplifyCFGPass.cpp148 static bool iterativelySimplifyCFG(Function &F, const TargetTransformInfo &TTI, in iterativelySimplifyCFG() argument
164 if (simplifyCFG(&*BBIt++, TTI, Options, &LoopHeaders)) { in iterativelySimplifyCFG()
174 static bool simplifyFunctionCFG(Function &F, const TargetTransformInfo &TTI, in simplifyFunctionCFG() argument
178 EverChanged |= iterativelySimplifyCFG(F, TTI, Options); in simplifyFunctionCFG()
192 EverChanged = iterativelySimplifyCFG(F, TTI, Options); in simplifyFunctionCFG()
220 auto &TTI = AM.getResult<TargetIRAnalysis>(F); in run() local
222 if (!simplifyFunctionCFG(F, TTI, Options)) in run()
269 auto &TTI = getAnalysis<TargetTransformInfoWrapperPass>().getTTI(F); in runOnFunction() local
270 return simplifyFunctionCFG(F, TTI, Options); in runOnFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVTargetTransformInfo.cpp24 return TTI::TCC_Free; in getIntImmCost()
39 return TTI::TCC_Free; in getIntImmCostInst()
51 return TTI::TCC_Free; in getIntImmCostInst()
76 return TTI::TCC_Free; in getIntImmCostInst()
85 return TTI::TCC_Free; in getIntImmCostInst()
91 return TTI::TCC_Free; in getIntImmCostIntrin()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMTargetTransformInfo.h43 using TTI = TargetTransformInfo; variable
168 int getShuffleCost(TTI::ShuffleKind Kind, Type *Tp, int Index, Type *SubTp);
171 TTI::ReductionFlags Flags) const;
209 TTI::OperandValueKind Op1Info = TTI::OK_AnyValue,
210 TTI::OperandValueKind Op2Info = TTI::OK_AnyValue,
211 TTI::OperandValueProperties Opd1PropInfo = TTI::OP_None,
212 TTI::OperandValueProperties Opd2PropInfo = TTI::OP_None,
237 TTI::UnrollingPreferences &UP);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DBasicTTIImpl.h80 using TTI = TargetTransformInfo; variable
174 static ISD::MemIndexedMode getISDIndexedMode(TTI::MemIndexedMode M) { in getISDIndexedMode()
176 case TTI::MIM_Unindexed: in getISDIndexedMode()
178 case TTI::MIM_PreInc: in getISDIndexedMode()
180 case TTI::MIM_PreDec: in getISDIndexedMode()
182 case TTI::MIM_PostInc: in getISDIndexedMode()
184 case TTI::MIM_PostDec: in getISDIndexedMode()
248 bool isIndexedLoadLegal(TTI::MemIndexedMode M, Type *Ty, in isIndexedLoadLegal()
254 bool isIndexedStoreLegal(TTI::MemIndexedMode M, Type *Ty, in isIndexedStoreLegal()
260 bool isLSRCostLess(TTI::LSRCost C1, TTI::LSRCost C2) { in isLSRCostLess()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLegacyDivergenceAnalysis.cpp97 DivergencePropagator(Function &F, TargetTransformInfo &TTI, DominatorTree &DT, in DivergencePropagator() argument
100 : F(F), TTI(TTI), DT(DT), PDT(PDT), DV(DV), DU(DU) {} in DivergencePropagator()
119 TargetTransformInfo &TTI; member in __anon4b21d6640111::DivergencePropagator
133 if (TTI.isSourceOfDivergence(&I)) { in populateWithSourcesOfDivergence()
139 if (TTI.isSourceOfDivergence(&Arg)) { in populateWithSourcesOfDivergence()
262 if (!TTI.isAlwaysUniform(U) && DV.insert(U).second) in exploreDataDependency()
327 TargetTransformInfo &TTI = TTIWP->getTTI(F); in runOnFunction() local
330 if (!TTI.hasBranchDivergence()) in runOnFunction()
343 gpuDA = std::make_unique<GPUDivergenceAnalysis>(F, DT, PDT, LI, TTI); in runOnFunction()
347 DivergencePropagator DP(F, TTI, DT, PDT, DivergentValues, DivergentUses); in runOnFunction()
DCostModel.cpp48 CostModelAnalysis() : FunctionPass(ID), F(nullptr), TTI(nullptr) { in CostModelAnalysis()
58 return TTI->getInstructionCost(I, TargetTransformInfo::TCK_RecipThroughput); in getInstructionCost()
69 const TargetTransformInfo *TTI; member in __anon109f40790111::CostModelAnalysis
92 TTI = TTIWP ? &TTIWP->getTTI(F) : nullptr; in runOnFunction()
103 unsigned Cost = TTI->getInstructionCost(&Inst, CostKind); in print()

1234567