Home
last modified time | relevance | path

Searched refs:FunctionMap (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/CGData/
H A DStableFunctionMapRecord.h28 std::unique_ptr<StableFunctionMap> FunctionMap; member
31 FunctionMap = std::make_unique<StableFunctionMap>(); in StableFunctionMapRecord()
34 StableFunctionMapRecord(std::unique_ptr<StableFunctionMap> FunctionMap) in StableFunctionMapRecord()
35 : FunctionMap(std::move(FunctionMap)) {} in StableFunctionMapRecord()
40 const StableFunctionMap *FunctionMap,
58 void finalize(bool SkipTrim = false) { FunctionMap->finalize(SkipTrim); }
62 FunctionMap->merge(*Other.FunctionMap); in merge()
66 bool empty() const { return FunctionMap->empty(); } in empty()
H A DCodeGenData.h163 publishStableFunctionMap(std::unique_ptr<StableFunctionMap> FunctionMap) { in publishStableFunctionMap() argument
164 PublishedStableFunctionMap = std::move(FunctionMap); in publishStableFunctionMap()
196 publishStableFunctionMap(std::unique_ptr<StableFunctionMap> FunctionMap) { in publishStableFunctionMap() argument
197 CodeGenData::getInstance().publishStableFunctionMap(std::move(FunctionMap)); in publishStableFunctionMap()
H A DCodeGenDataReader.h48 return std::move(FunctionMapRecord.FunctionMap); in releaseStableFunctionMap()
/freebsd/contrib/llvm-project/llvm/lib/CGData/
H A DStableFunctionMapRecord.cpp82 serialize(OS, FunctionMap.get(), PatchItems); in serialize()
86 raw_ostream &OS, const StableFunctionMap *FunctionMap, in serialize() argument
91 ArrayRef<std::string> Names = FunctionMap->getNames(); in serialize()
108 auto FuncEntries = getStableFunctionEntries(*FunctionMap); in serialize()
146 FunctionMap->getIdOrCreateForName(Name); in deserialize()
165 assert(FunctionMap->getNameForId(FunctionNameId) && in deserialize()
169 assert(FunctionMap->getNameForId(ModuleNameId) && in deserialize()
195 FunctionMap->insert(std::move(FuncEntry)); in deserialize()
200 auto FuncEntries = getStableFunctionEntries(*FunctionMap); in serializeYAML()
205 FuncEntry->Hash, *FunctionMap->getNameForId(FuncEntry->FunctionNameId), in serializeYAML()
[all …]
H A DCodeGenDataWriter.cpp73 assert(Record.FunctionMap && "empty function map in the record"); in addRecord()
74 FunctionMapRecord.FunctionMap = std::move(Record.FunctionMap); in addRecord()
H A DCodeGenData.cpp285 std::move(GlobalStableFunctionMapRecord.FunctionMap)); in mergeCodeGenData()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCallGraph.cpp40 : M(Arg.M), FunctionMap(std::move(Arg.FunctionMap)), in CallGraph()
43 Arg.FunctionMap.clear(); in CallGraph()
48 for (auto &P : FunctionMap) in CallGraph()
60 for (auto &I : FunctionMap) in ~CallGraph()
118 Nodes.reserve(FunctionMap.size()); in print()
149 FunctionMap.erase(F); // Remove the call graph node from the map in removeFunctionFromModule()
159 auto &CGN = FunctionMap[F]; in getOrInsertFunction()
H A DStackSafetyAnalysis.cpp587 using FunctionMap = std::map<const CalleeTy *, FunctionInfo<CalleeTy>>; typedef in __anonc3460ea90211::StackSafetyDataFlowAnalysis
589 FunctionMap Functions;
611 StackSafetyDataFlowAnalysis(uint32_t PointerBitWidth, FunctionMap Functions) in StackSafetyDataFlowAnalysis()
615 const FunctionMap &run();
716 const typename StackSafetyDataFlowAnalysis<CalleeTy>::FunctionMap &
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCallGraph.h79 FunctionMapTy FunctionMap; variable
106 inline iterator begin() { return FunctionMap.begin(); } in begin()
107 inline iterator end() { return FunctionMap.end(); } in end()
108 inline const_iterator begin() const { return FunctionMap.begin(); } in begin()
109 inline const_iterator end() const { return FunctionMap.end(); } in end()
113 const_iterator I = FunctionMap.find(F);
114 assert(I != FunctionMap.end() && "Function not in callgraph!");
120 const_iterator I = FunctionMap.find(F);
121 assert(I != FunctionMap.end() && "Function not in callgraph!");
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DCallGraph.h50 FunctionMapTy FunctionMap; variable
87 iterator begin() { return FunctionMap.begin(); } in begin()
88 iterator end() { return FunctionMap.end(); } in end()
89 const_iterator begin() const { return FunctionMap.begin(); } in begin()
90 const_iterator end() const { return FunctionMap.end(); } in end()
93 unsigned size() const { return FunctionMap.size(); } in size()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCallGraph.cpp200 FunctionMapTy::const_iterator I = FunctionMap.find(F); in getNode()
201 if (I == FunctionMap.end()) return nullptr; in getNode()
209 std::unique_ptr<CallGraphNode> &Node = FunctionMap[F]; in getOrInsertNode()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DGlobalMergeFunctions.h76 bool merge(Module &M, const StableFunctionMap *FunctionMap);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DGlobalMergeFunctions.cpp389 bool GlobalMergeFunc::merge(Module &M, const StableFunctionMap *FunctionMap) { in merge() argument
395 auto &Maps = FunctionMap->getFunctionMap(); in merge()
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A Dllvm-objdump.cpp1526 const BBAddrMapFunctionEntry *FunctionMap = in collectBBAddrMapLabels() local
1528 if (!FunctionMap) in collectBBAddrMapLabels()
1531 FunctionMap->getAddrMap().getBBRangeIndexForBaseAddress(StartAddress); in collectBBAddrMapLabels()
1537 FunctionMap->getAddrMap().BBRanges[I].BBEntries.size(); in collectBBAddrMapLabels()
1538 const auto &BBRange = FunctionMap->getAddrMap().BBRanges[*BBRangeIndex]; in collectBBAddrMapLabels()
1547 {LabelString, FunctionMap->constructPGOLabelString( in collectBBAddrMapLabels()