Home
last modified time | relevance | path

Searched refs:Hotness (Results 1 – 23 of 23) 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, ArrayRef<Argument> Args) { in mapRemarkHeader() argument
32 io.mapOptional("Hotness", Hotness); in mapRemarkHeader()
61 Remark->FunctionName, Remark->Hotness, Remark->Args); in mapping()
H A DBitstreamRemarkParser.cpp121 Parser.Hotness = Record[0]; in parseRecord()
559 if (Helper.Hotness) in processRemark()
560 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.cpp213 TheRemark.Hotness = *MaybeU; in parseRemark()
/freebsd/contrib/llvm-project/llvm/include/llvm/Remarks/
H A DRemark.h118 std::optional<uint64_t> Hotness; member
194 LHS.Hotness == RHS.Hotness && LHS.Args == RHS.Args;
203 LHS.FunctionName, LHS.Loc, LHS.Hotness, LHS.Args) <
205 RHS.FunctionName, RHS.Loc, RHS.Hotness, RHS.Args);
H A DBitstreamRemarkParser.h65 std::optional<uint64_t> Hotness; member
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DStaticDataSplitter.cpp187 auto Hotness = MachineFunctionDataHotness::Hot; in partitionStaticDataWithProfiles() local
193 Hotness = MachineFunctionDataHotness::Cold; in partitionStaticDataWithProfiles()
195 Changed |= MJTI->updateJumpTableEntryHotness(JTI, Hotness); in partitionStaticDataWithProfiles()
229 if (JumpTable.Hotness == MachineFunctionDataHotness::Hot) { in updateStatsWithProfiles()
232 assert(JumpTable.Hotness == MachineFunctionDataHotness::Cold && in updateStatsWithProfiles()
H A DMachineFunction.cpp1316 : MBBs(MBBs), Hotness(MachineFunctionDataHotness::Unknown) {} in MachineJumpTableEntry()
1368 size_t JTI, MachineFunctionDataHotness Hotness) { in updateJumpTableEntryHotness() argument
1371 if (Hotness <= JumpTables[JTI].Hotness) in updateJumpTableEntryHotness()
1374 JumpTables[JTI].Hotness = Hotness; in updateJumpTableEntryHotness()
H A DTargetLoweringObjectFileImpl.cpp660 if (JTE && JTE->Hotness != MachineFunctionDataHotness::Unknown) { in getELFSectionNameForGlobal()
661 if (JTE->Hotness == MachineFunctionDataHotness::Hot) { in getELFSectionNameForGlobal()
664 assert(JTE->Hotness == MachineFunctionDataHotness::Cold && in getELFSectionNameForGlobal()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineJumpTableInfo.h42 MachineFunctionDataHotness Hotness; member
120 MachineFunctionDataHotness Hotness);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DModuleSummaryIndex.cpp408 int Hotness; member
626 auto Draw = [&](GlobalValue::GUID IdFrom, GlobalValue::GUID IdTo, int Hotness) { in exportToDot() argument
628 CrossModuleEdges.push_back({ModId, Hotness, IdFrom, IdTo}); in exportToDot()
631 DrawEdge(" ", ModId, IdFrom, ModId, IdTo, Hotness); in exportToDot()
691 static_cast<int>(CGEdge.second.Hotness)); in exportToDot()
712 DrawEdge(" ", E.SrcMod, E.Src, DstMod, E.Dst, E.Hotness); in exportToDot()
H A DLLVMRemarkStreamer.cpp69 R.Hotness = Diag.getHotness(); in toRemark()
H A DDiagnosticInfo.cpp284 if (Hotness) in print()
285 DP << " (hotness: " << *Hotness << ")"; in print()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h73 uint32_t Hotness : 3; member
87 : Hotness(static_cast<uint32_t>(HotnessType::Unknown)), in CalleeInfo()
89 explicit CalleeInfo(HotnessType Hotness, bool HasTC, uint64_t RelBF) in CalleeInfo()
90 : Hotness(static_cast<uint32_t>(Hotness)), HasTailCall(HasTC), in CalleeInfo()
94 Hotness = std::max(Hotness, static_cast<uint32_t>(OtherHotness)); in updateHotness()
101 HotnessType getHotness() const { return HotnessType(Hotness); } in getHotness()
H A DDiagnosticInfo.h567 std::optional<uint64_t> getHotness() const { return Hotness; } in getHotness()
568 void setHotness(std::optional<uint64_t> H) { Hotness = H; } in setHotness()
609 std::optional<uint64_t> Hotness; variable
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp444 auto Hotness = ScaledCount ? getHotness(*ScaledCount, PSI) in computeFunctionSummary() local
447 Hotness = CalleeInfo::HotnessType::Cold; in computeFunctionSummary()
455 ValueInfo.updateHotness(Hotness); in computeFunctionSummary()
460 if (BFI != nullptr && Hotness == CalleeInfo::HotnessType::Unknown) { in computeFunctionSummary()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionImport.cpp907 auto GetBonusMultiplier = [](CalleeInfo::HotnessType Hotness) -> float { in computeImportForFunction() argument
908 if (Hotness == CalleeInfo::HotnessType::Hot) in computeImportForFunction()
910 if (Hotness == CalleeInfo::HotnessType::Cold) in computeImportForFunction()
912 if (Hotness == CalleeInfo::HotnessType::Critical) in computeImportForFunction()
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp10027 CalleeInfo::HotnessType Hotness = CalleeInfo::HotnessType::Unknown; in parseOptionalCalls() local
10036 if (parseToken(lltok::colon, "expected ':'") || parseHotness(Hotness)) in parseOptionalCalls()
10053 if (Hotness != CalleeInfo::HotnessType::Unknown && RelBF > 0) in parseOptionalCalls()
10061 FunctionSummary::EdgeTy{VI, CalleeInfo(Hotness, HasTailCall, RelBF)}); in parseOptionalCalls()
10086 bool LLParser::parseHotness(CalleeInfo::HotnessType &Hotness) { in parseHotness() argument
10089 Hotness = CalleeInfo::HotnessType::Unknown; in parseHotness()
10092 Hotness = CalleeInfo::HotnessType::Cold; in parseHotness()
10095 Hotness = CalleeInfo::HotnessType::None; in parseHotness()
10098 Hotness = CalleeInfo::HotnessType::Hot; in parseHotness()
10101 Hotness = CalleeInfo::HotnessType::Critical; in parseHotness()
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h402 bool parseHotness(CalleeInfo::HotnessType &Hotness);
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1188 CalleeInfo::HotnessType Hotness = in getDecodedHotnessCallEdgeInfo() local
1191 return {Hotness, HasTailCall}; in getDecodedHotnessCallEdgeInfo()
7446 CalleeInfo::HotnessType Hotness = CalleeInfo::HotnessType::Unknown; in makeCallList() local
7455 std::tie(Hotness, HasTailCall) = in makeCallList()
7460 Callee, CalleeInfo(Hotness, HasTailCall, RelBF)}); in makeCallList()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2969 if (JT[JTI].Hotness == MachineFunctionDataHotness::Cold) { in emitJumpTableInfo()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp1340 RawFlags |= CI.Hotness; // 3 bits in getEncodedHotnessCallEdgeInfo()