Home
last modified time | relevance | path

Searched refs:Threshold (Results 1 – 25 of 90) sorted by relevance

1234

/llvm-project-15.0.7/llvm/tools/llvm-cov/
H A DCoverageFilters.h101 T Threshold; variable
103 StatisticThresholdFilter(Operation Op, T Threshold) in StatisticThresholdFilter() argument
104 : Op(Op), Threshold(Threshold) {} in StatisticThresholdFilter()
111 return Value < Threshold; in PassesThreshold()
113 return Value > Threshold; in PassesThreshold()
124 RegionCoverageFilter(Operation Op, double Threshold) in RegionCoverageFilter() argument
125 : StatisticThresholdFilter(Op, Threshold) {} in RegionCoverageFilter()
136 LineCoverageFilter(Operation Op, double Threshold) in LineCoverageFilter() argument
137 : StatisticThresholdFilter(Op, Threshold) {} in LineCoverageFilter()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DInlineCost.h94 int Threshold = 0; variable
103 InlineCost(int Cost, int Threshold, const char *Reason = nullptr,
105 : Cost(Cost), Threshold(Threshold), Reason(Reason), in Cost()
112 static InlineCost get(int Cost, int Threshold) { in get() argument
115 return InlineCost(Cost, Threshold); in get()
127 explicit operator bool() const { return Cost < Threshold; }
143 return Threshold; in getThreshold()
159 int getCostDelta() const { return Threshold - getCost(); } in getCostDelta()
235 InlineParams getInlineParams(int Threshold);
H A DInlineModelFeatureMaps.h48 M(Threshold, "threshold")
73 Feature != InlineCostFeatureIndex::Threshold; in isHeuristicInlineCostFeature()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Dcommon_test.cpp35 const uptr Threshold = Size >> 3; in TEST() local
40 EXPECT_LT(getResidentMemorySize(), OnStart + Threshold); in TEST()
43 EXPECT_GT(getResidentMemorySize(), OnStart + Size - Threshold); in TEST()
46 EXPECT_LT(getResidentMemorySize(), OnStart + Threshold); in TEST()
49 EXPECT_GT(getResidentMemorySize(), OnStart + Size - Threshold); in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DSuspiciousCallArgumentCheck.cpp154 int8_t Threshold) { in applyPrefixHeuristic() argument
166 int8_t Threshold) { in applySuffixHeuristic() argument
177 int8_t Threshold) { in applySubstringHeuristic() argument
202 return percentage(MaxLength, LongerLength) > Threshold; in applySubstringHeuristic()
206 int8_t Threshold) { in applyLevenshteinHeuristic() argument
210 return Dist > Threshold; in applyLevenshteinHeuristic()
271 return Dist > Threshold; in applyJaroWinklerHeuristic()
276 int8_t Threshold) { in applyDiceHeuristic() argument
784 int8_t Threshold = -1; in areNamesSimilar() local
786 Threshold = *GotBound; in areNamesSimilar()
[all …]
H A DFunctionCognitiveComplexityCheck.cpp503 Threshold(Options.get("Threshold", CognitiveComplexity::DefaultLimit)), in FunctionCognitiveComplexityCheck()
509 Options.store(Opts, "Threshold", Threshold); in storeOptions()
542 if (Visitor.CC.Total <= Threshold) in check()
547 << TheDecl << Visitor.CC.Total << Threshold; in check()
550 << Visitor.CC.Total << Threshold; in check()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSpillPlacement.cpp112 void clear(const BlockFrequency &Threshold) { in clear()
114 SumLinkWeights = Threshold; in clear()
152 bool update(const Node nodes[], const BlockFrequency &Threshold) { in update()
172 if (SumN >= SumP + Threshold) in update()
174 else if (SumP >= SumN + Threshold) in update()
228 nodes[n].clear(Threshold); in activate()
255 Threshold = std::max(UINT64_C(1), Scaled); in setThreshold()
326 if (!nodes[n].update(nodes, Threshold)) in update()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInlineCost.cpp524 int Threshold = 0; member in __anon9893a50b0111::InlineCostCallAnalyzer
797 if (Threshold == 0) in costBenefitAnalysis()
1057 int Threshold = 5; member in __anon9893a50b0111::InlineCostFeaturesAnalyzer
1198 set(InlineCostFeatureIndex::Threshold, Threshold); in finalizeAnalysis()
1782 Threshold = 0; in updateThreshold()
1824 Threshold = MinIfValid(Threshold, Params.OptMinSizeThreshold); in updateThreshold()
1832 Threshold = MinIfValid(Threshold, Params.OptSizeThreshold); in updateThreshold()
1838 Threshold = MaxIfValid(Threshold, Params.HintThreshold); in updateThreshold()
1863 Threshold = MinIfValid(Threshold, Params.ColdCallSiteThreshold); in updateThreshold()
1872 Threshold = MaxIfValid(Threshold, Params.HintThreshold); in updateThreshold()
[all …]
/llvm-project-15.0.7/openmp/libomptarget/plugins/common/MemoryManager/
H A DMemoryManager.h196 MemoryManagerTy(DeviceAllocatorTy &DeviceAllocator, size_t Threshold = 0)
199 if (Threshold) in FreeLists()
200 SizeThreshold = Threshold; in FreeLists()
325 size_t Threshold = 0; in getSizeThresholdFromEnv() local
329 Threshold = std::stoul(Env); in getSizeThresholdFromEnv()
330 if (Threshold == 0) { in getSizeThresholdFromEnv()
337 return std::make_pair(Threshold, true); in getSizeThresholdFromEnv()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLoopRotation.cpp51 int Threshold = EnableHeaderDuplication || in run() local
63 MSSAU ? MSSAU.getPointer() : nullptr, SQ, false, Threshold, in run()
129 int Threshold = hasVectorizeTransformation(L) == TM_ForcedByUser in runOnLoop() local
135 Threshold, false, PrepareForLTO || PrepareForLTOOption); in runOnLoop()
H A DLoopUnrollPass.cpp194 UP.Threshold = in gatherUnrollingPreferences()
226 UP.Threshold = UP.OptSizeThreshold; in gatherUnrollingPreferences()
233 UP.Threshold = UnrollThreshold; in gatherUnrollingPreferences()
257 UP.Threshold = *UserThreshold; in gatherUnrollingPreferences()
815 if (UCE.getUnrolledLoopSize(UP) < UP.Threshold) in shouldFullUnroll()
823 UP.Threshold * UP.MaxPercentThresholdBoost / 100, in shouldFullUnroll()
827 if (Cost->UnrolledCost < UP.Threshold * Boost / 100) in shouldFullUnroll()
938 UP.Threshold = std::max<unsigned>(UP.Threshold, PragmaUnrollThreshold); in computeUnrollCount()
981 computePeelCount(L, LoopSize, PP, TripCount, DT, SE, UP.Threshold); in computeUnrollCount()
1215 UP.Threshold = std::max(UP.Threshold, LoopSize + 1); in tryToUnrollLoop()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp134 UP.Threshold = MetaThresholdValue->getSExtValue(); in getUnrollingPreferences()
135 UP.PartialThreshold = UP.Threshold; in getUnrollingPreferences()
158 if (UP.Threshold < MaxBoost && Br->isConditional()) { in getUnrollingPreferences()
165 UP.Threshold += UnrollThresholdIf; in getUnrollingPreferences()
169 if (UP.Threshold >= MaxBoost) in getUnrollingPreferences()
181 unsigned Threshold = 0; in getUnrollingPreferences() local
183 Threshold = ThresholdPrivate; in getUnrollingPreferences()
185 Threshold = ThresholdLocal; in getUnrollingPreferences()
189 if (UP.Threshold >= Threshold) in getUnrollingPreferences()
247 UP.Threshold = Threshold; in getUnrollingPreferences()
[all …]
H A DSIPreEmitPeephole.cpp99 unsigned Threshold = 5; in optimizeVccBranch() local
101 if (!--Threshold) in optimizeVccBranch()
390 const unsigned Threshold = 20; in runOnMachineFunction() local
399 if (Count == Threshold) in runOnMachineFunction()
/llvm-project-15.0.7/llvm/test/tools/llvm-opt-report/Inputs/
H A Dor.yaml35 - Threshold: '412'
60 - Threshold: '412'
85 - Threshold: '412'
131 - Threshold: '412'
156 - Threshold: '412'
181 - Threshold: '412'
H A Dq3.yaml24 - Threshold: '275'
59 - Threshold: '275'
H A Dq.yaml24 - Threshold: '275'
59 - Threshold: '275'
H A Dqx.yaml24 - Threshold: '275'
59 - Threshold: '275'
H A Ddm.yaml27 - Threshold: '375'
56 - Threshold: '375'
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86PadShortFunction.cpp84 const unsigned int Threshold = 4; member
140 if (Cycles < Threshold) { in runOnMachineFunction()
152 addPadding(MBB, ReturnLoc, Threshold - Cycles); in runOnMachineFunction()
166 if (Cycles >= Threshold) in findReturns()
/llvm-project-15.0.7/llvm/test/tools/opt-viewer/Inputs/basic/
H A Dor.yaml35 - Threshold: '412'
60 - Threshold: '412'
85 - Threshold: '412'
131 - Threshold: '412'
156 - Threshold: '412'
181 - Threshold: '412'
/llvm-project-15.0.7/llvm/test/tools/llvm-objdump/COFF/
H A Dprivate-headers-old.test68 LOADCFG-NEXT: Decommit Free Block Threshold: 0
69 LOADCFG-NEXT: Decommit Total Free Threshold: 0
72 LOADCFG-NEXT: Virtual Memory Threshold: 0
/llvm-project-15.0.7/llvm/bindings/ocaml/transforms/passmgr_builder/
H A Dpassmgr_builder_ocaml.c60 value llvm_pmbuilder_use_inliner_with_threshold(value Threshold, value PMB) { in llvm_pmbuilder_use_inliner_with_threshold() argument
61 LLVMPassManagerBuilderSetOptLevel(PMBuilder_val(PMB), Int_val(Threshold)); in llvm_pmbuilder_use_inliner_with_threshold()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DInlineSimple.cpp93 Pass *llvm::createFunctionInliningPass(int Threshold) { in createFunctionInliningPass() argument
94 return new SimpleInliner(llvm::getInlineParams(Threshold)); in createFunctionInliningPass()
H A DFunctionImport.cpp175 unsigned Threshold, StringRef CallerModulePath, in selectCallee() argument
214 if ((Summary->instCount() > Threshold) && in selectCallee()
350 const unsigned Threshold, const GVSummaryMapTy &DefinedGVSummaries, in computeImportForFunction() argument
360 LLVM_DEBUG(dbgs() << " edge -> " << VI << " Threshold:" << Threshold in computeImportForFunction()
388 Threshold * GetBonusMultiplier(Edge.second.getHotness()); in computeImportForFunction()
500 auto GetAdjustedThreshold = [](unsigned Threshold, bool IsHotCallsite) { in computeImportForFunction() argument
505 return Threshold * ImportHotInstrFactor; in computeImportForFunction()
506 return Threshold * ImportInstrFactor; in computeImportForFunction()
509 const auto AdjThreshold = GetAdjustedThreshold(Threshold, IsHotCallsite); in computeImportForFunction()
557 auto Threshold = std::get<1>(GVInfo); in ComputeImportForModule() local
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Transforms/
H A DScalar.h183 bool ForgetAllSCEV = false, int Threshold = -1,
246 FunctionPass *createJumpThreadingPass(int Threshold = -1);

1234