Home
last modified time | relevance | path

Searched refs:JumpTableSize (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp331 virtual bool onJumpTable(unsigned JumpTableSize) { return true; } in onJumpTable() argument
339 virtual void onFinalizeSwitch(unsigned JumpTableSize, unsigned NumCaseCluster, in onFinalizeSwitch() argument
702 void onFinalizeSwitch(unsigned JumpTableSize, unsigned NumCaseCluster, in onFinalizeSwitch() argument
707 if (JumpTableSize) { in onFinalizeSwitch()
714 static_cast<int64_t>(JumpTableSize) * InstrCost + 2 * InstrCost; in onFinalizeSwitch()
1241 void onFinalizeSwitch(unsigned JumpTableSize, unsigned NumCaseCluster, in onFinalizeSwitch() argument
1243 if (JumpTableSize) { in onFinalizeSwitch()
1247 int64_t JTCost = static_cast<int64_t>(JumpTableSize) * InstrCost + in onFinalizeSwitch()
2467 unsigned JumpTableSize = 0; in visitSwitchInst() local
2470 TTI.getEstimatedNumberOfCaseClusters(SI, JumpTableSize, PSI, BFI); in visitSwitchInst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDFAJumpThreading.cpp854 unsigned JumpTableSize = 0; in isLegalAndProfitableToTransform() local
855 TTI->getEstimatedNumberOfCaseClusters(*Switch, JumpTableSize, nullptr, in isLegalAndProfitableToTransform()
857 if (JumpTableSize == 0) { in isLegalAndProfitableToTransform()
873 DuplicationCost = Metrics.NumInsts / JumpTableSize; in isLegalAndProfitableToTransform()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h451 unsigned &JumpTableSize, in getEstimatedNumberOfCaseClusters() argument
465 JumpTableSize = 0; in getEstimatedNumberOfCaseClusters()
502 JumpTableSize = Range; in getEstimatedNumberOfCaseClusters()