Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h179 struct ValueInfo { struct
184 ValueInfo() = default; argument
259 inline bool operator==(const ValueInfo &A, const ValueInfo &B) {
265 inline bool operator!=(const ValueInfo &A, const ValueInfo &B) {
271 inline bool operator<(const ValueInfo &A, const ValueInfo &B) {
290 static bool isEqual(ValueInfo L, ValueInfo R) {
302 ValueInfo Callee;
592 ValueInfo AliaseeValueInfo;
782 ValueInfo Callee;
1074 ValueInfo FuncVI;
[all …]
H A DModuleSummaryIndexYAML.h219 std::vector<ValueInfo> Refs;
223 Refs.push_back(ValueInfo(/*IsAnalysis=*/false, &*V.find(RefGUID)));
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DComparisonCategories.h85 struct ValueInfo { struct
89 ValueInfo(ComparisonCategoryResult Kind, VarDecl *VD) in ValueInfo() function
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-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DModuleSummaryAnalysis.cpp96 SetVector<ValueInfo, std::vector<ValueInfo>> &RefEdges, in findRefEdges() argument
279 MapVector<ValueInfo, CalleeInfo, DenseMap<ValueInfo, unsigned>, in computeFunctionSummary()
280 std::vector<std::pair<ValueInfo, CalleeInfo>>> in computeFunctionSummary()
282 SetVector<ValueInfo, std::vector<ValueInfo>> RefEdges, LoadRefEdges, in computeFunctionSummary()
411 ValueInfo.updateHotness(Hotness); in computeFunctionSummary()
413 ValueInfo.setHasTailCall(true); in computeFunctionSummary()
419 ValueInfo.updateRelBlockFreq(BBFreq, EntryFreq); in computeFunctionSummary()
530 std::vector<ValueInfo> Refs; in computeFunctionSummary()
533 SetVector<ValueInfo, std::vector<ValueInfo>> &Edges, in computeFunctionSummary()
738 SetVector<ValueInfo, std::vector<ValueInfo>> RefEdges; in computeVariableSummary()
[all …]
/freebsd-14.2/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.cpp239 for (const ValueInfo &VI : GS->refs()) { in computeLTOCacheKey()
350 const Config &C, ValueInfo VI, in thinLTOResolvePrevailingGUID()
449 ValueInfo VI, function_ref<bool(StringRef, ValueInfo)> isExported, in thinLTOInternalizeAndPromoteGUID()
529 function_ref<bool(StringRef, ValueInfo)> isExported, in thinLTOInternalizeAndPromoteInIndex()
1734 std::map<ValueInfo, std::vector<VTableSlotSummary>> LocalWPDTargetsMap; in runThinLTO()
1782 auto isExported = [&](StringRef ModuleIdentifier, ValueInfo VI) { in runThinLTO()
H A DThinLTOCodeGenerator.cpp644 bool operator()(StringRef ModuleIdentifier, ValueInfo VI) const { in operator ()()
1073 std::map<ValueInfo, std::vector<VTableSlotSummary>> LocalWPDTargetsMap; in run()
/freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/IPO/
H A DFunctionImport.h72 ValueInfo VI;
80 ImportFailureInfo(ValueInfo VI, CalleeInfo::HotnessType MaxHotness, in ImportFailureInfo()
103 using ExportSetTy = DenseSet<ValueInfo>;
H A DWholeProgramDevirt.h33 struct ValueInfo;
268 std::map<ValueInfo, std::vector<VTableSlotSummary>> &LocalWPDTargetsMap);
274 function_ref<bool(StringRef, ValueInfo)> isExported,
275 std::map<ValueInfo, std::vector<VTableSlotSummary>> &LocalWPDTargetsMap);
/freebsd-14.2/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;
618 const auto &ValueInfo = getValueInfo(Op); in renameUses() local
622 for (const auto &PossibleCopy : ValueInfo.Infos) { in renameUses()
732 PredicateInfoBuilder::ValueInfo &
746 const PredicateInfoBuilder::ValueInfo &
H A DFunctionImportUtils.cpp46 const GlobalValue *SGV, ValueInfo VI) { in shouldPromoteLocalToGlobal()
222 ValueInfo VI; in processGlobalForThinLTO()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DWholeProgramDevirt.cpp378 static bool mustBeUnreachableFunction(ValueInfo TheFnVI) { in mustBeUnreachableFunction()
694 static ValueInfo lookUpFunctionValueInfo(Function *TheFn,
739 bool tryFindVirtualCallTargets(std::vector<ValueInfo> &TargetsForSlot,
743 bool trySingleImplDevirt(MutableArrayRef<ValueInfo> TargetsForSlot,
747 std::set<ValueInfo> &DevirtTargets);
929 function_ref<bool(StringRef, ValueInfo)> isExported, in updateIndexWPDForExports()
1109 std::vector<ValueInfo> &TargetsForSlot, in tryFindVirtualCallTargets()
2208 ValueInfo
2217 ValueInfo TheFnVI = ExportSummary->getValueInfo(TheFnGUID); in lookUpFunctionValueInfo()
2500 std::set<ValueInfo> DevirtTargets; in run()
[all …]
H A DFunctionImport.cpp300 bool shouldImportGlobal(const ValueInfo &VI) { in shouldImportGlobal()
439 StringMap<DenseSet<ValueInfo>> Workloads;
560 StringMap<ValueInfo> NameToValueInfo; in WorkloadImportsManager()
563 ValueInfo VI = Index.getValueInfo(I); in WorkloadImportsManager()
692 ValueInfo VI = Edge.first; in computeImportForFunction()
922 static bool isGlobalVarSummary(const ModuleSummaryIndex &Index, ValueInfo VI) { in isGlobalVarSummary()
967 const ValueInfo &VI) { in checkVariableImport()
1210 SmallVector<ValueInfo, 128> Worklist; in computeDeadSymbolsAndUpdateIndirectCalls()
1213 ValueInfo VI = Index.getValueInfo(GUID); in computeDeadSymbolsAndUpdateIndirectCalls()
1236 auto visit = [&](ValueInfo VI, bool IsAliasee) { in computeDeadSymbolsAndUpdateIndirectCalls()
H A DMemProfContextDisambiguation.cpp669 ValueInfo ProfiledCallee, ValueInfo CurCallee, unsigned Depth,
687 std::map<const FunctionSummary *, ValueInfo> FSToVIMap;
698 std::map<ValueInfo, std::unique_ptr<CallsiteInfo>>>
1933 ValueInfo ProfiledCallee, ValueInfo CurCallee, unsigned Depth, in findProfiledCalleeThroughTailCalls()
1941 auto CreateAndSaveCallsiteInfo = [&](ValueInfo Callee, FunctionSummary *FS) { in findProfiledCalleeThroughTailCalls()
2013 ValueInfo Callee = in calleeMatchesFunc()
3248 static ValueInfo findValueInfoForFunc(const Function &F, const Module &M, in findValueInfoForFunc()
3253 ValueInfo TheFnVI = ImportSummary->getValueInfo(F.getGUID()); in findValueInfoForFunc()
3368 ValueInfo TheFnVI = findValueInfoForFunc(F, M, ImportSummary); in applyImport()
3399 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-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DABIInfoImpl.cpp204 TypeInfoChars ValueInfo, in emitVoidPtrVAArg() argument
214 DirectSize = ValueInfo.Width; in emitVoidPtrVAArg()
215 DirectAlign = ValueInfo.Align; in emitVoidPtrVAArg()
230 Addr = Address(CGF.Builder.CreateLoad(Addr), ElementTy, ValueInfo.Align); in emitVoidPtrVAArg()
H A DABIInfoImpl.h117 TypeInfoChars ValueInfo, CharUnits SlotSizeAndAlign,
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DFunctionImportUtils.h65 bool shouldPromoteLocalToGlobal(const GlobalValue *SGV, ValueInfo VI);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/AsmParser/
H A DLLParser.h163 std::map<unsigned, std::vector<std::pair<ValueInfo *, LocTy>>>
167 std::vector<ValueInfo> NumberedValueInfos;
375 bool parseGVReference(ValueInfo &VI, unsigned &GVId);
410 bool parseOptionalRefs(std::vector<ValueInfo> &Refs);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/LTO/
H A DLTO.h59 function_ref<bool(StringRef, ValueInfo)> isExported,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp930 std::vector<ValueInfo> makeRefList(ArrayRef<uint64_t> Record);
944 std::tuple<ValueInfo, GlobalValue::GUID, GlobalValue::GUID>
6783 std::tuple<ValueInfo, GlobalValue::GUID, GlobalValue::GUID>
7051 std::vector<ValueInfo>
7053 std::vector<ValueInfo> Ret; in makeRefList()
7337 std::vector<ValueInfo> Refs = makeRefList( in parseEntireSummary()
7412 std::vector<ValueInfo> Refs = in parseEntireSummary()
7433 std::vector<ValueInfo> Refs = makeRefList( in parseEntireSummary()
7494 std::vector<ValueInfo> Refs = makeRefList( in parseEntireSummary()
7554 std::vector<ValueInfo> Refs = in parseEntireSummary()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/AsmParser/
H A DLLParser.cpp8365 static ValueInfo EmptyVI =
8404 ValueInfo VI; in parseTypeIdCompatibleVtableEntry()
8724 static void resolveFwdRef(ValueInfo *Fwd, ValueInfo &Resolved) { in resolveFwdRef()
8741 ValueInfo VI; in addGlobalValueToIndex()
8932 std::vector<ValueInfo> Refs; in parseFunctionSummary()
9082 ValueInfo AliaseeVI; in parseAliasSummary()
9227 ValueInfo VI; in parseOptionalCalls()
9335 ValueInfo VI; in parseOptionalVTableFuncs()
9427 ValueInfo VI; in parseParamAccessCall()
9533 ValueInfo VI; in parseOptionalRefs()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp239 unsigned getValueId(ValueInfo VI) { in getValueId()
3994 std::function<unsigned(const ValueInfo &VI)> GetValueID, in writeFunctionHeapProfileRecords()
4055 Stream, FS, [&](const ValueInfo &VI) -> std::optional<unsigned> { in writePerModuleFunctionSummaryRecord()
4062 /*GetValueId*/ [&](const ValueInfo &VI) { return getValueId(VI); }, in writePerModuleFunctionSummaryRecord()
4281 ValueInfo VI = Index->getValueInfo(F.getGUID()); in writePerModuleGlobalValueSummary()
4453 for (const ValueInfo &VI : S->refs()) in writeCombinedGlobalValueSummary()
4494 auto GetValueId = [&](const ValueInfo &VI) -> std::optional<unsigned> { in writeCombinedGlobalValueSummary()
4507 /*GetValueId*/ [&](const ValueInfo &VI) -> unsigned { in writeCombinedGlobalValueSummary()

12