Home
last modified time | relevance | path

Searched refs:ValueInfo (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h180 struct ValueInfo { struct
185 ValueInfo() = default; argument
186 ValueInfo(bool HaveGVs, const GlobalValueSummaryMapTy::value_type *R) { in ValueInfo() argument
253 inline raw_ostream &operator<<(raw_ostream &OS, const ValueInfo &VI) { argument
260 inline bool operator==(const ValueInfo &A, const ValueInfo &B) {
266 inline bool operator!=(const ValueInfo &A, const ValueInfo &B) {
272 inline bool operator<(const ValueInfo &A, const ValueInfo &B) {
278 template <> struct DenseMapInfo<ValueInfo> {
279 static inline ValueInfo getEmptyKey() {
280 return ValueInfo(false, (GlobalValueSummaryMapTy::value_type *)-8);
[all …]
H A DModuleSummaryIndexYAML.h221 std::vector<ValueInfo> Refs;
225 Refs.push_back(ValueInfo(/*IsAnalysis=*/false, &*V.find(RefGUID)));
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DComparisonCategories.h85 struct ValueInfo { struct
89 ValueInfo(ComparisonCategoryResult Kind, VarDecl *VD) in ValueInfo() argument
106 ValueInfo, static_cast<unsigned>(ComparisonCategoryResult::Last) + 1>
114 ValueInfo *lookupValueInfo(ComparisonCategoryResult ValueKind) const;
127 const ValueInfo *getValueInfo(ComparisonCategoryResult ValueKind) const { in getValueInfo()
128 ValueInfo *Info = lookupValueInfo(ValueKind); in getValueInfo()
159 const ValueInfo *getEqualOrEquiv() const { in getEqualOrEquiv()
162 const ValueInfo *getLess() const { in getLess()
165 const ValueInfo *getGreater() const { in getGreater()
168 const ValueInfo *getUnordered() const { in getUnordered()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp103 SetVector<ValueInfo, std::vector<ValueInfo>> &RefEdges, in findRefEdges() argument
310 MapVector<ValueInfo, CalleeInfo, DenseMap<ValueInfo, unsigned>, in computeFunctionSummary()
311 std::vector<std::pair<ValueInfo, CalleeInfo>>> in computeFunctionSummary()
313 SetVector<ValueInfo, std::vector<ValueInfo>> RefEdges, LoadRefEdges, in computeFunctionSummary()
440 auto &ValueInfo = CallGraphEdges[Index.getOrInsertValueInfo( in computeFunctionSummary() local
442 ValueInfo.updateHotness(Hotness); in computeFunctionSummary()
444 ValueInfo.setHasTailCall(true); in computeFunctionSummary()
450 ValueInfo.updateRelBlockFreq(BBFreq, EntryFreq); in computeFunctionSummary()
571 std::vector<ValueInfo> Refs; in computeFunctionSummary()
574 SetVector<ValueInfo, std::vector<ValueInfo>> &Edges, in computeFunctionSummary()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DSummaryBasedOptimizations.cpp56 auto GetEntryCount = [](ValueInfo V) { in computeSyntheticCounts()
65 auto AddToEntryCount = [](ValueInfo V, Scaled64 New) { in computeSyntheticCounts()
76 auto GetProfileCount = [&](ValueInfo V, FunctionSummary::EdgeTy &Edge) { in computeSyntheticCounts()
H A DLTO.cpp251 for (const ValueInfo &VI : GS->refs()) { in computeLTOCacheKey()
362 const Config &C, ValueInfo VI, in thinLTOResolvePrevailingGUID()
461 ValueInfo VI, function_ref<bool(StringRef, ValueInfo)> isExported, in thinLTOInternalizeAndPromoteGUID()
541 function_ref<bool(StringRef, ValueInfo)> isExported, in thinLTOInternalizeAndPromoteInIndex()
1766 std::map<ValueInfo, std::vector<VTableSlotSummary>> LocalWPDTargetsMap; in runThinLTO()
1814 auto isExported = [&](StringRef ModuleIdentifier, ValueInfo VI) { in runThinLTO()
H A DThinLTOCodeGenerator.cpp636 bool operator()(StringRef ModuleIdentifier, ValueInfo VI) const { in operator ()()
1069 std::map<ValueInfo, std::vector<VTableSlotSummary>> LocalWPDTargetsMap; in run()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DModuleSummaryIndex.cpp42 GlobalValue::VisibilityTypes ValueInfo::getELFVisibility() const { in getELFVisibility()
54 bool ValueInfo::isDSOLocal(bool WithDSOLocalPropagation) const { in isDSOLocal()
67 bool ValueInfo::canAutoHide() const { in canAutoHide()
207 DenseSet<ValueInfo> &MarkedNonReadWriteOnly) { in propagateAttributesToRefs()
266 DenseSet<ValueInfo> MarkedNonReadWriteOnly; in propagateAttributes()
373 for (const ValueInfo &V : *I) { in dumpSCCs()
496 static std::string getNodeVisualName(const ValueInfo &VI) { in getNodeVisualName()
500 static std::string getNodeLabel(const ValueInfo &VI, GlobalValueSummary *GVS) { in getNodeLabel()
518 const ValueInfo &VI, GlobalValue::GUID Id) { in defineExternalNode()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DComparisonCategories.cpp44 bool ComparisonCategoryInfo::ValueInfo::hasValidIntValue() const { in hasValidIntValue()
67 llvm::APSInt ComparisonCategoryInfo::ValueInfo::getIntValue() const { in getIntValue()
72 ComparisonCategoryInfo::ValueInfo *ComparisonCategoryInfo::lookupValueInfo( in lookupValueInfo()
76 Objects, [&](ValueInfo const &Info) { return Info.Kind == ValueKind; }); in lookupValueInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DFunctionImport.h77 ValueInfo VI;
85 ImportFailureInfo(ValueInfo VI, CalleeInfo::HotnessType MaxHotness, in ImportFailureInfo()
110 using ExportSetTy = DenseSet<ValueInfo>;
H A DWholeProgramDevirt.h34 struct ValueInfo;
269 std::map<ValueInfo, std::vector<VTableSlotSummary>> &LocalWPDTargetsMap);
275 function_ref<bool(StringRef, ValueInfo)> isExported,
276 std::map<ValueInfo, std::vector<VTableSlotSummary>> &LocalWPDTargetsMap);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DPredicateInfo.cpp238 struct ValueInfo { struct in llvm::PredicateInfoBuilder
250 SmallVector<ValueInfo, 32> ValueInfos;
261 ValueInfo &getOrCreateValueInfo(Value *);
262 const ValueInfo &getValueInfo(Value *) const;
616 const auto &ValueInfo = getValueInfo(Op); in renameUses() local
620 for (const auto &PossibleCopy : ValueInfo.Infos) { in renameUses()
730 PredicateInfoBuilder::ValueInfo &
744 const PredicateInfoBuilder::ValueInfo &
H A DFunctionImportUtils.cpp46 const GlobalValue *SGV, ValueInfo VI) { in shouldPromoteLocalToGlobal()
222 ValueInfo VI; in processGlobalForThinLTO()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DWholeProgramDevirt.cpp378 static bool mustBeUnreachableFunction(ValueInfo TheFnVI) { in mustBeUnreachableFunction()
694 static ValueInfo lookUpFunctionValueInfo(Function *TheFn,
724 std::map<ValueInfo, std::vector<VTableSlotSummary>> &LocalWPDTargetsMap;
733 std::map<ValueInfo, std::vector<VTableSlotSummary>> &LocalWPDTargetsMap) in DevirtIndex()
739 bool tryFindVirtualCallTargets(std::vector<ValueInfo> &TargetsForSlot,
743 bool trySingleImplDevirt(MutableArrayRef<ValueInfo> TargetsForSlot,
747 std::set<ValueInfo> &DevirtTargets);
923 std::map<ValueInfo, std::vector<VTableSlotSummary>> &LocalWPDTargetsMap) { in runWholeProgramDevirtOnIndex() argument
929 function_ref<bool(StringRef, ValueInfo)> isExported, in updateIndexWPDForExports()
930 std::map<ValueInfo, std::vector<VTableSlotSummary>> &LocalWPDTargetsMap) { in updateIndexWPDForExports() argument
[all …]
H A DFunctionImport.cpp328 bool shouldImportGlobal(const ValueInfo &VI) { in shouldImportGlobal()
476 StringMap<DenseSet<ValueInfo>> Workloads;
598 StringMap<ValueInfo> NameToValueInfo; in WorkloadImportsManager()
601 ValueInfo VI = Index.getValueInfo(I); in WorkloadImportsManager()
730 ValueInfo VI = Edge.first; in computeImportForFunction()
984 static bool isGlobalVarSummary(const ModuleSummaryIndex &Index, ValueInfo VI) { in isGlobalVarSummary()
1046 const ValueInfo &VI) { in checkVariableImport()
1304 SmallVector<ValueInfo, 128> Worklist; in computeDeadSymbolsAndUpdateIndirectCalls()
1307 ValueInfo VI = Index.getValueInfo(GUID); in computeDeadSymbolsAndUpdateIndirectCalls()
1330 auto visit = [&](ValueInfo VI, bool IsAliasee) { in computeDeadSymbolsAndUpdateIndirectCalls()
H A DMemProfContextDisambiguation.cpp748 ValueInfo ProfiledCallee, ValueInfo CurCallee, unsigned Depth,
766 std::map<const FunctionSummary *, ValueInfo> FSToVIMap;
777 std::map<ValueInfo, std::unique_ptr<CallsiteInfo>>>
2087 ValueInfo ProfiledCallee, ValueInfo CurCallee, unsigned Depth, in findProfiledCalleeThroughTailCalls()
2095 auto CreateAndSaveCallsiteInfo = [&](ValueInfo Callee, FunctionSummary *FS) { in findProfiledCalleeThroughTailCalls()
2169 ValueInfo Callee = in calleeMatchesFunc()
3459 static ValueInfo findValueInfoForFunc(const Function &F, const Module &M, in findValueInfoForFunc()
3464 ValueInfo TheFnVI = ImportSummary->getValueInfo(F.getGUID()); in findValueInfoForFunc()
3579 ValueInfo TheFnVI = findValueInfoForFunc(F, M, ImportSummary); in applyImport()
3622 DenseMap<ValueInfo, CallsiteInfo> MapTailCallCalleeVIToCallsite; in applyImport()
[all …]
H A DFunctionAttrs.cpp301 ValueInfo VI, in calculatePrevailingSummary()
302 DenseMap<ValueInfo, FunctionSummary *> &CachedPrevailingSummary, in calculatePrevailingSummary() argument
412 DenseMap<ValueInfo, FunctionSummary *> CachedPrevailingSummary; in thinLTOPropagateFunctionAttrs()
415 auto PropagateAttributes = [&](std::vector<ValueInfo> &SCCNodes) { in thinLTOPropagateFunctionAttrs()
481 std::vector<ValueInfo> Nodes(*I); in thinLTOPropagateFunctionAttrs()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DABIInfoImpl.cpp207 TypeInfoChars ValueInfo, in emitVoidPtrVAArg() argument
217 DirectSize = ValueInfo.Width; in emitVoidPtrVAArg()
218 DirectAlign = ValueInfo.Align; in emitVoidPtrVAArg()
233 Addr = Address(CGF.Builder.CreateLoad(Addr), ElementTy, ValueInfo.Align); in emitVoidPtrVAArg()
H A DABIInfoImpl.h117 TypeInfoChars ValueInfo, CharUnits SlotSizeAndAlign,
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DFunctionImportUtils.h65 bool shouldPromoteLocalToGlobal(const GlobalValue *SGV, ValueInfo VI);
/freebsd/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h164 std::map<unsigned, std::vector<std::pair<ValueInfo *, LocTy>>>
168 std::vector<ValueInfo> NumberedValueInfos;
387 bool parseGVReference(ValueInfo &VI, unsigned &GVId);
422 bool parseOptionalRefs(std::vector<ValueInfo> &Refs);
/freebsd/contrib/llvm-project/llvm/include/llvm/LTO/
H A DLTO.h59 function_ref<bool(StringRef, ValueInfo)> isExported,
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp949 std::tuple<ValueInfo, GlobalValue::GUID, GlobalValue::GUID>>
988 std::vector<ValueInfo> makeRefList(ArrayRef<uint64_t> Record);
1002 std::tuple<ValueInfo, GlobalValue::GUID, GlobalValue::GUID>
7092 std::tuple<ValueInfo, GlobalValue::GUID, GlobalValue::GUID>
7360 std::vector<ValueInfo>
7362 std::vector<ValueInfo> Ret; in makeRefList()
7385 ValueInfo Callee = std::get<0>(getValueInfoFromValueId(Record[I])); in makeCallList()
7490 ValueInfo Callee = std::get<0>(getValueInfoFromValueId(Record[Slot++])); in parseTypeIdCompatibleVtableInfo()
7507 static void setSpecialRefs(std::vector<ValueInfo> &Refs, unsigned ROCnt, in setSpecialRefs()
7652 std::vector<ValueInfo> Refs = makeRefList( in parseEntireSummary()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp8823 static ValueInfo EmptyVI =
8824 ValueInfo(false, (GlobalValueSummaryMapTy::value_type *)-8);
8862 ValueInfo VI; in parseTypeIdCompatibleVtableEntry()
9182 static void resolveFwdRef(ValueInfo *Fwd, ValueInfo &Resolved) { in resolveFwdRef()
9199 ValueInfo VI; in addGlobalValueToIndex()
9391 std::vector<ValueInfo> Refs; in parseFunctionSummary()
9479 std::vector<ValueInfo> Refs; in parseVariableSummary()
9543 ValueInfo AliaseeVI; in parseAliasSummary()
9688 ValueInfo VI; in parseOptionalCalls()
9796 ValueInfo VI; in parseOptionalVTableFuncs()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp253 unsigned getValueId(ValueInfo VI) { in getValueId()
4164 std::function<unsigned(const ValueInfo &VI)> GetValueID, in writeFunctionHeapProfileRecords()
4229 Stream, FS, [&](const ValueInfo &VI) -> std::optional<unsigned> { in writePerModuleFunctionSummaryRecord()
4236 /*GetValueId*/ [&](const ValueInfo &VI) { return getValueId(VI); }, in writePerModuleFunctionSummaryRecord()
4457 ValueInfo VI = Index->getValueInfo(F.getGUID()); in writePerModuleGlobalValueSummary()
4633 for (const ValueInfo &VI : S->refs()) in writeCombinedGlobalValueSummary()
4674 auto GetValueId = [&](const ValueInfo &VI) -> std::optional<unsigned> { in writeCombinedGlobalValueSummary()
4688 [&](const ValueInfo &VI) -> unsigned { in writeCombinedGlobalValueSummary()

12