/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ModuleSummaryAnalysis.cpp | 161 static CalleeInfo::HotnessType getHotness(uint64_t ProfileCount, in getHotness() 164 return CalleeInfo::HotnessType::Unknown; in getHotness() 166 return CalleeInfo::HotnessType::Hot; in getHotness() 168 return CalleeInfo::HotnessType::Cold; in getHotness() 169 return CalleeInfo::HotnessType::None; in getHotness() 310 MapVector<ValueInfo, CalleeInfo, DenseMap<ValueInfo, unsigned>, in computeFunctionSummary() 311 std::vector<std::pair<ValueInfo, CalleeInfo>>> in computeFunctionSummary() 432 : CalleeInfo::HotnessType::Unknown; in computeFunctionSummary() 434 Hotness = CalleeInfo::HotnessType::Cold; in computeFunctionSummary() 447 if (BFI != nullptr && Hotness == CalleeInfo::HotnessType::Unknown) { in computeFunctionSummary() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | ModuleSummaryIndex.h | 59 struct CalleeInfo { struct 82 CalleeInfo() in CalleeInfo() function 85 explicit CalleeInfo(HotnessType Hotness, bool HasTC, uint64_t RelBF) in CalleeInfo() argument 118 inline const char *getHotnessName(CalleeInfo::HotnessType HT) { in getHotnessName() argument 120 case CalleeInfo::HotnessType::Unknown: in getHotnessName() 122 case CalleeInfo::HotnessType::Cold: in getHotnessName() 124 case CalleeInfo::HotnessType::None: in getHotnessName() 126 case CalleeInfo::HotnessType::Hot: in getHotnessName() 128 case CalleeInfo::HotnessType::Critical: in getHotnessName() 700 using EdgeTy = std::pair<ValueInfo, CalleeInfo>; [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | FunctionImport.h | 79 CalleeInfo::HotnessType MaxHotness; 85 ImportFailureInfo(ValueInfo VI, CalleeInfo::HotnessType MaxHotness, in ImportFailureInfo()
|
/freebsd/contrib/llvm-project/llvm/lib/LTO/ |
H A D | SummaryBasedOptimizations.cpp | 54 return Scaled64(Edge.second.RelBlockFreq, -CalleeInfo::ScaleShift); in computeSyntheticCounts()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | FunctionImport.cpp | 748 auto GetBonusMultiplier = [](CalleeInfo::HotnessType Hotness) -> float { in computeImportForFunction() 749 if (Hotness == CalleeInfo::HotnessType::Hot) in computeImportForFunction() 751 if (Hotness == CalleeInfo::HotnessType::Cold) in computeImportForFunction() 753 if (Hotness == CalleeInfo::HotnessType::Critical) in computeImportForFunction() 769 Edge.second.getHotness() == CalleeInfo::HotnessType::Hot; in computeImportForFunction() 771 Edge.second.getHotness() == CalleeInfo::HotnessType::Critical; in computeImportForFunction()
|
H A D | WholeProgramDevirt.cpp | 1259 CalleeInfo CI(CalleeInfo::HotnessType::Hot, /* HasTailCall = */ false, in AddCalls()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUAttributor.cpp | 977 const auto *CalleeInfo = A.getAAFor<AAAMDGPUNoAGPR>( in updateImpl() local 979 return CalleeInfo && CalleeInfo->getAssumed(); in updateImpl()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CodeGenModule.h | 1345 CGCalleeInfo CalleeInfo, 1352 void AdjustMemoryAttribute(StringRef Name, CGCalleeInfo CalleeInfo,
|
H A D | CGCall.cpp | 2280 CGCalleeInfo CalleeInfo, in AdjustMemoryAttribute() argument 2309 CGCalleeInfo CalleeInfo, in ConstructAttributeList() argument 2326 CalleeInfo.getCalleeFunctionProtoType()); in ConstructAttributeList() 2328 const Decl *TargetDecl = CalleeInfo.getCalleeDecl().getDecl(); in ConstructAttributeList() 2540 GetCPUAndFeaturesAttributes(CalleeInfo.getCalleeDecl(), FuncAttrs); in ConstructAttributeList()
|
H A D | MicrosoftCXXABI.cpp | 4172 const CGFunctionInfo &CalleeInfo = CGM.getTypes().arrangeCXXConstructorCall( in getAddrOfCXXCtorClosure() local 4174 CGF.EmitCall(CalleeInfo, Callee, ReturnValueSlot(), Args); in getAddrOfCXXCtorClosure()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/ |
H A D | LLParser.h | 398 bool parseHotness(CalleeInfo::HotnessType &Hotness);
|
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/ |
H A D | LLParser.cpp | 9699 CalleeInfo::HotnessType Hotness = CalleeInfo::HotnessType::Unknown; 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() 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 D | BitcodeReader.cpp | 1179 static std::pair<CalleeInfo::HotnessType, bool> 1181 CalleeInfo::HotnessType Hotness = in getDecodedHotnessCallEdgeInfo() 1182 static_cast<CalleeInfo::HotnessType>(RawFlags & 0x7); // 3 bits in getDecodedHotnessCallEdgeInfo() 1190 (1 << CalleeInfo::RelBlockFreqBits) - 1; in getDecodedRelBFCallEdgeInfo() 1192 HasTailCall = (RawFlags & (1 << CalleeInfo::RelBlockFreqBits)); // 1 bit in getDecodedRelBFCallEdgeInfo() 7382 CalleeInfo::HotnessType Hotness = CalleeInfo::HotnessType::Unknown; in makeCallList() 7396 Callee, CalleeInfo(Hotness, HasTailCall, RelBF)}); in makeCallList()
|
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
H A D | BitcodeWriter.cpp | 1269 static uint64_t getEncodedHotnessCallEdgeInfo(const CalleeInfo &CI) { in getEncodedHotnessCallEdgeInfo() 1278 static uint64_t getEncodedRelBFCallEdgeInfo(const CalleeInfo &CI) { in getEncodedRelBFCallEdgeInfo() 1282 RawFlags |= (CI.HasTailCall << CalleeInfo::RelBlockFreqBits); // 1 bit in getEncodedRelBFCallEdgeInfo()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | AsmWriter.cpp | 3356 if (Call.second.getHotness() != CalleeInfo::HotnessType::Unknown) in printFunctionSummary()
|