Home
last modified time | relevance | path

Searched refs:CalleeInfo (Results 1 – 16 of 16) sorted by relevance

/external/llvm/include/llvm/IR/
DModuleSummaryIndex.h32 struct CalleeInfo { struct
38 CalleeInfo() : CallsiteCount(0), ProfileCount(0) {} in CalleeInfo() argument
39 CalleeInfo(unsigned CallsiteCount, uint64_t ProfileCount) in CalleeInfo() argument
41 CalleeInfo &operator+=(uint64_t RHSProfileCount) {
234 typedef std::pair<ValueInfo, CalleeInfo> EdgeTy;
260 void addCallGraphEdge(GlobalValue::GUID CalleeGUID, CalleeInfo Info) { in addCallGraphEdge()
267 void addCallGraphEdge(const Value *CalleeV, CalleeInfo Info) { in addCallGraphEdge()
273 void addCallGraphEdges(DenseMap<const Value *, CalleeInfo> &CallGraphEdges) { in addCallGraphEdges()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp121 static CalleeInfo::HotnessType getHotness(uint64_t ProfileCount, in getHotness()
124 return CalleeInfo::HotnessType::Unknown; in getHotness()
126 return CalleeInfo::HotnessType::Hot; in getHotness()
128 return CalleeInfo::HotnessType::Cold; in getHotness()
129 return CalleeInfo::HotnessType::None; in getHotness()
234 MapVector<ValueInfo, CalleeInfo> CallGraphEdges; in computeFunctionSummary()
294 : CalleeInfo::HotnessType::Unknown; in computeFunctionSummary()
296 Hotness = CalleeInfo::HotnessType::Cold; in computeFunctionSummary()
307 if (BFI != nullptr && Hotness == CalleeInfo::HotnessType::Unknown) { in computeFunctionSummary()
348 ? CalleeInfo::HotnessType::Cold in computeFunctionSummary()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DModuleSummaryIndex.h53 struct CalleeInfo { struct
72 CalleeInfo() in CalleeInfo() argument
74 explicit CalleeInfo(HotnessType Hotness, uint64_t RelBF) in CalleeInfo() argument
417 using EdgeTy = std::pair<ValueInfo, CalleeInfo>;
859 Edges.push_back(std::make_pair(P.first, CalleeInfo{}));
976 auto CalleeInfo = getValueInfo(ValueGUID);
977 if (!CalleeInfo) {
981 llvm::find_if(CalleeInfo.getSummaryList(),
985 if (Summary == CalleeInfo.getSummaryList().end())
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DFunctionImport.cpp305 auto GetBonusMultiplier = [](CalleeInfo::HotnessType Hotness) -> float { in computeImportForFunction()
306 if (Hotness == CalleeInfo::HotnessType::Hot) in computeImportForFunction()
308 if (Hotness == CalleeInfo::HotnessType::Cold) in computeImportForFunction()
310 if (Hotness == CalleeInfo::HotnessType::Critical) in computeImportForFunction()
408 Edge.second.getHotness() == CalleeInfo::HotnessType::Hot; in computeImportForFunction()
/external/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp75 DenseMap<const Value *, CalleeInfo> CallGraphEdges; in computeFunctionSummary()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DAsmWriter.cpp2843 static const char *getHotnessName(CalleeInfo::HotnessType HT) { in getHotnessName()
2845 case CalleeInfo::HotnessType::Unknown: in getHotnessName()
2847 case CalleeInfo::HotnessType::Cold: in getHotnessName()
2849 case CalleeInfo::HotnessType::None: in getHotnessName()
2851 case CalleeInfo::HotnessType::Hot: in getHotnessName()
2853 case CalleeInfo::HotnessType::Critical: in getHotnessName()
2878 if (Call.second.getHotness() != CalleeInfo::HotnessType::Unknown) in printFunctionSummary()
/external/clang/lib/CodeGen/
DCGCall.cpp1621 StringRef Name, const CGFunctionInfo &FI, CGCalleeInfo CalleeInfo, in ConstructAttributeList() argument
1635 CalleeInfo.getCalleeFunctionProtoType()); in ConstructAttributeList()
1637 const Decl *TargetDecl = CalleeInfo.getCalleeDecl(); in ConstructAttributeList()
3511 CGCalleeInfo CalleeInfo, in EmitCall() argument
3908 CGM.ConstructAttributeList(Callee->getName(), CallInfo, CalleeInfo, in EmitCall()
4012 const Decl *TargetDecl = CalleeInfo.getCalleeDecl(); in EmitCall()
4113 const Decl *TargetDecl = CalleeInfo.getCalleeDecl(); in EmitCall()
DCodeGenModule.h986 CGCalleeInfo CalleeInfo, AttributeListType &PAL,
DCodeGenFunction.h2819 CGCalleeInfo CalleeInfo = CGCalleeInfo(),
2824 CGCalleeInfo CalleeInfo = CGCalleeInfo(),
DCGExpr.cpp3986 CGCalleeInfo CalleeInfo, llvm::Value *Chain) { in EmitCall() argument
3999 const Decl *TargetDecl = CalleeInfo.getCalleeDecl(); in EmitCall()
DMicrosoftCXXABI.cpp3887 const CGFunctionInfo &CalleeInfo = CGM.getTypes().arrangeCXXConstructorCall( in getAddrOfCXXCtorClosure() local
3889 CGF.EmitCall(CalleeInfo, CalleeFn, ReturnValueSlot(), Args, CD); in getAddrOfCXXCtorClosure()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/AsmParser/
DLLParser.h352 bool ParseHotness(CalleeInfo::HotnessType &Hotness);
DLLParser.cpp7742 CalleeInfo::HotnessType Hotness = CalleeInfo::HotnessType::Unknown; in ParseOptionalCalls()
7760 Calls.push_back(FunctionSummary::EdgeTy{VI, CalleeInfo(Hotness, RelBF)}); in ParseOptionalCalls()
7787 bool LLParser::ParseHotness(CalleeInfo::HotnessType &Hotness) { in ParseHotness()
7790 Hotness = CalleeInfo::HotnessType::Unknown; in ParseHotness()
7793 Hotness = CalleeInfo::HotnessType::Cold; in ParseHotness()
7796 Hotness = CalleeInfo::HotnessType::None; in ParseHotness()
7799 Hotness = CalleeInfo::HotnessType::Hot; in ParseHotness()
7802 Hotness = CalleeInfo::HotnessType::Critical; in ParseHotness()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp5097 CalleeInfo::HotnessType Hotness = CalleeInfo::HotnessType::Unknown; in makeCallList()
5105 Hotness = static_cast<CalleeInfo::HotnessType>(Record[++I]); in makeCallList()
5108 Ret.push_back(FunctionSummary::EdgeTy{Callee, CalleeInfo(Hotness, RelBF)}); in makeCallList()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp6206 CalleeInfo(CallsiteCount, ProfileCount)); in parseEntireSummary()
6295 CalleeInfo(CallsiteCount, ProfileCount)); in parseEntireSummary()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp3790 EI.second.getHotness() != CalleeInfo::HotnessType::Unknown; in writeCombinedGlobalValueSummary()