Home
last modified time | relevance | path

Searched refs:Hotness (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Remarks/
H A DRemark.cpp57 if (Hotness) in print()
58 OS << "Hotness: " << Hotness; in print()
138 if (const std::optional<uint64_t> &Hotness = unwrap(Remark)->Hotness) in LLVMRemarkEntryGetHotness() local
139 return *Hotness; in LLVMRemarkEntryGetHotness()
H A DYAMLRemarkSerializer.cpp27 std::optional<uint64_t> Hotness, in mapRemarkHeader() argument
33 io.mapOptional("Hotness", Hotness); in mapRemarkHeader()
69 Remark->Hotness, Remark->Args); in mapping()
72 Remark->FunctionName, Remark->Hotness, Remark->Args); in mapping()
H A DBitstreamRemarkParser.cpp121 Parser.Hotness = Record[0]; in parseRecord()
562 if (Helper.Hotness) in processRemark()
563 R.Hotness = *Helper.Hotness; in processRemark()
H A DBitstreamRemarkSerializer.cpp291 if (std::optional<uint64_t> Hotness = Remark.Hotness) { in emitRemarkBlock() local
294 R.push_back(*Hotness); in emitRemarkBlock()
H A DYAMLRemarkParser.cpp236 } else if (KeyName == "Hotness") { in parseRemark()
238 TheRemark.Hotness = *MaybeU; in parseRemark()
/freebsd/contrib/llvm-project/llvm/include/llvm/Remarks/
H A DRemark.h117 std::optional<uint64_t> Hotness;
193 LHS.Hotness == RHS.Hotness && LHS.Args == RHS.Args;
202 LHS.FunctionName, LHS.Loc, LHS.Hotness, LHS.Args) <
204 RHS.FunctionName, RHS.Loc, RHS.Hotness, RHS.Args);
113 std::optional<uint64_t> Hotness; global() member
H A DBitstreamRemarkParser.h65 std::optional<uint64_t> Hotness; member
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DModuleSummaryIndex.cpp397 int Hotness; member
615 auto Draw = [&](GlobalValue::GUID IdFrom, GlobalValue::GUID IdTo, int Hotness) { in exportToDot() argument
617 CrossModuleEdges.push_back({ModId, Hotness, IdFrom, IdTo}); in exportToDot()
620 DrawEdge(" ", ModId, IdFrom, ModId, IdTo, Hotness); in exportToDot()
680 static_cast<int>(CGEdge.second.Hotness)); in exportToDot()
701 DrawEdge(" ", E.SrcMod, E.Src, DstMod, E.Dst, E.Hotness); in exportToDot()
H A DDiagnosticInfo.cpp248 if (Hotness) in print()
249 DP << " (hotness: " << *Hotness << ")"; in print()
H A DLLVMRemarkStreamer.cpp69 R.Hotness = Diag.getHotness(); in toRemark()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h70 uint32_t Hotness : 3; member
83 : Hotness(static_cast<uint32_t>(HotnessType::Unknown)), in CalleeInfo()
85 explicit CalleeInfo(HotnessType Hotness, bool HasTC, uint64_t RelBF) in CalleeInfo()
86 : Hotness(static_cast<uint32_t>(Hotness)), HasTailCall(HasTC), in CalleeInfo()
90 Hotness = std::max(Hotness, static_cast<uint32_t>(OtherHotness)); in updateHotness()
97 HotnessType getHotness() const { return HotnessType(Hotness); } in getHotness()
H A DDiagnosticInfo.h482 std::optional<uint64_t> getHotness() const { return Hotness; } in getHotness()
483 void setHotness(std::optional<uint64_t> H) { Hotness = H; } in setHotness()
524 std::optional<uint64_t> Hotness; variable
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp431 auto Hotness = ScaledCount ? getHotness(*ScaledCount, PSI) in computeFunctionSummary() local
434 Hotness = CalleeInfo::HotnessType::Cold; in computeFunctionSummary()
442 ValueInfo.updateHotness(Hotness); in computeFunctionSummary()
447 if (BFI != nullptr && Hotness == CalleeInfo::HotnessType::Unknown) { in computeFunctionSummary()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionImport.cpp748 auto GetBonusMultiplier = [](CalleeInfo::HotnessType Hotness) -> float { in computeImportForFunction() argument
749 if (Hotness == CalleeInfo::HotnessType::Hot) in computeImportForFunction()
751 if (Hotness == CalleeInfo::HotnessType::Cold) in computeImportForFunction()
753 if (Hotness == CalleeInfo::HotnessType::Critical) in computeImportForFunction()
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h398 bool parseHotness(CalleeInfo::HotnessType &Hotness);
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp9699 CalleeInfo::HotnessType Hotness = CalleeInfo::HotnessType::Unknown; in parseOptionalCalls() local
9708 if (parseToken(lltok::colon, "expected ':'") || parseHotness(Hotness)) in parseOptionalCalls()
9725 if (Hotness != CalleeInfo::HotnessType::Unknown && RelBF > 0) in parseOptionalCalls()
9733 FunctionSummary::EdgeTy{VI, CalleeInfo(Hotness, HasTailCall, RelBF)}); in parseOptionalCalls()
9758 bool LLParser::parseHotness(CalleeInfo::HotnessType &Hotness) { in parseHotness() argument
9761 Hotness = CalleeInfo::HotnessType::Unknown; in parseHotness()
9764 Hotness = CalleeInfo::HotnessType::Cold; in parseHotness()
9767 Hotness = CalleeInfo::HotnessType::None; in parseHotness()
9770 Hotness = CalleeInfo::HotnessType::Hot; in parseHotness()
9773 Hotness = CalleeInfo::HotnessType::Critical; in parseHotness()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1181 CalleeInfo::HotnessType Hotness = in getDecodedHotnessCallEdgeInfo() local
1184 return {Hotness, HasTailCall}; in getDecodedHotnessCallEdgeInfo()
7382 CalleeInfo::HotnessType Hotness = CalleeInfo::HotnessType::Unknown; in makeCallList() local
7391 std::tie(Hotness, HasTailCall) = in makeCallList()
7396 Callee, CalleeInfo(Hotness, HasTailCall, RelBF)}); in makeCallList()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp1272 RawFlags |= CI.Hotness; // 3 bits in getEncodedHotnessCallEdgeInfo()