Home
last modified time | relevance | path

Searched refs:FunctionSummary (Results 1 – 22 of 22) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DModuleSummaryIndex.h414 class FunctionSummary : public GlobalValueSummary {
474 static FunctionSummary
475 makeDummyFunctionSummary(std::vector<FunctionSummary::EdgeTy> Edges) {
476 return FunctionSummary(
477 FunctionSummary::GVFlags(
480 0, FunctionSummary::FFlags{}, std::vector<ValueInfo>(),
482 std::vector<FunctionSummary::VFuncId>(),
483 std::vector<FunctionSummary::VFuncId>(),
484 std::vector<FunctionSummary::ConstVCall>(),
485 std::vector<FunctionSummary::ConstVCall>());
[all …]
DModuleSummaryIndexYAML.h143 std::vector<FunctionSummary::VFuncId> TypeTestAssumeVCalls,
145 std::vector<FunctionSummary::ConstVCall> TypeTestAssumeConstVCalls,
155 template <> struct MappingTraits<FunctionSummary::VFuncId> {
156 static void mapping(IO &io, FunctionSummary::VFuncId& id) {
162 template <> struct MappingTraits<FunctionSummary::ConstVCall> {
163 static void mapping(IO &io, FunctionSummary::ConstVCall& id) {
172 LLVM_YAML_IS_SEQUENCE_VECTOR(FunctionSummary::VFuncId)
173 LLVM_YAML_IS_SEQUENCE_VECTOR(FunctionSummary::ConstVCall)
224 Elem.SummaryList.push_back(llvm::make_unique<FunctionSummary>(
228 0, FunctionSummary::FFlags{}, Refs,
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp64 FunctionSummary::ForceSummaryHotnessType ForceSummaryEdgesCold =
65 FunctionSummary::FSHT_None;
66 cl::opt<FunctionSummary::ForceSummaryHotnessType, true> FSEC(
69 cl::values(clEnumValN(FunctionSummary::FSHT_None, "none", "None."),
70 clEnumValN(FunctionSummary::FSHT_AllNonCritical,
72 clEnumValN(FunctionSummary::FSHT_All, "all", "All edges.")));
139 SetVector<FunctionSummary::VFuncId> &VCalls, in addVCallToSet()
140 SetVector<FunctionSummary::ConstVCall> &ConstVCalls) { in addVCallToSet()
158 SetVector<FunctionSummary::VFuncId> &TypeTestAssumeVCalls, in addIntrinsicToSummary()
159 SetVector<FunctionSummary::VFuncId> &TypeCheckedLoadVCalls, in addIntrinsicToSummary()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DModuleSummaryIndex.cpp22 FunctionSummary FunctionSummary::ExternalNode =
23 FunctionSummary::makeDummyFunctionSummary({});
40 auto *Summary = dyn_cast_or_null<FunctionSummary>(GlobSummary.get()); in collectDefinedFunctionsForModule()
97 FunctionSummary *F = nullptr; in dumpSCCs()
99 F = cast<FunctionSummary>(V.getSummaryList().front().get()); in dumpSCCs()
183 static std::string fflagsToString(FunctionSummary::FFlags F) { in fflagsToString()
193 auto *FS = dyn_cast_or_null<FunctionSummary>(GVS); in getSummaryAttributes()
287 if (isa<FunctionSummary>(SummaryIt.second)) { in exportToDot()
321 if (auto *FS = dyn_cast_or_null<FunctionSummary>(SummaryIt.second)) in exportToDot()
DAsmWriter.cpp2349 void printFunctionSummary(const FunctionSummary *FS);
2354 void printTypeIdInfo(const FunctionSummary::TypeIdInfo &TIDInfo);
2355 void printVFuncId(const FunctionSummary::VFuncId VFId);
2357 printNonConstVCalls(const std::vector<FunctionSummary::VFuncId> VCallList,
2360 printConstVCalls(const std::vector<FunctionSummary::ConstVCall> VCallList,
2859 void AssemblyWriter::printFunctionSummary(const FunctionSummary *FS) { in printFunctionSummary()
2862 FunctionSummary::FFlags FFlags = FS->fflags(); in printFunctionSummary()
2892 const FunctionSummary::TypeIdInfo &TIDInfo) { in printTypeIdInfo()
2930 void AssemblyWriter::printVFuncId(const FunctionSummary::VFuncId VFId) { in printVFuncId()
2942 const std::vector<FunctionSummary::VFuncId> VCallList, const char *Tag) { in printNonConstVCalls()
[all …]
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DFunctionSummary.h32 class FunctionSummary {
50 FunctionSummary() : in FunctionSummary() function
56 typedef llvm::DenseMap<const Decl *, FunctionSummary> MapTy;
65 typedef std::pair<const Decl *, FunctionSummary> KVPair; in findOrInsertSummary()
66 I = Map.insert(KVPair(D, FunctionSummary())).first; in findOrInsertSummary()
/external/llvm/lib/Transforms/IPO/
DFunctionImport.cpp143 if (auto *FuncSummary = dyn_cast<FunctionSummary>(&Summary)) { in eligibleForImport()
145 FuncSummary->calls(), [&](const FunctionSummary::EdgeTy &Edge) { in eligibleForImport()
186 auto *Summary = cast<FunctionSummary>(GVSummary); in selectCallee()
260 using EdgeInfo = std::pair<const FunctionSummary *, unsigned /* Threshold */>;
266 const FunctionSummary &Summary, const ModuleSummaryIndex &Index, in computeImportForFunction()
286 const FunctionSummary *ResolvedCalleeSummary; in computeImportForFunction()
288 ResolvedCalleeSummary = cast<FunctionSummary>( in computeImportForFunction()
294 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary); in computeImportForFunction()
350 auto *FuncSummary = dyn_cast<FunctionSummary>(Summary); in ComputeImportForModule()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DFunctionImport.cpp193 auto *Summary = cast<FunctionSummary>(GVSummary->getBaseObject()); in selectCallee()
226 using EdgeInfo = std::tuple<const FunctionSummary *, unsigned /* Threshold */,
247 const FunctionSummary &Summary, const GVSummaryMapTy &DefinedGVSummaries, in computeImportForReferencedGlobals()
276 const FunctionSummary &Summary, const ModuleSummaryIndex &Index, in computeImportForFunction()
324 const FunctionSummary *ResolvedCalleeSummary = nullptr; in computeImportForFunction()
339 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary); in computeImportForFunction()
364 ResolvedCalleeSummary = cast<FunctionSummary>(CalleeSummary); in computeImportForFunction()
443 dyn_cast<FunctionSummary>(GVSummary.second->getBaseObject()); in ComputeImportForModule()
689 if (auto *FS = dyn_cast<FunctionSummary>(Base)) in computeDeadSymbols()
DWholeProgramDevirt.cpp344 std::vector<FunctionSummary *> SummaryTypeCheckedLoadUsers;
356 void addSummaryTypeCheckedLoadUser(FunctionSummary *FS) { in addSummaryTypeCheckedLoadUser()
1585 auto *FS = dyn_cast<FunctionSummary>(S.get()); in run()
1589 for (FunctionSummary::VFuncId VF : FS->type_test_assume_vcalls()) { in run()
1595 for (FunctionSummary::VFuncId VF : FS->type_checked_load_vcalls()) { in run()
1600 for (const FunctionSummary::ConstVCall &VC : in run()
1608 for (const FunctionSummary::ConstVCall &VC : in run()
DLowerTypeTests.cpp1969 if (auto *FS = dyn_cast<FunctionSummary>(S->getBaseObject())) in lower()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/AsmParser/
DLLParser.h350 bool ParseOptionalFFlags(FunctionSummary::FFlags &FFlags);
351 bool ParseOptionalCalls(std::vector<FunctionSummary::EdgeTy> &Calls);
353 bool ParseOptionalTypeIdInfo(FunctionSummary::TypeIdInfo &TypeIdInfo);
356 std::vector<FunctionSummary::VFuncId> &VFuncIdList);
359 std::vector<FunctionSummary::ConstVCall> &ConstVCallList);
362 bool ParseConstVCall(FunctionSummary::ConstVCall &ConstVCall,
364 bool ParseVFuncId(FunctionSummary::VFuncId &VFuncId,
DLLParser.cpp7513 std::vector<FunctionSummary::EdgeTy> Calls; in ParseFunctionSummary()
7514 FunctionSummary::TypeIdInfo TypeIdInfo; in ParseFunctionSummary()
7517 FunctionSummary::FFlags FFlags = {}; in ParseFunctionSummary()
7554 auto FS = llvm::make_unique<FunctionSummary>( in ParseFunctionSummary()
7670 bool LLParser::ParseOptionalFFlags(FunctionSummary::FFlags &FFlags) { in ParseOptionalFFlags()
7720 bool LLParser::ParseOptionalCalls(std::vector<FunctionSummary::EdgeTy> &Calls) { in ParseOptionalCalls()
7760 Calls.push_back(FunctionSummary::EdgeTy{VI, CalleeInfo(Hotness, RelBF)}); in ParseOptionalCalls()
7861 FunctionSummary::TypeIdInfo &TypeIdInfo) { in ParseOptionalTypeIdInfo()
7955 lltok::Kind Kind, std::vector<FunctionSummary::VFuncId> &VFuncIdList) { in ParseVFuncIdList()
7965 FunctionSummary::VFuncId VFuncId; in ParseVFuncIdList()
[all …]
/external/llvm/lib/Analysis/
DModuleSummaryAnalysis.cpp99 std::unique_ptr<FunctionSummary> FuncSummary = in computeFunctionSummary()
100 llvm::make_unique<FunctionSummary>(Flags, NumInsts); in computeFunctionSummary()
/external/clang/lib/StaticAnalyzer/Core/
DCMakeLists.txt29 FunctionSummary.cpp
/external/llvm/lib/IR/
DModuleSummaryIndex.cpp75 auto *Summary = dyn_cast_or_null<FunctionSummary>(GlobSummary.get()); in collectDefinedFunctionsForModule()
/external/llvm/include/llvm/IR/
DModuleSummaryIndex.h231 class FunctionSummary : public GlobalValueSummary {
246 FunctionSummary(GVFlags Flags, unsigned NumInsts) in FunctionSummary() function
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp745 std::vector<FunctionSummary::EdgeTy> makeCallList(ArrayRef<uint64_t> Record,
873 static FunctionSummary::FFlags getDecodedFFlags(uint64_t RawFlags) { in getDecodedFFlags()
874 FunctionSummary::FFlags Flags; in getDecodedFFlags()
5090 std::vector<FunctionSummary::EdgeTy>
5094 std::vector<FunctionSummary::EdgeTy> Ret; in makeCallList()
5108 Ret.push_back(FunctionSummary::EdgeTy{Callee, CalleeInfo(Hotness, RelBF)}); in makeCallList()
5194 std::vector<FunctionSummary::VFuncId> PendingTypeTestAssumeVCalls, in parseEntireSummary()
5196 std::vector<FunctionSummary::ConstVCall> PendingTypeTestAssumeConstVCalls, in parseEntireSummary()
5281 std::vector<FunctionSummary::EdgeTy> Calls = makeCallList( in parseEntireSummary()
5284 auto FS = llvm::make_unique<FunctionSummary>( in parseEntireSummary()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp94 extern FunctionSummary::ForceSummaryHotnessType ForceSummaryEdgesCold;
194 if (auto FS = dyn_cast<FunctionSummary>(Summary.get())) in ModuleBitcodeWriterBase()
966 static uint64_t getEncodedFFlags(FunctionSummary::FFlags Flags) { in getEncodedFFlags()
3357 BitstreamWriter &Stream, FunctionSummary *FS, in writeFunctionTypeMetadataRecords()
3368 ArrayRef<FunctionSummary::VFuncId> VFs) { in writeFunctionTypeMetadataRecords()
3386 ArrayRef<FunctionSummary::ConstVCall> VCs) { in writeFunctionTypeMetadataRecords()
3455 FunctionSummary *FS = cast<FunctionSummary>(Summary); in writePerModuleFunctionSummaryRecord()
3468 F.hasProfileData() || ForceSummaryEdgesCold != FunctionSummary::FSHT_None; in writePerModuleFunctionSummaryRecord()
3766 auto *FS = cast<FunctionSummary>(S); in writeCombinedGlobalValueSummary()
/external/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp3207 FunctionSummary *FS = cast<FunctionSummary>(Summary); in writePerModuleFunctionSummaryRecord()
3219 std::vector<FunctionSummary::EdgeTy> Calls = FS->calls(); in writePerModuleFunctionSummaryRecord()
3221 [this](const FunctionSummary::EdgeTy &L, in writePerModuleFunctionSummaryRecord()
3222 const FunctionSummary::EdgeTy &R) { in writePerModuleFunctionSummaryRecord()
3463 auto *FS = cast<FunctionSummary>(S); in writeCombinedGlobalValueSummary()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-lto/
Dllvm-lto.cpp336 if (auto *FuncSummary = dyn_cast<FunctionSummary>(Summary.get())) { in printIndexStats()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/LTO/
DLTO.cpp192 if (auto *FS = dyn_cast<FunctionSummary>(GS)) { in computeCacheKey()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp6180 std::unique_ptr<FunctionSummary> FS = in parseEntireSummary()
6181 llvm::make_unique<FunctionSummary>(Flags, InstCount); in parseEntireSummary()
6273 std::unique_ptr<FunctionSummary> FS = in parseEntireSummary()
6274 llvm::make_unique<FunctionSummary>(Flags, InstCount); in parseEntireSummary()