Home
last modified time | relevance | path

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

/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);
DInstrProf.h236 Error readPGOFuncNameStrings(StringRef NameStrings, InstrProfSymtab &Symtab);
/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()
DInstrProf.cpp296 Error readPGOFuncNameStrings(StringRef NameStrings, InstrProfSymtab &Symtab) { in readPGOFuncNameStrings() argument
327 Symtab.addFuncName(Name); in readPGOFuncNameStrings()
332 Symtab.finalizeSymtab(); in readPGOFuncNameStrings()
/external/llvm/lib/Transforms/Instrumentation/
DIndirectCallPromotion.cpp138 InstrProfSymtab *Symtab; member in __anonab59e0a70211::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/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()
DELFDumper.cpp2429 const Elf_Shdr *Symtab = unwrapOrError(Obj->getSection(Sec.sh_link)); in printGroupSections() local
2430 StringRef StrTable = unwrapOrError(Obj->getStringTableForSymtab(*Symtab)); in printGroupSections()
2432 Obj->template getEntry<Elf_Sym>(Symtab, Sec.sh_info); in printGroupSections()
3215 const Elf_Shdr *Symtab = unwrapOrError(Obj->getSection(Sec.sh_link)); in printGroupSections() local
3216 StringRef StrTable = unwrapOrError(Obj->getStringTableForSymtab(*Symtab)); in printGroupSections()
3217 const Elf_Sym *Sym = Obj->template getEntry<Elf_Sym>(Symtab, Sec.sh_info); in printGroupSections()
3375 const Elf_Shdr *Symtab = this->dumper()->getDotSymtabSec(); in printSections() local
3376 StringRef StrTable = unwrapOrError(Obj->getStringTableForSymtab(*Symtab)); in printSections()
3378 for (const Elf_Sym &Sym : Obj->symbols(Symtab)) { in printSections()
3380 Obj->getSection(&Sym, Symtab, this->dumper()->getShndxTable())); in printSections()
[all …]
/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/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/google-breakpad/src/common/mac/
Dmacho_reader_unittest.cc1761 class Symtab: public ReaderFixture, public Test { }; class
1763 TEST_F(Symtab, Symtab32) { in TEST_F() argument
1800 TEST_F(Symtab, Symtab64) { in TEST_F() argument
1837 TEST_F(Symtab, SymtabMisplacedSymbols) { in TEST_F() argument
1868 TEST_F(Symtab, SymtabMisplacedStrings) { in TEST_F() argument
/external/llvm/tools/llvm-objdump/
DMachODump.cpp381 MachO::symtab_command Symtab = O->getSymtabLoadCommand(); in PrintIndirectSymbolTable() local
382 if (indirect_symbol < Symtab.nsyms) { in PrintIndirectSymbolTable()
2288 MachO::symtab_command Symtab = info->O->getSymtabLoadCommand(); in GuessIndirectSymbol() local
2313 if (indirect_symbol < Symtab.nsyms) { in GuessIndirectSymbol()
2353 if (indirect_symbol < Symtab.nsyms) { in GuessIndirectSymbol()
8919 MachO::symtab_command Symtab = Obj->getSymtabLoadCommand(); in PrintLoadCommands() local
8920 PrintSymtabLoadCommand(Symtab, Obj->is64Bit(), Buf.size()); in PrintLoadCommands()
8923 MachO::symtab_command Symtab = Obj->getSymtabLoadCommand(); in PrintLoadCommands() local
8924 PrintDysymtabLoadCommand(Dysymtab, Symtab.nsyms, Buf.size(), in PrintLoadCommands()
/external/bison/
DChangeLog-201211135 * doc/bison.texinfo (Mfcalc Symtab): Correct the prototype for