Home
last modified time | relevance | path

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

/freebsd-14.2/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.cpp238 TheRemark.Hotness = *MaybeU; in parseRemark()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Remarks/
H A DRemark.h117 std::optional<uint64_t> Hotness; member
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);
H A DBitstreamRemarkParser.h65 std::optional<uint64_t> Hotness; member
/freebsd-14.2/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()
676 static_cast<int>(CGEdge.second.Hotness)); in exportToDot()
697 DrawEdge(" ", E.SrcMod, E.Src, DstMod, E.Dst, E.Hotness); in exportToDot()
H A DDiagnosticInfo.cpp244 if (Hotness) in print()
245 DP << " (hotness: " << *Hotness << ")"; in print()
H A DLLVMRemarkStreamer.cpp69 R.Hotness = Diag.getHotness(); in toRemark()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h69 uint32_t Hotness : 3; member
82 : Hotness(static_cast<uint32_t>(HotnessType::Unknown)), in CalleeInfo()
84 explicit CalleeInfo(HotnessType Hotness, bool HasTC, uint64_t RelBF) in CalleeInfo()
85 : Hotness(static_cast<uint32_t>(Hotness)), HasTailCall(HasTC), in CalleeInfo()
89 Hotness = std::max(Hotness, static_cast<uint32_t>(OtherHotness)); in updateHotness()
96 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-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp400 auto Hotness = ScaledCount ? getHotness(*ScaledCount, PSI) in computeFunctionSummary() local
403 Hotness = CalleeInfo::HotnessType::Cold; in computeFunctionSummary()
411 ValueInfo.updateHotness(Hotness); in computeFunctionSummary()
416 if (BFI != nullptr && Hotness == CalleeInfo::HotnessType::Unknown) { in computeFunctionSummary()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionImport.cpp710 auto GetBonusMultiplier = [](CalleeInfo::HotnessType Hotness) -> float { in computeImportForFunction() argument
711 if (Hotness == CalleeInfo::HotnessType::Hot) in computeImportForFunction()
713 if (Hotness == CalleeInfo::HotnessType::Cold) in computeImportForFunction()
715 if (Hotness == CalleeInfo::HotnessType::Critical) in computeImportForFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp9238 CalleeInfo::HotnessType Hotness = CalleeInfo::HotnessType::Unknown; in parseOptionalCalls() local
9247 if (parseToken(lltok::colon, "expected ':'") || parseHotness(Hotness)) in parseOptionalCalls()
9264 if (Hotness != CalleeInfo::HotnessType::Unknown && RelBF > 0) in parseOptionalCalls()
9272 FunctionSummary::EdgeTy{VI, CalleeInfo(Hotness, HasTailCall, RelBF)}); in parseOptionalCalls()
9297 bool LLParser::parseHotness(CalleeInfo::HotnessType &Hotness) { in parseHotness() argument
9300 Hotness = CalleeInfo::HotnessType::Unknown; in parseHotness()
9303 Hotness = CalleeInfo::HotnessType::Cold; in parseHotness()
9306 Hotness = CalleeInfo::HotnessType::None; in parseHotness()
9309 Hotness = CalleeInfo::HotnessType::Hot; in parseHotness()
9312 Hotness = CalleeInfo::HotnessType::Critical; in parseHotness()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h386 bool parseHotness(CalleeInfo::HotnessType &Hotness);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1122 CalleeInfo::HotnessType Hotness = in getDecodedHotnessCallEdgeInfo() local
1125 return {Hotness, HasTailCall}; in getDecodedHotnessCallEdgeInfo()
7067 CalleeInfo::HotnessType Hotness = CalleeInfo::HotnessType::Unknown; in makeCallList() local
7076 std::tie(Hotness, HasTailCall) = in makeCallList()
7081 Callee, CalleeInfo(Hotness, HasTailCall, RelBF)}); in makeCallList()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp1180 RawFlags |= CI.Hotness; // 3 bits in getEncodedHotnessCallEdgeInfo()