Searched refs:JumpTableSize (Results 1 – 3 of 3) sorted by relevance
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | InlineCost.cpp | 331 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 D | DFAJumpThreading.cpp | 854 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 D | BasicTTIImpl.h | 451 unsigned &JumpTableSize, in getEstimatedNumberOfCaseClusters() argument 465 JumpTableSize = 0; in getEstimatedNumberOfCaseClusters() 502 JumpTableSize = Range; in getEstimatedNumberOfCaseClusters()
|