Home
last modified time | relevance | path

Searched refs:TargetTransformInfo (Results 1 – 25 of 175) sorted by relevance

1234567

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp183 TargetTransformInfo::TargetTransformInfo(const DataLayout &DL) in TargetTransformInfo() function in TargetTransformInfo
186 TargetTransformInfo::~TargetTransformInfo() {} in ~TargetTransformInfo()
188 TargetTransformInfo::TargetTransformInfo(TargetTransformInfo &&Arg) in TargetTransformInfo() function in TargetTransformInfo
191 TargetTransformInfo &TargetTransformInfo::operator=(TargetTransformInfo &&RHS) { in operator =()
196 unsigned TargetTransformInfo::getInliningThresholdMultiplier() const { in getInliningThresholdMultiplier()
201 TargetTransformInfo::adjustInliningThreshold(const CallBase *CB) const { in adjustInliningThreshold()
205 int TargetTransformInfo::getInlinerVectorBonusPercent() const { in getInlinerVectorBonusPercent()
210 TargetTransformInfo::getGEPCost(Type *PointeeType, const Value *Ptr, in getGEPCost()
216 unsigned TargetTransformInfo::getEstimatedNumberOfCaseClusters( in getEstimatedNumberOfCaseClusters()
223 TargetTransformInfo::getUserCost(const User *U, in getUserCost()
[all …]
H A DCostModel.cpp30 static cl::opt<TargetTransformInfo::TargetCostKind> CostKind(
32 cl::init(TargetTransformInfo::TCK_RecipThroughput),
33 cl::values(clEnumValN(TargetTransformInfo::TCK_RecipThroughput,
35 clEnumValN(TargetTransformInfo::TCK_Latency,
37 clEnumValN(TargetTransformInfo::TCK_CodeSize,
39 clEnumValN(TargetTransformInfo::TCK_SizeAndLatency,
61 return TTI->getInstructionCost(I, TargetTransformInfo::TCK_RecipThroughput); in getInstructionCost()
72 const TargetTransformInfo *TTI;
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DUnrollLoop.h85 const llvm::TargetTransformInfo *TTI,
93 const TargetTransformInfo *TTI, bool PreserveLCSSA,
100 const TargetTransformInfo *TTI,
107 bool computeUnrollCount(Loop *L, const TargetTransformInfo &TTI,
113 TargetTransformInfo::UnrollingPreferences &UP,
114 TargetTransformInfo::PeelingPreferences &PP,
120 const TargetTransformInfo *TTI);
124 TargetTransformInfo::UnrollingPreferences gatherUnrollingPreferences(
125 Loop *L, ScalarEvolution &SE, const TargetTransformInfo &TTI,
133 const TargetTransformInfo &TTI,
H A DLowerMemIntrinsics.h24 class TargetTransformInfo; variable
34 const TargetTransformInfo &TTI);
42 const TargetTransformInfo &TTI);
45 void expandMemCpyAsLoop(MemCpyInst *MemCpy, const TargetTransformInfo &TTI);
H A DLoopPeel.h26 TargetTransformInfo::PeelingPreferences
28 const TargetTransformInfo &TTI,
34 TargetTransformInfo::PeelingPreferences &PP,
H A DSimplifyIndVar.h31 class TargetTransformInfo; variable
52 LoopInfo *LI, const TargetTransformInfo *TTI,
59 LoopInfo *LI, const TargetTransformInfo *TTI,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp22 TargetTransformInfo::PopcntSupportKind
25 return TargetTransformInfo::PSK_FastHardware; in getPopcntSupport()
40 TargetTransformInfo::RegisterKind K) const { in getRegisterBitWidth()
42 case TargetTransformInfo::RGK_Scalar: in getRegisterBitWidth()
44 case TargetTransformInfo::RGK_FixedWidthVector: in getRegisterBitWidth()
46 case TargetTransformInfo::RGK_ScalableVector: in getRegisterBitWidth()
76 (TargetTransformInfo::TCC_Basic + in getArithmeticInstrCost()
78 TargetTransformInfo::TCC_Basic); in getArithmeticInstrCost()
93 return Cost + 25 * TargetTransformInfo::TCC_Expensive; in getVectorInstrCost()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/VE/
H A DVETargetTransformInfo.h53 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const { in getRegisterBitWidth()
55 case TargetTransformInfo::RGK_Scalar: in getRegisterBitWidth()
57 case TargetTransformInfo::RGK_FixedWidthVector: in getRegisterBitWidth()
60 case TargetTransformInfo::RGK_ScalableVector: in getRegisterBitWidth()
69 TargetTransformInfo::VPLegalization
71 using VPLegalization = TargetTransformInfo::VPLegalization; in getVPLegalizationStrategy()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h29 using TTI = TargetTransformInfo;
54 TargetTransformInfo::PopcntSupportKind getPopcntSupport(unsigned TyWidth);
60 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const { in getRegisterBitWidth()
62 case TargetTransformInfo::RGK_Scalar: in getRegisterBitWidth()
64 case TargetTransformInfo::RGK_FixedWidthVector: in getRegisterBitWidth()
67 case TargetTransformInfo::RGK_ScalableVector: in getRegisterBitWidth()
137 TargetTransformInfo::VPLegalization
139 using VPLegalization = TargetTransformInfo::VPLegalization; in getVPLegalizationStrategy()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.h40 using TTI = TargetTransformInfo;
64 using TTI = TargetTransformInfo;
82 return TargetTransformInfo::TCC_Basic; in getFullRateInstrCost()
88 : 2 * TargetTransformInfo::TCC_Basic;
96 : 4 * TargetTransformInfo::TCC_Basic;
124 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind Vector) const;
227 using TTI = TargetTransformInfo;
247 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind Vector) const;
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/IPO/
H A DHotColdSplitting.h22 class TargetTransformInfo; variable
37 function_ref<TargetTransformInfo &(Function &)> GTTI, in HotColdSplitting()
50 TargetTransformInfo &TTI,
55 function_ref<TargetTransformInfo &(Function &)> GetTTI;
H A DIROutliner.h57 class TargetTransformInfo; variable
154 InstructionCost getBenefit(TargetTransformInfo &TTI);
165 IROutliner(function_ref<TargetTransformInfo &(Function &)> GTTI, in IROutliner()
276 function_ref<TargetTransformInfo &(Function &)> getTTI;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DCGProfile.cpp51 function_ref<TargetTransformInfo &(Function &)> GetTTI, bool LazyBFI) { in runCGProfilePass()
54 auto UpdateCounts = [&](TargetTransformInfo &TTI, Function *F, in runCGProfilePass()
74 TargetTransformInfo &TTI = GetTTI(F); in runCGProfilePass()
121 auto GetTTI = [this](Function &F) -> TargetTransformInfo & { in runOnModule()
146 auto GetTTI = [&FAM](Function &F) -> TargetTransformInfo & { in run()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DInlineCost.h29 class TargetTransformInfo; variable
227 TargetTransformInfo &CalleeTTI,
241 TargetTransformInfo &CalleeTTI,
255 CallBase &Call, Function *Callee, TargetTransformInfo &CalleeTTI,
267 CallBase &Call, TargetTransformInfo &CalleeTTI,
H A DTargetTransformInfo.h162 class TargetTransformInfo; variable
163 typedef TargetTransformInfo TTI;
167 class TargetTransformInfo {
174 template <typename T> TargetTransformInfo(T Impl);
181 explicit TargetTransformInfo(const DataLayout &DL);
184 TargetTransformInfo(TargetTransformInfo &&Arg);
185 TargetTransformInfo &operator=(TargetTransformInfo &&RHS);
189 ~TargetTransformInfo();
611 bool isLSRCostLess(TargetTransformInfo::LSRCost &C1,
612 TargetTransformInfo::LSRCost &C2) const;
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopUnrollPass.cpp185 TargetTransformInfo::UnrollingPreferences llvm::gatherUnrollingPreferences( in gatherUnrollingPreferences()
186 Loop *L, ScalarEvolution &SE, const TargetTransformInfo &TTI, in gatherUnrollingPreferences()
191 TargetTransformInfo::UnrollingPreferences UP; in gatherUnrollingPreferences()
339 const TargetTransformInfo &TTI, unsigned MaxUnrolledLoopSize, in analyzeLoopUnrollCost()
392 TargetTransformInfo::TargetCostKind CostKind = in analyzeLoopUnrollCost()
394 TargetTransformInfo::TCK_CodeSize : in analyzeLoopUnrollCost()
395 TargetTransformInfo::TCK_SizeAndLatency; in analyzeLoopUnrollCost()
476 TargetTransformInfo::TargetCostKind CostKind = in analyzeLoopUnrollCost()
478 TargetTransformInfo::TCK_CodeSize : TargetTransformInfo::TCK_SizeAndLatency; in analyzeLoopUnrollCost()
656 const TargetTransformInfo &TTI, in ApproximateLoopSize()
[all …]
H A DLoopUnrollAndJamPass.cpp150 TargetTransformInfo::UnrollingPreferences &UP) { in getUnrollAndJammedLoopSize()
158 Loop *L, Loop *SubLoop, const TargetTransformInfo &TTI, DominatorTree &DT, in computeUnrollAndJamCount()
163 unsigned InnerLoopSize, TargetTransformInfo::UnrollingPreferences &UP, in computeUnrollAndJamCount()
164 TargetTransformInfo::PeelingPreferences &PP) { in computeUnrollAndJamCount()
284 const TargetTransformInfo &TTI, AssumptionCache &AC, DependenceInfo &DI, in tryToUnrollAndJamLoop()
286 TargetTransformInfo::UnrollingPreferences UP = in tryToUnrollAndJamLoop()
289 TargetTransformInfo::PeelingPreferences PP = in tryToUnrollAndJamLoop()
429 const TargetTransformInfo &TTI, in tryToUnrollAndJamLoop()
H A DSpeculateAroundPHIs.cpp206 TargetTransformInfo &TTI) { in isSafeAndProfitableToSpeculateAroundPHI()
212 InstructionCost MatCost = TargetTransformInfo::TCC_Free; in isSafeAndProfitableToSpeculateAroundPHI()
213 InstructionCost FoldedCost = TargetTransformInfo::TCC_Free; in isSafeAndProfitableToSpeculateAroundPHI()
236 TargetTransformInfo::TCK_SizeAndLatency); in isSafeAndProfitableToSpeculateAroundPHI()
291 TargetTransformInfo::TCK_SizeAndLatency); in isSafeAndProfitableToSpeculateAroundPHI()
296 TargetTransformInfo::TCK_SizeAndLatency); in isSafeAndProfitableToSpeculateAroundPHI()
430 DominatorTree &DT, TargetTransformInfo &TTI) { in findProfitablePHIs()
474 Cost += TTI.getUserCost(I, TargetTransformInfo::TCK_SizeAndLatency); in findProfitablePHIs()
740 DominatorTree &DT, TargetTransformInfo &TTI) { in tryToSpeculatePHIs()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp58 TargetTransformInfo::PopcntSupportKind
62 return TargetTransformInfo::PSK_FastHardware; in getPopcntSupport()
102 HexagonTTIImpl::getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const { in getRegisterBitWidth()
104 case TargetTransformInfo::RGK_Scalar: in getRegisterBitWidth()
106 case TargetTransformInfo::RGK_FixedWidthVector: in getRegisterBitWidth()
108 case TargetTransformInfo::RGK_ScalableVector: in getRegisterBitWidth()
178 getRegisterBitWidth(TargetTransformInfo::RGK_FixedWidthVector) in getMemoryOpCost()
366 return TargetTransformInfo::TCC_Free; in getUserCost()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Vectorize/
H A DSLPVectorizer.h47 class TargetTransformInfo; variable
65 TargetTransformInfo *TTI = nullptr;
78 bool runImpl(Function &F, ScalarEvolution *SE_, TargetTransformInfo *TTI_,
115 TargetTransformInfo *TTI);
H A DLoopVectorize.h78 class TargetTransformInfo; variable
144 TargetTransformInfo *TTI;
160 TargetTransformInfo &TTI_, DominatorTree &DT_,
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
H A DHotColdSplitting.cpp241 TargetTransformInfo &TTI) { in getOutliningBenefit()
249 TTI.getInstructionCost(&I, TargetTransformInfo::TCK_CodeSize); in getOutliningBenefit()
316 const int CostForArgMaterialization = 2 * TargetTransformInfo::TCC_Basic; in getOutliningPenalty()
324 const int CostForRegionOutput = 3 * TargetTransformInfo::TCC_Basic; in getOutliningPenalty()
339 Penalty += (SuccsOutsideRegion.size() - 1) * TargetTransformInfo::TCC_Basic; in getOutliningPenalty()
347 DominatorTree &DT, BlockFrequencyInfo *BFI, TargetTransformInfo &TTI, in extractColdRegion()
617 TargetTransformInfo &TTI = GetTTI(F); in outlineColdRegions()
732 auto GTTI = [this](Function &F) -> TargetTransformInfo & { in runOnModule()
765 std::function<TargetTransformInfo &(Function &)> GTTI = in run()
766 [&FAM](Function &F) -> TargetTransformInfo & { in run()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h29 typedef TargetTransformInfo TTI;
109 TargetTransformInfo::CacheLevel Level) const override;
111 TargetTransformInfo::CacheLevel Level) const override;
118 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const;
223 bool isLSRCostLess(TargetTransformInfo::LSRCost &C1,
224 TargetTransformInfo::LSRCost &C2);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.h20 typedef TargetTransformInfo TTI;
60 bool isLSRCostLess(TargetTransformInfo::LSRCost &C1,
61 TargetTransformInfo::LSRCost &C2);
68 TypeSize getRegisterBitWidth(TargetTransformInfo::RegisterKind K) const;
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Scalar/
H A DNaryReassociate.h98 class TargetTransformInfo; variable
109 TargetTransformInfo *TTI_);
185 TargetTransformInfo *TTI;

1234567