Home
last modified time | relevance | path

Searched refs:Score (Results 1 – 25 of 43) sorted by relevance

12

/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DQuality.cpp197 float Score = 1; in evaluateHeuristics() local
215 Score *= 0.1f; in evaluateHeuristics()
217 Score *= 0.1f; in evaluateHeuristics()
219 Score *= 0.2f; in evaluateHeuristics()
228 Score *= 1.1f; in evaluateHeuristics()
231 Score *= 0.8f; in evaluateHeuristics()
243 return Score; in evaluateHeuristics()
417 Score *= 1.5; in evaluateHeuristics()
431 Score *= 2; in evaluateHeuristics()
434 Score *= 4; in evaluateHeuristics()
[all …]
H A DFuzzyMatch.cpp98 auto Best = std::max(Scores[PatN][WordN][Miss].Score, in match()
99 Scores[PatN][WordN][Match].Score); in match()
102 float Score = in match() local
108 return Score; in match()
226 auto MatchMissScore = PreMiss[Match].Score; in buildGraph()
227 auto MissMissScore = PreMiss[Miss].Score; in buildGraph()
232 Score[Miss] = (MatchMissScore > MissMissScore) in buildGraph()
244 Score[Match] = (MatchMatchScore > MissMatchScore) in buildGraph()
335 (Scores[PatN][WordN][Match].Score > Scores[PatN][WordN][Miss].Score) in dumpLast()
346 S[W] = Cell.Score - Prev.Score; in dumpLast()
[all …]
H A DCodeComplete.h125 const SymbolRelevanceSignals &, float Score)>
229 Scores Score; member
H A DFuzzyMatch.h127 signed int Score : 15; member
/llvm-project-15.0.7/libc/benchmarks/automemcpy/lib/
H A DResultAnalyzer.cpp63 Grade::GradeEnum Grade::judge(double Score) { in judge() argument
64 if (Score >= 6. / 7) in judge()
66 if (Score >= 5. / 7) in judge()
68 if (Score >= 4. / 7) in judge()
70 if (Score >= 3. / 7) in judge()
72 if (Score >= 2. / 7) in judge()
74 if (Score >= 1. / 7) in judge()
166 Function.PerDistributionData[Distribution].Score = in fillScores()
177 const double Score = Pair.getValue().Score; in castVotes() local
178 Function.ScoresGeoMean *= Score; in castVotes()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DFuzzyMatchTests.cpp47 llvm::Optional<float> Score; member
48 MatchesMatcher(ExpectedMatch Candidate, llvm::Optional<float> Score) in MatchesMatcher()
49 : Candidate(std::move(Candidate)), Score(Score) {} in MatchesMatcher()
53 if (Score) in DescribeTo()
54 *OS << " with score " << *Score; in DescribeTo()
67 (!Score || ::testing::Value(*Result, ::testing::FloatEq(*Score))); in MatchAndExplain()
205 auto Score = Matcher.match(Str.Word); in MatchAndExplain() local
206 if (!Score) { in MatchAndExplain()
219 } else if (LastScore && *LastScore < *Score) { in MatchAndExplain()
220 *OS << "\nRanks '" << Str.Word << "'=" << *Score << " above '" in MatchAndExplain()
[all …]
/llvm-project-15.0.7/clang-tools-extra/pseudo/lib/
H A DDirectiveTree.cpp230 struct Score { struct in clang::pseudo::__anon141705870411::BranchChooser
241 Score &operator+=(const Score &Other) { in operator +=() argument
249 Score walk(DirectiveTree::Code &C) { in walk()
250 Score S; in walk()
257 Score walk(DirectiveTree::Directive &D) { in walk()
258 Score S; in walk()
264 Score walk(DirectiveTree::Chunk &C) { in walk()
278 Score walk(DirectiveTree &M) { in walk()
279 Score S; in walk()
285 Score walk(DirectiveTree::Conditional &C) { in walk()
[all …]
/llvm-project-15.0.7/libc/benchmarks/automemcpy/unittests/
H A DResultAnalyzerTest.cpp107 EXPECT_THAT(Data[0].PerDistributionData.lookup("A").Score, 0); in TEST()
108 EXPECT_THAT(Data[1].PerDistributionData.lookup("A").Score, 0.5); in TEST()
109 EXPECT_THAT(Data[2].PerDistributionData.lookup("A").Score, 1); in TEST()
156 EXPECT_THAT(GetDistData(0, "A").Score, DoubleNear(0, kAbsErr)); in TEST()
157 EXPECT_THAT(GetDistData(1, "A").Score, DoubleNear(1. / 7, kAbsErr)); in TEST()
158 EXPECT_THAT(GetDistData(2, "A").Score, DoubleNear(1, kAbsErr)); in TEST()
166 EXPECT_THAT(GetDistData(0, "B").Score, DoubleNear(0, kAbsErr)); in TEST()
167 EXPECT_THAT(GetDistData(1, "B").Score, DoubleNear(1, kAbsErr)); in TEST()
168 EXPECT_THAT(GetDistData(2, "B").Score, DoubleNear(1, kAbsErr)); in TEST()
/llvm-project-15.0.7/llvm/tools/llvm-reduce/
H A DReducerWorkItem.cpp539 uint64_t Score = 0; in computeMIRComplexityScoreImpl() local
566 Score += 4; in computeMIRComplexityScoreImpl()
570 ++Score; in computeMIRComplexityScoreImpl()
573 ++Score; in computeMIRComplexityScoreImpl()
577 ++Score; in computeMIRComplexityScoreImpl()
581 ++Score; in computeMIRComplexityScoreImpl()
585 ++Score; in computeMIRComplexityScoreImpl()
590 ++Score; in computeMIRComplexityScoreImpl()
595 return Score; in computeMIRComplexityScoreImpl()
599 uint64_t Score = 0; in computeMIRComplexityScore() local
[all …]
/llvm-project-15.0.7/llvm/lib/Frontend/OpenMP/
H A DOMPContext.cpp274 APInt Score(64, 1); in getVariantMatchScore() local
283 Score += UserScore.getZExtValue(); in getVariantMatchScore()
311 Score += (1ULL << (NoConstructTraits + 0)); in getVariantMatchScore()
314 Score += (1ULL << (NoConstructTraits + 1)); in getVariantMatchScore()
317 Score += (1ULL << (NoConstructTraits + 2)); in getVariantMatchScore()
333 Score += (1ULL << ConstructMatches[ConstructIdx++]); in getVariantMatchScore()
338 return Score; in getVariantMatchScore()
357 APInt Score = getVariantMatchScore(VMI, Ctx, ConstructMatches); in getBestVariantMatchForContext() local
358 if (Score.ult(BestScore)) in getBestVariantMatchForContext()
361 if (Score.eq(BestScore)) { in getBestVariantMatchForContext()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Frontend/OpenMP/
H A DOMPContext.h125 APInt *Score = nullptr) {
127 Score);
134 APInt *Score = nullptr) {
135 if (Score)
136 ScoreMap[Property] = *Score;
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCodeLayout.cpp135 : Score(Score), MergeOffset(MergeOffset), MergeType(MergeType) {} in MergeGainTy()
137 double score() const { return Score; } in score()
145 return (Other.Score > EPS && Other.Score > Score + EPS); in operator <()
155 double Score{-1.0}; member in __anon97d149770111::MergeGainTy
228 : Id(Id), Score(0), Blocks(1, Block) {} in Chain()
234 double score() const { return Score; } in score()
291 double Score; member in __anon97d149770111::Chain
668 double Score = 0; in extTSPScore() local
675 return Score; in extTSPScore()
943 double Score = 0; in calcExtTspScore() local
[all …]
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DBoltDiff.cpp188 double Score = in getNormalizedScore() local
191 return Score / Ctx.getTotalScore(); in getNormalizedScore()
192 return Score / RI1.getTotalScore(); in getNormalizedScore()
202 const double Score = getNormalizedScore(Function, RI1); in buildLookupMaps() local
203 LargestBin1.insert(std::make_pair<>(Score, &Function)); in buildLookupMaps()
489 double Score = getNormalizedScore(Function, RI1); in computeAggregatedLTOScore() local
493 LTOAggregatedScore1[Iter->second] += Score; in computeAggregatedLTOScore()
500 double Score = getNormalizedScore(Function, RI2); in computeAggregatedLTOScore() local
504 UnmappedScore += Score; in computeAggregatedLTOScore()
507 LTOAggregatedScore2[Iter->second] += Score; in computeAggregatedLTOScore()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVPlanSLP.cpp228 unsigned Score = 0; in getLAScore() local
231 Score += in getLAScore()
233 return Score; in getLAScore()
272 unsigned Score = getLAScore(Last, Candidate, Depth, IAI); in getBest() local
274 PrevScore = Score; in getBest()
275 if (PrevScore != Score) in getBest()
277 PrevScore = Score; in getBest()
279 if (Score > BestScore) { in getBest()
280 BestScore = Score; in getBest()
/llvm-project-15.0.7/bolt/include/bolt/Passes/
H A DStokeInfo.h50 uint64_t Score; member
66 Score = 0; in reset()
89 << Score << "," << HasCall << ",\"{ "; in printData()
/llvm-project-15.0.7/bolt/lib/Passes/
H A DExtTSPReorderAlgorithm.cpp130 : Score(Score), MergeOffset(MergeOffset), MergeType(MergeType) {} in MergeGainTy()
132 double score() const { return Score; } in score()
140 return (Other.Score > EPS && Other.Score > Score + EPS); in operator <()
144 double Score{-1.0}; member in llvm::bolt::MergeGainTy
221 ExecutionCount(Block->ExecutionCount), Size(Block->Size), Score(0), in Chain()
234 double score() const { return Score; } in score()
236 void setScore(double NewScore) { Score = NewScore; } in setScore()
287 double Score; member in llvm::bolt::Chain
681 double Score = 0; in score() local
685 Score += extTSPScore(SrcBlock->EstimatedAddr, SrcBlock->Size, in score()
[all …]
H A DCacheMetrics.cpp67 double Score = 0; in calcTSPScore() local
77 Score += BI->Count; in calcTSPScore()
82 return Score; in calcTSPScore()
92 double Score = 0.0; in calcExtTSPScore() local
100 Score += in calcExtTSPScore()
107 return Score; in calcExtTSPScore()
H A DHFSortPlus.cpp129 double Score{0}; member in llvm::bolt::__anonbf028ece0111::Chain
312 Chain->Score = score(Chain); in initialize()
405 double CurScore = ChainPred->Score + ChainSucc->Score; in mergeGain()
567 Into->Score = score(Into); in mergeChains()
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/
H A DSymbolIndexManager.cpp51 llvm::StringMap<double> Score; in rank() local
57 double &S = Score[Symbol.Symbol.getFilePath()]; in rank()
64 auto AS = Score[A.Symbol.getFilePath()]; in rank()
65 auto BS = Score[B.Symbol.getFilePath()]; in rank()
/llvm-project-15.0.7/libc/benchmarks/automemcpy/include/automemcpy/
H A DResultAnalyzer.h38 static GradeEnum judge(double Score);
56 double Score; // Normalized score for this distribution. member
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DHotColdSplitting.cpp420 static unsigned getEntryPointScore(BasicBlock &BB, unsigned Score) { in getEntryPointScore() argument
421 return mayExtractBlock(BB) ? Score : 0; in getEntryPointScore()
446 auto addBlockToRegion = [&](BasicBlock *BB, unsigned Score) { in create() argument
448 ColdRegion->Blocks.emplace_back(BB, Score); in create()
560 unsigned Score = Block.second; in takeSingleEntrySubRegion() local
563 if (!InSubRegion && Score > NextScore) { in takeSingleEntrySubRegion()
565 NextScore = Score; in takeSingleEntrySubRegion()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSwitchLoweringUtils.cpp148 unsigned Score = j == N - 1 ? 0 : PartitionsScore[j + 1]; in findJumpTables() local
152 Score += PartitionScores::SingleCase; in findJumpTables()
154 Score += PartitionScores::FewCases; in findJumpTables()
156 Score += PartitionScores::Table; in findJumpTables()
161 (NumPartitions == MinPartitions[i] && Score > PartitionsScore[i])) { in findJumpTables()
164 PartitionsScore[i] = Score; in findJumpTables()
/llvm-project-15.0.7/clang-tools-extra/clangd/index/
H A DMemIndex.cpp47 if (auto Score = Filter.match(Sym->Name)) in fuzzyFind() local
48 if (Top.push({*Score * quality(*Sym), Sym})) in fuzzyFind()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64StackTaggingPreRA.cpp272 int Score = 0; in findFirstSlotCandidate() local
295 Score++; in findFirstSlotCandidate()
299 int TotalScore = RetagScore[ST] += Score; in findFirstSlotCandidate()
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DRegAllocScoreTest.cpp126 const auto Score = llvm::calculateRegAllocScore( in TEST() local
129 ASSERT_EQ(Score, RegAllocScore()); in TEST()

12