| /openbsd-src/gnu/llvm/llvm/tools/llvm-cov/ |
| H A D | CoverageFilters.h | 89 T Threshold; variable 91 StatisticThresholdFilter(Operation Op, T Threshold) in StatisticThresholdFilter() argument 92 : Op(Op), Threshold(Threshold) {} in StatisticThresholdFilter() 99 return Value < Threshold; in PassesThreshold() 101 return Value > Threshold; in PassesThreshold() 112 RegionCoverageFilter(Operation Op, double Threshold) in RegionCoverageFilter() argument 113 : StatisticThresholdFilter(Op, Threshold) {} in RegionCoverageFilter() 124 LineCoverageFilter(Operation Op, double Threshold) in LineCoverageFilter() argument 125 : StatisticThresholdFilter(Op, Threshold) {} in LineCoverageFilter()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | InlineCost.h | 96 int Threshold = 0; variable 108 InlineCost(int Cost, int Threshold, int StaticBonusApplied, 111 : Cost(Cost), Threshold(Threshold), in Cost() 119 static InlineCost get(int Cost, int Threshold, int StaticBonus = 0) { 122 return InlineCost(Cost, Threshold, StaticBonus); 136 explicit operator bool() const { return Cost < Threshold; } 152 return Threshold; in getThreshold() 174 int getCostDelta() const { return Threshold - getCost(); } in getCostDelta() 250 InlineParams getInlineParams(int Threshold);
|
| H A D | InlineModelFeatureMaps.h | 48 M(Threshold, "threshold") 73 Feature != InlineCostFeatureIndex::Threshold; in isHeuristicInlineCostFeature()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/ |
| H A D | common_test.cpp | 35 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | SpillPlacement.cpp | 112 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()
|
| H A D | SpillPlacement.h | 67 BlockFrequency Threshold; variable
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | InlineCost.cpp | 553 int Threshold = 0; member in __anon0e0437920111::InlineCostCallAnalyzer 637 Threshold += *AttrCallThresholdBonus; in onCallBaseVisitStart() 752 Threshold -= SingleBBBonus; in onBlockAnalyzed() 763 InstructionCostDetailMap[I].ThresholdBefore = Threshold; in onInstructionAnalysisStart() 772 InstructionCostDetailMap[I].ThresholdAfter = Threshold; in onInstructionAnalysisFinish() 827 if (Threshold == 0) in costBenefitAnalysis() 931 Threshold -= VectorBonus; in finalizeAnalysis() 933 Threshold -= VectorBonus / 2; in finalizeAnalysis() 946 Threshold = *AttrThreshold; in finalizeAnalysis() 960 return Cost < std::max(1, Threshold) in finalizeAnalysis() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | LoopRotation.cpp | 52 int Threshold = EnableHeaderDuplication || in run() local 63 MSSAU ? &*MSSAU : nullptr, SQ, false, Threshold, in run() 129 int Threshold = hasVectorizeTransformation(L) == TM_ForcedByUser in runOnLoop() local 134 false, Threshold, false, in runOnLoop()
|
| H A D | LoopUnrollPass.cpp | 194 UP.Threshold = in gatherUnrollingPreferences() 226 UP.Threshold = UP.OptSizeThreshold; in gatherUnrollingPreferences() 233 UP.Threshold = UnrollThreshold; in gatherUnrollingPreferences() 257 UP.Threshold = *UserThreshold; in gatherUnrollingPreferences() 786 UCE.getUnrolledLoopSize(UP, (unsigned)UnrollCount) < UP.Threshold) in shouldPragmaUnroll() 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() 939 UP.Threshold = std::max<unsigned>(UP.Threshold, PragmaUnrollThreshold); in computeUnrollCount() 982 computePeelCount(L, LoopSize, PP, TripCount, DT, SE, AC, UP.Threshold); in computeUnrollCount() [all …]
|
| H A D | LoopUnrollAndJamPass.cpp | 189 getUnrollAndJammedLoopSize(OuterLoopSize, UP) < UP.Threshold && in computeUnrollAndJamCount() 202 getUnrollAndJammedLoopSize(OuterLoopSize, UP) < UP.Threshold && in computeUnrollAndJamCount() 241 if (InnerTripCount && InnerLoopSize * InnerTripCount < UP.Threshold) { in computeUnrollAndJamCount()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86PadShortFunction.cpp | 84 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetTransformInfo.cpp | 109 UP.Threshold = in getUnrollingPreferences() 136 UP.Threshold = MetaThresholdValue->getSExtValue(); in getUnrollingPreferences() 137 UP.PartialThreshold = UP.Threshold; in getUnrollingPreferences() 138 ThresholdPrivate = std::min(ThresholdPrivate, UP.Threshold); in getUnrollingPreferences() 139 ThresholdLocal = std::min(ThresholdLocal, UP.Threshold); in getUnrollingPreferences() 160 if (UP.Threshold < MaxBoost && Br->isConditional()) { in getUnrollingPreferences() 167 UP.Threshold += UnrollThresholdIf; in getUnrollingPreferences() 168 LLVM_DEBUG(dbgs() << "Set unroll threshold " << UP.Threshold in getUnrollingPreferences() 171 if (UP.Threshold >= MaxBoost) in getUnrollingPreferences() 183 unsigned Threshold = 0; in getUnrollingPreferences() local [all …]
|
| H A D | SIPreEmitPeephole.cpp | 99 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()
|
| /openbsd-src/gnu/llvm/llvm/bindings/ocaml/transforms/passmgr_builder/ |
| H A D | passmgr_builder_ocaml.c | 60 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| H A D | InlineSimple.cpp | 93 Pass *llvm::createFunctionInliningPass(int Threshold) { in createFunctionInliningPass() argument 94 return new SimpleInliner(llvm::getInlineParams(Threshold)); in createFunctionInliningPass()
|
| H A D | FunctionImport.cpp | 175 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 …]
|
| H A D | PassManagerBuilder.cpp | 498 unsigned Threshold) { in LLVMPassManagerBuilderUseInlinerWithThreshold() argument 500 Builder->Inliner = createFunctionInliningPass(Threshold); in LLVMPassManagerBuilderUseInlinerWithThreshold()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/ |
| H A D | Scalar.h | 177 bool ForgetAllSCEV = false, int Threshold = -1, 240 FunctionPass *createJumpThreadingPass(int Threshold = -1);
|
| H A D | IPO.h | 108 Pass *createFunctionInliningPass(int Threshold);
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/ |
| H A D | LoopRotationUtils.h | 36 bool RotationOnly, unsigned Threshold, bool IsUtilMode,
|
| H A D | LoopPeel.h | 41 unsigned Threshold = UINT_MAX);
|
| /openbsd-src/gnu/llvm/llvm/include/llvm-c/Transforms/ |
| H A D | PassManagerBuilder.h | 63 unsigned Threshold);
|
| H A D | Scalar.h | 120 int Threshold);
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Bitstream/ |
| H A D | BitstreamWriter.h | 226 uint32_t Threshold = 1U << (NumBits-1); in EmitVBR() local 229 while (Val >= Threshold) { in EmitVBR() 242 uint32_t Threshold = 1U << (NumBits-1); in EmitVBR64() local 245 while (Val >= Threshold) { in EmitVBR64()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | LoopPeel.cpp | 476 unsigned Threshold) { in computePeelCount() argument 506 if (2 * LoopSize > Threshold) in computePeelCount() 518 MaxPeelCount = std::min(MaxPeelCount, Threshold / LoopSize - 1); in computePeelCount() 589 LLVM_DEBUG(dbgs() << "Max peel cost: " << Threshold << "\n"); in computePeelCount() 591 << (Threshold / LoopSize - 1) << "\n"); in computePeelCount()
|