Home
last modified time | relevance | path

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

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DIRSymtab.cpp70 SmallVector<char, 0> &Symtab; member
77 Builder(SmallVector<char, 0> &Symtab, StringTableBuilder &StrtabBuilder, in Builder()
79 : Symtab(Symtab), StrtabBuilder(StrtabBuilder), Saver(Alloc) {} in Builder()
100 R.Offset = Symtab.size(); in writeRange()
102 Symtab.insert(Symtab.end(), reinterpret_cast<const char *>(Objs.data()), in writeRange()
311 Symtab.resize(sizeof(storage::Header)); in build()
317 *reinterpret_cast<storage::Header *>(Symtab.data()) = Hdr; in build()
323 Error irsymtab::build(ArrayRef<Module *> Mods, SmallVector<char, 0> &Symtab, in build() argument
326 return Builder(Symtab, StrtabBuilder, Alloc).build(Mods); in build()
350 if (Error E = build(Mods, FC.Symtab, StrtabBuilder, Alloc)) in upgrade()
[all …]
DIRObjectFile.cpp151 F.Symtab = std::move(FCOrErr->Symtab); in readIRSymtab()
DMachOObjectFile.cpp405 MachO::symtab_command Symtab = in checkSymtabCommand() local
407 if (Symtab.cmdsize != sizeof(MachO::symtab_command)) in checkSymtabCommand()
411 if (Symtab.symoff > FileSize) in checkSymtabCommand()
415 uint64_t SymtabSize = Symtab.nsyms; in checkSymtabCommand()
425 BigSize += Symtab.symoff; in checkSymtabCommand()
431 if (Error Err = checkOverlappingElement(Elements, Symtab.symoff, SymtabSize, in checkSymtabCommand()
434 if (Symtab.stroff > FileSize) in checkSymtabCommand()
438 BigSize = Symtab.stroff; in checkSymtabCommand()
439 BigSize += Symtab.strsize; in checkSymtabCommand()
444 if (Error Err = checkOverlappingElement(Elements, Symtab.stroff, in checkSymtabCommand()
[all …]
/external/swiftshader/third_party/llvm-7.0/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()
157 Error build(ArrayRef<Module *> Mods, SmallVector<char, 0> &Symtab,
229 StringRef Symtab, Strtab; variable
239 return R.get(Symtab); in range()
243 return *reinterpret_cast<const storage::Header *>(Symtab.data()); in header()
250 Reader(StringRef Symtab, StringRef Strtab) : Symtab(Symtab), Strtab(Strtab) { in Reader() argument
348 SmallVector<char, 0> Symtab, Strtab; member
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ProfileData/
DInstrProfTest.cpp766 InstrProfSymtab Symtab; in TEST_P() local
767 Symtab.mapAddress(uint64_t(callee1), 0x1000ULL); in TEST_P()
768 Symtab.mapAddress(uint64_t(callee2), 0x2000ULL); in TEST_P()
769 Symtab.mapAddress(uint64_t(callee3), 0x3000ULL); in TEST_P()
770 Symtab.mapAddress(uint64_t(callee4), 0x4000ULL); in TEST_P()
773 VPData->deserializeTo(Record, &Symtab); in TEST_P()
835 InstrProfSymtab Symtab; in TEST_P() local
836 EXPECT_THAT_ERROR(Symtab.create(FuncNames), Succeeded()); in TEST_P()
837 StringRef R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("func1")); in TEST_P()
839 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/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()
DInstrProfWriter.h56 InstrProfSymtab &Symtab, raw_fd_ostream &OS);
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp177 InstrProfSymtab *Symtab; member in __anon408432c90211::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()
387 InstrProfSymtab Symtab; in promoteIndirectCalls() local
388 if (Error E = Symtab.create(M, InLTO)) { in promoteIndirectCalls()
412 ICallPromotionFunc ICallPromotion(F, &M, &Symtab, SamplePGO, *ORE); in promoteIndirectCalls()
DCGProfile.cpp31 InstrProfSymtab Symtab; in run() local
40 (void)(bool)Symtab.create(M); in run()
66 UpdateCounts(TTI, &F, Symtab.getFunction(VD.Value), VD.Count); in run()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/
DInstrProfReader.h94 std::unique_ptr<InstrProfSymtab> Symtab;
167 assert(Symtab.get()); in getSymtab()
168 return *Symtab.get(); in getSymtab()
217 assert(Symtab.get()); in getSymtab()
218 return *Symtab.get(); in getSymtab()
222 Error createSymtab(InstrProfSymtab &Symtab);
266 return Symtab->getFuncName(swap(NameRef)); in getName()
384 Error populateSymtab(InstrProfSymtab &Symtab) override { in populateSymtab() argument
385 return Symtab.create(HashTable->keys()); in populateSymtab()
/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-7.0/llvm/tools/obj2yaml/
Delf2yaml.cpp44 std::error_code dumpSymbols(const Elf_Shdr *Symtab,
122 const Elf_Shdr *Symtab = nullptr; in dump() local
138 Symtab = &Sec; in dump()
194 if (auto EC = dumpSymbols(Symtab, Y->Symbols)) in dump()
204 ELFDumper<ELFT>::dumpSymbols(const Elf_Shdr *Symtab, in dumpSymbols() argument
206 if (!Symtab) in dumpSymbols()
209 auto StrTableOrErr = Obj.getStringTableForSymtab(*Symtab); in dumpSymbols()
214 auto SymtabOrErr = Obj.symbols(Symtab); in dumpSymbols()
226 if (auto EC = dumpSymbol(&Sym, Symtab, StrTable, S)) in dumpSymbols()
452 const Elf_Shdr *Symtab = *SymtabOrErr; in dumpGroup() local
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp138 InstrProfSymtab *Symtab; member in __anonb00367710211::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-7.0/llvm/lib/ProfileData/
DInstrProfReader.cpp139 Symtab.reset(new InstrProfSymtab()); in readHeader()
206 if (Error E = Symtab->addFuncName(VD.first)) in readValueProfileData()
239 if (Error E = Symtab->addFuncName(Record.Name)) in readNextRecord()
325 Error RawInstrProfReader<IntPtrT>::createSymtab(InstrProfSymtab &Symtab) { in createSymtab() argument
326 if (Error E = Symtab.create(StringRef(NamesStart, NamesSize))) in createSymtab()
332 Symtab.mapAddress(FPtr, I->NameRef); in createSymtab()
374 Symtab = std::move(NewSymtab); in readHeader()
441 VDataPtrOrErr.get()->deserializeTo(Record, Symtab.get()); in readValueProfilingData()
694 if (Symtab.get()) in getSymtab()
695 return *Symtab.get(); in getSymtab()
[all …]
DInstrProfWriter.cpp337 InstrProfSymtab &Symtab, in writeRecordInText() argument
365 OS << Symtab.getFuncNameOrExternalSymbol(VD[I].Value) << ":" in writeRecordInText()
379 InstrProfSymtab Symtab; in writeText() local
382 if (Error E = Symtab.addFuncName(I.getKey())) in writeText()
388 writeRecordInText(I.getKey(), Func.first, Func.second, Symtab, OS); in writeText()
/external/llvm/tools/obj2yaml/
Delf2yaml.cpp72 const Elf_Shdr *Symtab = nullptr; in dump() local
83 Symtab = &Sec; in dump()
137 ErrorOr<StringRef> StrTableOrErr = Obj.getStringTableForSymtab(*Symtab); in dump()
143 for (const Elf_Sym &Sym : Obj.symbols(Symtab)) { in dump()
151 ELFDumper<ELFT>::dumpSymbol(&Sym, Symtab, StrTable, S)) in dump()
362 const Elf_Shdr *Symtab = *SymtabOrErr; in dumpGroup() local
363 const Elf_Sym *symbol = Obj.getSymbol(Symtab, Shdr->sh_info); in dumpGroup()
364 ErrorOr<StringRef> StrTabOrErr = Obj.getStringTableForSymtab(*Symtab); in dumpGroup()
/external/llvm/tools/llvm-readobj/
DARMEHABIPrinter.h316 const Elf_Shdr *Symtab; variable
339 const Elf_Shdr *Symtab) in PrinterContext() argument
340 : SW(SW), ELF(ELF), Symtab(Symtab) {} in PrinterContext()
352 ErrorOr<StringRef> StrTableOrErr = ELF->getStringTableForSymtab(*Symtab); in FunctionAtAddress()
356 for (const Elf_Sym &Sym : ELF->symbols(Symtab)) in FunctionAtAddress()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-readobj/
DARMEHABIPrinter.h333 const Elf_Shdr *Symtab; variable
356 const Elf_Shdr *Symtab) in PrinterContext() argument
357 : SW(SW), ELF(ELF), Symtab(Symtab) {} in PrinterContext()
369 auto StrTableOrErr = ELF->getStringTableForSymtab(*Symtab); in FunctionAtAddress()
374 for (const Elf_Sym &Sym : unwrapOrError(ELF->symbols(Symtab))) in FunctionAtAddress()
/external/llvm/lib/Object/
DMachOObjectFile.cpp395 MachO::symtab_command Symtab = in MachOObjectFile() local
399 if (Dysymtab.nlocalsym != 0 && Dysymtab.ilocalsym > Symtab.nsyms) { in MachOObjectFile()
406 if (Dysymtab.nlocalsym != 0 && BigSize > Symtab.nsyms) { in MachOObjectFile()
411 if (Dysymtab.nextdefsym != 0 && Dysymtab.ilocalsym > Symtab.nsyms) { in MachOObjectFile()
418 if (Dysymtab.nextdefsym != 0 && BigSize > Symtab.nsyms) { in MachOObjectFile()
424 if (Dysymtab.nundefsym != 0 && Dysymtab.iundefsym > Symtab.nsyms) { in MachOObjectFile()
431 if (Dysymtab.nundefsym != 0 && BigSize > Symtab.nsyms) { in MachOObjectFile()
1084 MachO::symtab_command Symtab = getSymtabLoadCommand(); in symbol_begin_impl() local
1085 if (!SymtabLoadCmd || Symtab.nsyms == 0) in symbol_begin_impl()
1093 MachO::symtab_command Symtab = getSymtabLoadCommand(); in symbol_end_impl() local
[all …]
/external/boringssl/src/util/
Dread_symbols.go198 if f.Symtab == nil {
202 for _, sym := range f.Symtab.Syms {
/external/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp354 InstrProfSymtab &Symtab = Reader->getSymtab(); in showInstrProfile() local
355 InstrProfWriter::writeRecordInText(Func, Symtab, OS); in showInstrProfile()
389 InstrProfSymtab &Symtab = Reader->getSymtab(); in showInstrProfile() local
402 OS << Symtab.getFuncName(VD[V].Value) << ", " << VD[V].Count in showInstrProfile()
/external/llvm/tools/llvm-ar/
Dllvm-ar.cpp145 static bool Symtab = true; ///< 's' modifier variable
241 Symtab = true; in parseCommandLine()
245 Symtab = false; in parseCommandLine()
655 writeArchive(ArchiveName, NewMembersP ? *NewMembersP : NewMembers, Symtab, in performWriteOperation()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp533 InstrProfSymtab *Symtab) { in traverseAllValueSites() argument
548 if (Symtab == nullptr) in traverseAllValueSites()
551 OS << Symtab->getFuncName(VD[V].Value); in traverseAllValueSites()
611 InstrProfSymtab &Symtab = Reader->getSymtab(); in showInstrProfile() local
612 InstrProfWriter::writeRecordInText(Func.Name, Func.Hash, Func, Symtab, in showInstrProfile()

12