Home
last modified time | relevance | path

Searched refs:Symb (Results 1 – 25 of 33) sorted by relevance

12

/external/llvm/include/llvm/Object/
DCOFFImportFile.h36 void moveSymbolNext(DataRefImpl &Symb) const override { ++Symb.p; } in moveSymbolNext() argument
39 DataRefImpl Symb) const override { in printSymbolName() argument
40 if (Symb.p == 0) in printSymbolName()
46 uint32_t getSymbolFlags(DataRefImpl Symb) const override { in getSymbolFlags() argument
55 DataRefImpl Symb; in symbol_end_impl() local
56 Symb.p = isCode() ? 2 : 1; in symbol_end_impl()
57 return BasicSymbolRef(Symb, this); in symbol_end_impl()
DIRObjectFile.h36 void moveSymbolNext(DataRefImpl &Symb) const override;
38 DataRefImpl Symb) const override;
39 uint32_t getSymbolFlags(DataRefImpl Symb) const override;
40 GlobalValue *getSymbolGV(DataRefImpl Symb);
41 const GlobalValue *getSymbolGV(DataRefImpl Symb) const { in getSymbolGV() argument
42 return const_cast<IRObjectFile *>(this)->getSymbolGV(Symb); in getSymbolGV()
DELFObjectFile.h56 virtual uint64_t getSymbolSize(DataRefImpl Symb) const = 0;
57 virtual uint8_t getSymbolOther(DataRefImpl Symb) const = 0;
58 virtual uint8_t getSymbolELFType(DataRefImpl Symb) const = 0;
208 void moveSymbolNext(DataRefImpl &Symb) const override;
209 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
210 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
211 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override;
212 uint32_t getSymbolAlignment(DataRefImpl Symb) const override;
213 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
214 uint32_t getSymbolFlags(DataRefImpl Symb) const override;
[all …]
DObjectFile.h198 virtual Expected<StringRef> getSymbolName(DataRefImpl Symb) const = 0;
200 DataRefImpl Symb) const override;
201 virtual Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const = 0;
202 virtual uint64_t getSymbolValueImpl(DataRefImpl Symb) const = 0;
203 virtual uint32_t getSymbolAlignment(DataRefImpl Symb) const;
204 virtual uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const = 0;
205 virtual Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const = 0;
207 getSymbolSection(DataRefImpl Symb) const = 0;
239 uint64_t getSymbolValue(DataRefImpl Symb) const;
242 uint64_t getCommonSymbolSize(DataRefImpl Symb) const { in getCommonSymbolSize() argument
[all …]
DMachO.h199 void moveSymbolNext(DataRefImpl &Symb) const override;
202 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
205 std::error_code getIndirectName(DataRefImpl Symb, StringRef &Res) const;
208 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
209 uint32_t getSymbolAlignment(DataRefImpl Symb) const override;
210 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
211 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
212 uint32_t getSymbolFlags(DataRefImpl Symb) const override;
213 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
214 unsigned getSymbolSectionID(SymbolRef Symb) const;
[all …]
DModuleSummaryIndexObjectFile.h41 void moveSymbolNext(DataRefImpl &Symb) const override { in moveSymbolNext() argument
45 DataRefImpl Symb) const override { in printSymbolName() argument
49 uint32_t getSymbolFlags(DataRefImpl Symb) const override { in getSymbolFlags() argument
DCOFF.h648 const coff_symbol_type *toSymb(DataRefImpl Symb) const;
722 void moveSymbolNext(DataRefImpl &Symb) const override;
723 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
724 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
725 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override;
726 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
727 uint32_t getSymbolFlags(DataRefImpl Symb) const override;
728 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
729 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
817 const coff_symbol16 *Symb = nullptr; in getSymbol() local
[all …]
DSymbolicFile.h133 virtual void moveSymbolNext(DataRefImpl &Symb) const = 0;
136 DataRefImpl Symb) const = 0;
138 virtual uint32_t getSymbolFlags(DataRefImpl Symb) const = 0;
/external/llvm/lib/Object/
DIRObjectFile.cpp128 static GlobalValue *getGV(DataRefImpl &Symb) { in getGV() argument
129 if ((Symb.p & 3) == 3) in getGV()
132 return reinterpret_cast<GlobalValue*>(Symb.p & ~uintptr_t(3)); in getGV()
156 static unsigned getAsmSymIndex(DataRefImpl Symb) { in getAsmSymIndex() argument
157 assert((Symb.p & uintptr_t(3)) == 3); in getAsmSymIndex()
158 uintptr_t Index = Symb.p & ~uintptr_t(3); in getAsmSymIndex()
163 void IRObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext()
164 const GlobalValue *GV = getGV(Symb); in moveSymbolNext()
167 switch (Symb.p & 3) { in moveSymbolNext()
187 unsigned Index = getAsmSymIndex(Symb); in moveSymbolNext()
[all …]
DCOFFObjectFile.cpp135 const coff_symbol16 *Symb = toSymb<coff_symbol16>(Ref); in moveSymbolNext() local
136 Symb += 1 + Symb->NumberOfAuxSymbols; in moveSymbolNext()
137 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
139 const coff_symbol32 *Symb = toSymb<coff_symbol32>(Ref); in moveSymbolNext() local
140 Symb += 1 + Symb->NumberOfAuxSymbols; in moveSymbolNext()
141 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
148 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolName() local
150 std::error_code EC = getSymbolName(Symb, Result); in getSymbolName()
162 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolAddress() local
163 int32_t SectionNumber = Symb.getSectionNumber(); in getSymbolAddress()
[all …]
DObjectFile.cpp51 DataRefImpl Symb) const { in printSymbolName()
52 Expected<StringRef> Name = getSymbolName(Symb); in printSymbolName()
DMachOObjectFile.cpp442 void MachOObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext()
446 Symb.p += SymbolTableEntrySize; in moveSymbolNext()
449 Expected<StringRef> MachOObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
451 MachO::nlist_base Entry = getSymbolTableEntryBase(this, Symb); in getSymbolName()
455 " for symbol at index " + Twine(getSymbolIndex(Symb))); in getSymbolName()
477 std::error_code MachOObjectFile::getIndirectName(DataRefImpl Symb, in getIndirectName() argument
480 MachO::nlist_base Entry = getSymbolTableEntryBase(this, Symb); in getIndirectName()
483 uint64_t NValue = getNValue(Symb); in getIndirectName()
513 MachOObjectFile::getSymbolType(DataRefImpl Symb) const { in getSymbolType()
514 MachO::nlist_base Entry = getSymbolTableEntryBase(this, Symb); in getSymbolType()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DCOFFImportFile.h38 void moveSymbolNext(DataRefImpl &Symb) const override { ++Symb.p; } in moveSymbolNext() argument
41 DataRefImpl Symb) const override { in printSymbolName() argument
42 if (Symb.p == 0) in printSymbolName()
48 uint32_t getSymbolFlags(DataRefImpl Symb) const override { in getSymbolFlags() argument
57 DataRefImpl Symb; in symbol_end() local
58 Symb.p = isData() ? 1 : 2; in symbol_end()
59 return BasicSymbolRef(Symb, this); in symbol_end()
DELFObjectFile.h56 virtual uint64_t getSymbolSize(DataRefImpl Symb) const = 0;
57 virtual uint8_t getSymbolOther(DataRefImpl Symb) const = 0;
58 virtual uint8_t getSymbolELFType(DataRefImpl Symb) const = 0;
233 void moveSymbolNext(DataRefImpl &Symb) const override;
234 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
235 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
236 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override;
237 uint32_t getSymbolAlignment(DataRefImpl Symb) const override;
238 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
239 uint32_t getSymbolFlags(DataRefImpl Symb) const override;
[all …]
DWasm.h119 const WasmSymbol &getWasmSymbol(const DataRefImpl &Symb) const;
144 void moveSymbolNext(DataRefImpl &Symb) const override;
146 uint32_t getSymbolFlags(DataRefImpl Symb) const override;
151 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
153 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
155 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override;
156 uint32_t getSymbolAlignment(DataRefImpl Symb) const override;
157 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
158 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
159 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
DObjectFile.h210 virtual Expected<StringRef> getSymbolName(DataRefImpl Symb) const = 0;
212 DataRefImpl Symb) const override;
213 virtual Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const = 0;
214 virtual uint64_t getSymbolValueImpl(DataRefImpl Symb) const = 0;
215 virtual uint32_t getSymbolAlignment(DataRefImpl Symb) const;
216 virtual uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const = 0;
217 virtual Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const = 0;
219 getSymbolSection(DataRefImpl Symb) const = 0;
254 uint64_t getSymbolValue(DataRefImpl Symb) const;
260 uint64_t getCommonSymbolSize(DataRefImpl Symb) const { in getCommonSymbolSize() argument
[all …]
DIRObjectFile.h40 void moveSymbolNext(DataRefImpl &Symb) const override;
42 DataRefImpl Symb) const override;
43 uint32_t getSymbolFlags(DataRefImpl Symb) const override;
DMachO.h278 void moveSymbolNext(DataRefImpl &Symb) const override;
281 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
286 std::error_code getIndirectName(DataRefImpl Symb, StringRef &Res) const;
289 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
290 uint32_t getSymbolAlignment(DataRefImpl Symb) const override;
291 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
292 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
293 uint32_t getSymbolFlags(DataRefImpl Symb) const override;
294 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
295 unsigned getSymbolSectionID(SymbolRef Symb) const;
[all …]
DCOFF.h789 const coff_symbol_type *toSymb(DataRefImpl Symb) const;
888 void moveSymbolNext(DataRefImpl &Symb) const override;
889 Expected<StringRef> getSymbolName(DataRefImpl Symb) const override;
890 Expected<uint64_t> getSymbolAddress(DataRefImpl Symb) const override;
891 uint32_t getSymbolAlignment(DataRefImpl Symb) const override;
892 uint64_t getSymbolValueImpl(DataRefImpl Symb) const override;
893 uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override;
894 uint32_t getSymbolFlags(DataRefImpl Symb) const override;
895 Expected<SymbolRef::Type> getSymbolType(DataRefImpl Symb) const override;
896 Expected<section_iterator> getSymbolSection(DataRefImpl Symb) const override;
[all …]
DSymbolicFile.h147 virtual void moveSymbolNext(DataRefImpl &Symb) const = 0;
150 DataRefImpl Symb) const = 0;
152 virtual uint32_t getSymbolFlags(DataRefImpl Symb) const = 0;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DIRObjectFile.cpp38 static ModuleSymbolTable::Symbol getSym(DataRefImpl &Symb) { in getSym() argument
39 return *reinterpret_cast<ModuleSymbolTable::Symbol *>(Symb.p); in getSym()
42 void IRObjectFile::moveSymbolNext(DataRefImpl &Symb) const { in moveSymbolNext()
43 Symb.p += sizeof(ModuleSymbolTable::Symbol); in moveSymbolNext()
47 DataRefImpl Symb) const { in printSymbolName()
48 SymTab.printSymbolName(OS, getSym(Symb)); in printSymbolName()
52 uint32_t IRObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags()
53 return SymTab.getSymbolFlags(getSym(Symb)); in getSymbolFlags()
DCOFFObjectFile.cpp138 const coff_symbol16 *Symb = toSymb<coff_symbol16>(Ref); in moveSymbolNext() local
139 Symb += 1 + Symb->NumberOfAuxSymbols; in moveSymbolNext()
140 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
142 const coff_symbol32 *Symb = toSymb<coff_symbol32>(Ref); in moveSymbolNext() local
143 Symb += 1 + Symb->NumberOfAuxSymbols; in moveSymbolNext()
144 Ref.p = std::min(reinterpret_cast<uintptr_t>(Symb), End); in moveSymbolNext()
151 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolName() local
153 if (std::error_code EC = getSymbolName(Symb, Result)) in getSymbolName()
165 COFFSymbolRef Symb = getCOFFSymbol(Ref); in getSymbolAlignment() local
166 return std::min(uint64_t(32), PowerOf2Ceil(Symb.getValue())); in getSymbolAlignment()
[all …]
DWasmObjectFile.cpp1005 void WasmObjectFile::moveSymbolNext(DataRefImpl &Symb) const { Symb.d.a++; } in moveSymbolNext()
1007 uint32_t WasmObjectFile::getSymbolFlags(DataRefImpl Symb) const { in getSymbolFlags()
1009 const WasmSymbol &Sym = getWasmSymbol(Symb); in getSymbolFlags()
1037 const WasmSymbol &WasmObjectFile::getWasmSymbol(const DataRefImpl &Symb) const { in getWasmSymbol()
1038 return Symbols[Symb.d.a]; in getWasmSymbol()
1041 const WasmSymbol &WasmObjectFile::getWasmSymbol(const SymbolRef &Symb) const { in getWasmSymbol()
1042 return getWasmSymbol(Symb.getRawDataRefImpl()); in getWasmSymbol()
1045 Expected<StringRef> WasmObjectFile::getSymbolName(DataRefImpl Symb) const { in getSymbolName()
1046 return getWasmSymbol(Symb).Info.Name; in getSymbolName()
1049 Expected<uint64_t> WasmObjectFile::getSymbolAddress(DataRefImpl Symb) const { in getSymbolAddress()
[all …]
DObjectFile.cpp61 DataRefImpl Symb) const { in printSymbolName()
62 Expected<StringRef> Name = getSymbolName(Symb); in printSymbolName()
/external/llvm/tools/llvm-nm/
Dllvm-nm.cpp791 COFFSymbolRef Symb = Obj.getCOFFSymbol(*I); in getSymbolNMTypeChar() local
810 if (!COFF::isReservedSectionNumber(Symb.getSectionNumber())) { in getSymbolNMTypeChar()
821 switch (Symb.getSectionNumber()) { in getSymbolNMTypeChar()
835 if (Symb.isSectionDefinition()) in getSymbolNMTypeChar()
843 DataRefImpl Symb = I->getRawDataRefImpl(); in getSymbolNMTypeChar() local
844 uint8_t NType = Obj.is64Bit() ? Obj.getSymbol64TableEntry(Symb).n_type in getSymbolNMTypeChar()
845 : Obj.getSymbolTableEntry(Symb).n_type; in getSymbolNMTypeChar()
856 Expected<section_iterator> SecOrErr = Obj.getSymbolSection(Symb); in getSymbolNMTypeChar()
957 DataRefImpl Symb = Sym.getRawDataRefImpl(); in getNsectInMachO() local
959 MachO::nlist_64 STE = Obj.getSymbol64TableEntry(Symb); in getNsectInMachO()
[all …]

12