Home
last modified time | relevance | path

Searched refs:Symtab (Results 1 – 25 of 110) sorted by relevance

12345

/external/llvm-project/lldb/source/Symbol/
DSymtab.cpp30 Symtab::Symtab(ObjectFile *objfile) in Symtab() function in Symtab
35 Symtab::~Symtab() {} in ~Symtab()
37 void Symtab::Reserve(size_t count) { in Reserve()
43 Symbol *Symtab::Resize(size_t count) { in Resize()
50 uint32_t Symtab::AddSymbol(const Symbol &symbol) { in AddSymbol()
62 size_t Symtab::GetNumSymbols() const { in GetNumSymbols()
67 void Symtab::SectionFileAddressesChanged() { in SectionFileAddressesChanged()
72 void Symtab::Dump(Stream *s, Target *target, SortOrder sort_order, in Dump()
143 void Symtab::Dump(Stream *s, Target *target, std::vector<uint32_t> &indexes, in Dump()
169 void Symtab::DumpSymbolHeader(Stream *s) { in DumpSymbolHeader()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DIRSymtab.cpp69 SmallVector<char, 0> &Symtab; member
76 Builder(SmallVector<char, 0> &Symtab, StringTableBuilder &StrtabBuilder, in Builder()
78 : Symtab(Symtab), StrtabBuilder(StrtabBuilder), Saver(Alloc) {} in Builder()
101 R.Offset = Symtab.size(); in writeRange()
103 Symtab.insert(Symtab.end(), reinterpret_cast<const char *>(Objs.data()), in writeRange()
326 Symtab.resize(sizeof(storage::Header)); in build()
332 *reinterpret_cast<storage::Header *>(Symtab.data()) = Hdr; in build()
338 Error irsymtab::build(ArrayRef<Module *> Mods, SmallVector<char, 0> &Symtab, in build() argument
341 return Builder(Symtab, StrtabBuilder, Alloc).build(Mods); in build()
365 if (Error E = build(Mods, FC.Symtab, StrtabBuilder, Alloc)) in upgrade()
[all …]
/external/llvm-project/llvm/lib/Object/
DIRSymtab.cpp69 SmallVector<char, 0> &Symtab; member
76 Builder(SmallVector<char, 0> &Symtab, StringTableBuilder &StrtabBuilder, in Builder()
78 : Symtab(Symtab), StrtabBuilder(StrtabBuilder), Saver(Alloc) {} in Builder()
101 R.Offset = Symtab.size(); in writeRange()
103 Symtab.insert(Symtab.end(), reinterpret_cast<const char *>(Objs.data()), in writeRange()
330 Symtab.resize(sizeof(storage::Header)); in build()
336 *reinterpret_cast<storage::Header *>(Symtab.data()) = Hdr; in build()
342 Error irsymtab::build(ArrayRef<Module *> Mods, SmallVector<char, 0> &Symtab, in build() argument
345 return Builder(Symtab, StrtabBuilder, Alloc).build(Mods); in build()
369 if (Error E = build(Mods, FC.Symtab, StrtabBuilder, Alloc)) in upgrade()
[all …]
/external/llvm-project/llvm/include/llvm/Object/
DIRSymtab.h66 ArrayRef<T> get(StringRef Symtab) const { in get()
67 return {reinterpret_cast<const T *>(Symtab.data() + Offset), Size}; in get()
161 Error build(ArrayRef<Module *> Mods, SmallVector<char, 0> &Symtab,
233 StringRef Symtab, Strtab; variable
244 return R.get(Symtab); in range()
248 return *reinterpret_cast<const storage::Header *>(Symtab.data()); in header()
255 Reader(StringRef Symtab, StringRef Strtab) : Symtab(Symtab), Strtab(Strtab) { in Reader() argument
364 SmallVector<char, 0> Symtab, Strtab; member
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DIRSymtab.h65 ArrayRef<T> get(StringRef Symtab) const { in get()
66 return {reinterpret_cast<const T *>(Symtab.data() + Offset), Size}; in get()
160 Error build(ArrayRef<Module *> Mods, SmallVector<char, 0> &Symtab,
232 StringRef Symtab, Strtab; variable
243 return R.get(Symtab); in range()
247 return *reinterpret_cast<const storage::Header *>(Symtab.data()); in header()
254 Reader(StringRef Symtab, StringRef Strtab) : Symtab(Symtab), Strtab(Strtab) { in Reader() argument
363 SmallVector<char, 0> Symtab, Strtab; member
/external/llvm-project/lldb/include/lldb/Symbol/
DSymtab.h21 class Symtab {
34 Symtab(ObjectFile *objfile);
35 ~Symtab();
148 FileRangeToIndexMapCompare(const Symtab &symtab) : m_symtab(symtab) {} in FileRangeToIndexMapCompare()
165 const Symtab &m_symtab;
227 Symtab(const Symtab &) = delete;
228 const Symtab &operator=(const Symtab &) = delete;
/external/llvm-project/llvm/unittests/ProfileData/
DInstrProfTest.cpp767 InstrProfSymtab Symtab; in TEST_P() local
768 Symtab.mapAddress(uint64_t(callee1), 0x1000ULL); in TEST_P()
769 Symtab.mapAddress(uint64_t(callee2), 0x2000ULL); in TEST_P()
770 Symtab.mapAddress(uint64_t(callee3), 0x3000ULL); in TEST_P()
771 Symtab.mapAddress(uint64_t(callee4), 0x4000ULL); in TEST_P()
774 VPData->deserializeTo(Record, &Symtab); in TEST_P()
836 InstrProfSymtab Symtab; in TEST_P() local
837 EXPECT_THAT_ERROR(Symtab.create(FuncNames), Succeeded()); in TEST_P()
838 StringRef R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("func1")); in TEST_P()
840 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("func2")); in TEST_P()
[all …]
/external/llvm/unittests/ProfileData/
DInstrProfTest.cpp765 InstrProfSymtab Symtab; in TEST_P() local
766 Symtab.mapAddress(uint64_t(callee1), 0x1000ULL); in TEST_P()
767 Symtab.mapAddress(uint64_t(callee2), 0x2000ULL); in TEST_P()
768 Symtab.mapAddress(uint64_t(callee3), 0x3000ULL); in TEST_P()
769 Symtab.mapAddress(uint64_t(callee4), 0x4000ULL); in TEST_P()
771 Symtab.finalizeSymtab(); in TEST_P()
773 VPData->deserializeTo(Record, &Symtab.getAddrHashMap()); in TEST_P()
838 InstrProfSymtab Symtab; in TEST_P() local
839 Symtab.create(FuncNames); in TEST_P()
840 StringRef R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("func1")); in TEST_P()
[all …]
/external/llvm-project/lldb/source/Plugins/SymbolFile/Symtab/
DSymbolFileSymtab.cpp65 const Symtab *symtab = m_objfile_sp->GetSymtab(); in CalculateAbilities()
76 eSymbolTypeCode, Symtab::eDebugYes, Symtab::eVisibilityAny, in CalculateAbilities()
82 if (symtab->AppendSymbolIndexesWithType(eSymbolTypeCode, Symtab::eDebugNo, in CalculateAbilities()
83 Symtab::eVisibilityAny, in CalculateAbilities()
95 lldb_private::Symtab::IndexCollection objc_class_indexes; in CalculateAbilities()
142 const Symtab *symtab = m_objfile_sp->GetSymtab(); in ParseFunctions()
DSymbolFileSymtab.h99 lldb_private::Symtab::IndexCollection m_source_indexes;
100 lldb_private::Symtab::IndexCollection m_func_indexes;
101 lldb_private::Symtab::IndexCollection m_code_indexes;
102 lldb_private::Symtab::IndexCollection m_data_indexes;
103 lldb_private::Symtab::NameToIndexMap m_objc_class_name_to_index;
/external/llvm/include/llvm/ProfileData/
DInstrProfReader.h56 InstrProfReader() : LastError(instrprof_error::success), Symtab() {} in InstrProfReader()
81 std::unique_ptr<InstrProfSymtab> Symtab;
150 assert(Symtab.get()); in getSymtab()
151 return *Symtab.get(); in getSymtab()
201 assert(Symtab.get()); in getSymtab()
202 return *Symtab.get(); in getSymtab()
206 Error createSymtab(InstrProfSymtab &Symtab);
244 return Symtab->getFuncName(swap(NameRef)); in getName()
354 void populateSymtab(InstrProfSymtab &Symtab) override { in populateSymtab() argument
355 Symtab.create(HashTable->keys()); in populateSymtab()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp176 InstrProfSymtab *Symtab; member in __anon1f8e2efd0211::ICallPromotionFunc
206 ICallPromotionFunc(Function &Func, Module *Modu, InstrProfSymtab *Symtab, in ICallPromotionFunc() argument
208 : F(Func), M(Modu), Symtab(Symtab), SamplePGO(SamplePGO), ORE(ORE) {} in ICallPromotionFunc()
273 Function *TargetFunction = Symtab->getFunction(Target); in getPromotionCandidatesForCallSite()
393 InstrProfSymtab Symtab; in promoteIndirectCalls() local
394 if (Error E = Symtab.create(M, InLTO)) { in promoteIndirectCalls()
416 ICallPromotionFunc ICallPromotion(F, &M, &Symtab, SamplePGO, *ORE); in promoteIndirectCalls()
DCGProfile.cpp53 InstrProfSymtab Symtab; in runCGProfilePass() local
63 (void)(bool) Symtab.create(M); in runCGProfilePass()
92 UpdateCounts(TTI, &F, Symtab.getFunction(VD.Value), VD.Count); in runCGProfilePass()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp177 InstrProfSymtab *Symtab; member in __anon67a59a710211::ICallPromotionFunc
207 ICallPromotionFunc(Function &Func, Module *Modu, InstrProfSymtab *Symtab, in ICallPromotionFunc() argument
209 : F(Func), M(Modu), Symtab(Symtab), SamplePGO(SamplePGO), ORE(ORE) {} in ICallPromotionFunc()
267 Function *TargetFunction = Symtab->getFunction(Target); in getPromotionCandidatesForCallSite()
388 InstrProfSymtab Symtab; in promoteIndirectCalls() local
389 if (Error E = Symtab.create(M, InLTO)) { in promoteIndirectCalls()
411 ICallPromotionFunc ICallPromotion(F, &M, &Symtab, SamplePGO, *ORE); in promoteIndirectCalls()
DCGProfile.cpp30 InstrProfSymtab Symtab; in run() local
39 (void)(bool)Symtab.create(M); in run()
65 UpdateCounts(TTI, &F, Symtab.getFunction(VD.Value), VD.Count); in run()
/external/llvm/lib/ProfileData/
DInstrProfReader.cpp119 Symtab.reset(new InstrProfSymtab()); in readHeader()
183 Symtab->addFuncName(VD.first); in readValueProfileData()
208 Symtab->finalizeSymtab(); in readNextRecord()
214 Symtab->addFuncName(Record.Name); in readNextRecord()
249 Symtab->finalizeSymtab(); in readNextRecord()
302 Error RawInstrProfReader<IntPtrT>::createSymtab(InstrProfSymtab &Symtab) { in createSymtab() argument
303 if (Error E = Symtab.create(StringRef(NamesStart, NamesSize))) in createSymtab()
309 Symtab.mapAddress(FPtr, I->NameRef); in createSymtab()
311 Symtab.finalizeSymtab(); in createSymtab()
352 Symtab = std::move(NewSymtab); in readHeader()
[all …]
DInstrProfWriter.cpp298 InstrProfSymtab &Symtab, in writeRecordInText() argument
326 OS << Symtab.getFuncName(VD[I].Value) << ":" << VD[I].Count << "\n"; in writeRecordInText()
339 InstrProfSymtab Symtab; in writeText() local
342 Symtab.addFuncName(I.getKey()); in writeText()
343 Symtab.finalizeSymtab(); in writeText()
348 writeRecordInText(Func.second, Symtab, OS); in writeText()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/
DInstrProfReader.h98 std::unique_ptr<InstrProfSymtab> Symtab;
174 assert(Symtab.get()); in getSymtab()
175 return *Symtab.get(); in getSymtab()
228 assert(Symtab.get()); in getSymtab()
229 return *Symtab.get(); in getSymtab()
233 Error createSymtab(InstrProfSymtab &Symtab);
283 return Symtab->getFuncName(swap(NameRef)); in getName()
411 Error populateSymtab(InstrProfSymtab &Symtab) override { in populateSymtab() argument
412 return Symtab.create(HashTable->keys()); in populateSymtab()
/external/llvm-project/llvm/include/llvm/ProfileData/
DInstrProfReader.h100 std::unique_ptr<InstrProfSymtab> Symtab;
179 assert(Symtab.get()); in getSymtab()
180 return *Symtab.get(); in getSymtab()
237 assert(Symtab.get()); in getSymtab()
238 return *Symtab.get(); in getSymtab()
242 Error createSymtab(InstrProfSymtab &Symtab);
292 return Symtab->getFuncName(swap(NameRef)); in getName()
425 Error populateSymtab(InstrProfSymtab &Symtab) override { in populateSymtab() argument
426 return Symtab.create(HashTable->keys()); in populateSymtab()
/external/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
DObjectFileELF.h113 lldb_private::Symtab *GetSymtab() override;
283 unsigned ParseSymbolTable(lldb_private::Symtab *symbol_table,
288 unsigned ParseSymbols(lldb_private::Symtab *symbol_table,
298 unsigned ParseTrampolineSymbols(lldb_private::Symtab *symbol_table,
303 void ParseUnwindSymbols(lldb_private::Symtab *symbol_table,
309 lldb_private::Symtab *thetab);
311 unsigned ApplyRelocations(lldb_private::Symtab *symtab,
/external/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp138 InstrProfSymtab *Symtab; member in __anond2fdb38f0211::ICallPromotionFunc
208 ICallPromotionFunc(Function &Func, Module *Modu, InstrProfSymtab *Symtab) in ICallPromotionFunc() argument
209 : F(Func), M(Modu), Symtab(Symtab) { in ICallPromotionFunc()
218 Function *DirectCallee = Symtab->getFunction(Target); in isPromotionLegal()
249 << Symtab->getFuncName(Target) << "\n"); in isPromotionLegal()
293 StringRef TargetFuncName = Symtab->getFuncName(Target); in getPromotionCandidatesForCallSite()
628 InstrProfSymtab Symtab; in promoteIndirectCalls() local
629 Symtab.create(M, InLTO); in promoteIndirectCalls()
636 ICallPromotionFunc ICallPromotion(F, &M, &Symtab); in promoteIndirectCalls()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/
DInstrProfReader.cpp154 Symtab.reset(new InstrProfSymtab()); in readHeader()
224 if (Error E = Symtab->addFuncName(VD.first)) in readValueProfileData()
257 if (Error E = Symtab->addFuncName(Record.Name)) in readNextRecord()
343 Error RawInstrProfReader<IntPtrT>::createSymtab(InstrProfSymtab &Symtab) { in createSymtab() argument
344 if (Error E = Symtab.create(StringRef(NamesStart, NamesSize))) in createSymtab()
350 Symtab.mapAddress(FPtr, I->NameRef); in createSymtab()
396 Symtab = std::move(NewSymtab); in readHeader()
469 VDataPtrOrErr.get()->deserializeTo(Record, Symtab.get()); in readValueProfilingData()
859 if (Symtab.get()) in getSymtab()
860 return *Symtab.get(); in getSymtab()
[all …]
/external/llvm-project/llvm/lib/ProfileData/
DInstrProfReader.cpp155 Symtab.reset(new InstrProfSymtab()); in readHeader()
231 if (Error E = Symtab->addFuncName(VD.first)) in readValueProfileData()
264 if (Error E = Symtab->addFuncName(Record.Name)) in readNextRecord()
350 Error RawInstrProfReader<IntPtrT>::createSymtab(InstrProfSymtab &Symtab) { in createSymtab() argument
351 if (Error E = Symtab.create(StringRef(NamesStart, NamesSize))) in createSymtab()
357 Symtab.mapAddress(FPtr, I->NameRef); in createSymtab()
403 Symtab = std::move(NewSymtab); in readHeader()
476 VDataPtrOrErr.get()->deserializeTo(Record, Symtab.get()); in readValueProfilingData()
866 if (Symtab.get()) in getSymtab()
867 return *Symtab.get(); in getSymtab()
[all …]
/external/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
DSymbolFileDWARFDebugMap.cpp74 Symtab *exe_symtab = exe_symfile->GetObjectFile()->GetSymtab(); in GetFileRangeMap()
76 Symtab *oso_symtab = oso_objfile->GetSymtab(); in GetFileRangeMap()
112 eSymbolTypeCode, Symtab::eDebugNo, Symtab::eVisibilityAny); in GetFileRangeMap()
142 eSymbolTypeData, Symtab::eDebugNo, Symtab::eVisibilityAny); in GetFileRangeMap()
287 Symtab *symtab = m_objfile_sp->GetSymtab(); in InitOSO()
306 symtab->AppendSymbolIndexesWithType(eSymbolTypeCode, Symtab::eDebugYes, in InitOSO()
307 Symtab::eVisibilityAny, in InitOSO()
309 symtab->AppendSymbolIndexesWithType(eSymbolTypeData, Symtab::eDebugYes, in InitOSO()
310 Symtab::eVisibilityAny, in InitOSO()
770 Symtab *symtab = m_objfile_sp->GetSymtab(); in ResolveSymbolContext()
[all …]
/external/llvm-project/lldb/source/Core/
DModule.cpp493 Symtab *symtab = symfile->GetSymtab(); in ResolveSymbolContextForAddress()
528 Symtab *symfile_symtab = symfile_objfile->GetSymtab(); in ResolveSymbolContextForAddress()
822 Symtab *symtab = symbols->GetSymtab(); in FindFunctions()
841 Symtab *symtab = symbols->GetSymtab(); in FindFunctions()
860 Symtab *symtab = symbols->GetSymtab(); in FindFunctions()
864 regex, eSymbolTypeAny, Symtab::eDebugAny, Symtab::eVisibilityAny, in FindFunctions()
1054 Symtab *Module::GetSymtab() { in GetSymtab()
1319 if (Symtab *symtab = GetSymtab()) in FindFirstSymbolWithNameAndType()
1321 name, symbol_type, Symtab::eDebugAny, Symtab::eVisibilityAny); in FindFirstSymbolWithNameAndType()
1325 Symtab *symtab, std::vector<uint32_t> &symbol_indexes, in SymbolIndicesToSymbolContextList()
[all …]

12345