Home
last modified time | relevance | path

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

/external/llvm/unittests/ProfileData/
DInstrProfTest.cpp535 InstrProfSymtab Symtab; in TEST_F() local
536 Symtab.create(FuncNames); in TEST_F()
537 StringRef R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("func1")); in TEST_F()
539 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("func2")); in TEST_F()
541 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("func3")); in TEST_F()
543 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("bar1")); in TEST_F()
545 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("bar2")); in TEST_F()
547 R = Symtab.getFuncName(IndexedInstrProf::ComputeHash("bar3")); in TEST_F()
551 Symtab.addFuncName("blah_1"); in TEST_F()
552 Symtab.addFuncName("blah_2"); in TEST_F()
[all …]
/external/llvm/include/llvm/ProfileData/
DInstrProfReader.h57 InstrProfReader() : LastError(instrprof_error::success), Symtab() {} in InstrProfReader()
81 std::unique_ptr<InstrProfSymtab> Symtab;
139 assert(Symtab.get()); in getSymtab()
140 return *Symtab.get(); in getSymtab()
181 assert(Symtab.get()); in getSymtab()
182 return *Symtab.get(); in getSymtab()
186 void createSymtab(InstrProfSymtab &Symtab);
327 void populateSymtab(InstrProfSymtab &Symtab) override { in populateSymtab() argument
328 Symtab.create(HashTable->keys()); in populateSymtab()
DInstrProfWriter.h48 InstrProfSymtab &Symtab, raw_fd_ostream &OS);
/external/llvm/lib/ProfileData/
DInstrProfReader.cpp113 Symtab.reset(new InstrProfSymtab()); in readHeader()
162 Symtab->addFuncName(VD.first); in readValueProfileData()
187 Symtab->finalizeSymtab(); in readNextRecord()
193 Symtab->addFuncName(Record.Name); in readNextRecord()
228 Symtab->finalizeSymtab(); in readNextRecord()
282 void RawInstrProfReader<IntPtrT>::createSymtab(InstrProfSymtab &Symtab) { in createSymtab() argument
285 Symtab.addFuncName(FunctionName); in createSymtab()
289 Symtab.mapAddress(FPtr, IndexedInstrProf::ComputeHash(FunctionName)); in createSymtab()
291 Symtab.finalizeSymtab(); in createSymtab()
331 Symtab = std::move(NewSymtab); in readHeader()
[all …]
DInstrProfWriter.cpp188 InstrProfSymtab &Symtab, in writeRecordInText() argument
216 OS << Symtab.getFuncName(VD[I].Value) << ":" << VD[I].Count << "\n"; in writeRecordInText()
227 InstrProfSymtab Symtab; in writeText() local
229 Symtab.addFuncName(I.getKey()); in writeText()
230 Symtab.finalizeSymtab(); in writeText()
234 writeRecordInText(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.h315 const Elf_Shdr *Symtab; variable
338 const Elf_Shdr *Symtab) in PrinterContext() argument
339 : SW(SW), ELF(ELF), Symtab(Symtab) {} in PrinterContext()
351 ErrorOr<StringRef> StrTableOrErr = ELF->getStringTableForSymtab(*Symtab); in FunctionAtAddress()
355 for (const Elf_Sym &Sym : ELF->symbols(Symtab)) in FunctionAtAddress()
DELFDumper.cpp1114 const Elf_Shdr *Symtab = DotSymtabSec; in printSections() local
1115 ErrorOr<StringRef> StrTableOrErr = Obj->getStringTableForSymtab(*Symtab); in printSections()
1119 for (const Elf_Sym &Sym : Obj->symbols(Symtab)) { in printSections()
1121 Obj->getSection(&Sym, Symtab, ShndxTable); in printSections()
1125 printSymbol(&Sym, Symtab, StrTable, false); in printSections()
1247 const Elf_Shdr *Symtab = (IsDynamic) ? DotDynSymSec : DotSymtabSec; in printSymbolsHelper() local
1248 if (!Symtab) in printSymbolsHelper()
1250 ErrorOr<StringRef> StrTableOrErr = Obj->getStringTableForSymtab(*Symtab); in printSymbolsHelper()
1253 for (const Elf_Sym &Sym : Obj->symbols(Symtab)) in printSymbolsHelper()
1254 printSymbol(&Sym, Symtab, StrTable, IsDynamic); in printSymbolsHelper()
/external/llvm/tools/llvm-ar/
Dllvm-ar.cpp131 static bool Symtab = true; ///< 's' modifier variable
227 Symtab = true; in parseCommandLine()
231 Symtab = false; in parseCommandLine()
603 ArchiveName, *NewMembersP, Symtab, Kind, Deterministic, Thin); in performWriteOperation()
610 writeArchive(ArchiveName, NewMembers, Symtab, Kind, Deterministic, Thin); in performWriteOperation()
/external/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp270 InstrProfSymtab &Symtab = Reader->getSymtab(); in showInstrProfile() local
271 InstrProfWriter::writeRecordInText(Func, Symtab, OS); in showInstrProfile()
310 InstrProfSymtab &Symtab = Reader->getSymtab(); in showInstrProfile() local
319 OS << Symtab.getFuncName(VD[V].Value) << ", " << VD[V].Count in showInstrProfile()
/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/lib/Object/
DMachOObjectFile.cpp953 MachO::symtab_command Symtab = getSymtabLoadCommand(); in symbol_end_impl() local
957 unsigned Offset = Symtab.symoff + in symbol_end_impl()
958 Symtab.nsyms * SymbolTableEntrySize; in symbol_end_impl()
968 MachO::symtab_command Symtab = getSymtabLoadCommand(); in getSymbolByIndex() local
969 if (Index >= Symtab.nsyms) in getSymbolByIndex()
973 DRI.p = reinterpret_cast<uintptr_t>(getPtr(this, Symtab.symoff)); in getSymbolByIndex()
/external/llvm/tools/llvm-objdump/
DMachODump.cpp345 MachO::symtab_command Symtab = O->getSymtabLoadCommand(); in PrintIndirectSymbolTable() local
346 if (indirect_symbol < Symtab.nsyms) { in PrintIndirectSymbolTable()
2144 MachO::symtab_command Symtab = info->O->getSymtabLoadCommand(); in GuessIndirectSymbol() local
2169 if (indirect_symbol < Symtab.nsyms) { in GuessIndirectSymbol()
2204 if (indirect_symbol < Symtab.nsyms) { in GuessIndirectSymbol()
8554 MachO::symtab_command Symtab = Obj->getSymtabLoadCommand(); in PrintLoadCommands() local
8555 PrintSymtabLoadCommand(Symtab, Obj->is64Bit(), Buf.size()); in PrintLoadCommands()
8558 MachO::symtab_command Symtab = Obj->getSymtabLoadCommand(); in PrintLoadCommands() local
8559 PrintDysymtabLoadCommand(Dysymtab, Symtab.nsyms, Buf.size(), in PrintLoadCommands()
/external/bison/
DChangeLog-201211135 * doc/bison.texinfo (Mfcalc Symtab): Correct the prototype for