| /NextBSD/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| HD | RuntimeDyldMachOI386.h | 38 const MachOObjectFile &Obj = in processRelocationRef() local 41 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef() 42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() 44 if (Obj.isRelocationScattered(RelInfo)) { in processRelocationRef() 47 return processSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef() 50 return processI386ScatteredVANILLA(SectionID, RelI, Obj, in processRelocationRef() 55 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 58 getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)); in processRelocationRef() 115 void finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 121 populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection() [all …]
|
| HD | RuntimeDyldMachOAArch64.h | 250 const MachOObjectFile &Obj = in processRelocationRef() local 253 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef() 255 assert(!Obj.isRelocationScattered(RelInfo) && ""); in processRelocationRef() 262 if (Obj.getAnyRelocationType(RelInfo) == MachO::ARM64_RELOC_ADDEND) { in processRelocationRef() 263 assert(!Obj.getPlainRelocationExternal(RelInfo)); in processRelocationRef() 264 assert(!Obj.getAnyRelocationPCRel(RelInfo)); in processRelocationRef() 265 assert(Obj.getAnyRelocationLength(RelInfo) == 2); in processRelocationRef() 266 int64_t RawAddend = Obj.getPlainRelocationSymbolNum(RelInfo); in processRelocationRef() 270 RelInfo = Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef() 273 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() [all …]
|
| HD | RuntimeDyldMachOX86_64.h | 38 const MachOObjectFile &Obj = in processRelocationRef() local 41 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef() 43 assert(!Obj.isRelocationScattered(RelInfo) && in processRelocationRef() 46 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 49 getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)); in processRelocationRef() 51 bool IsExtern = Obj.getPlainRelocationExternal(RelInfo); in processRelocationRef() 102 void finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument
|
| /NextBSD/contrib/llvm/tools/macho-dump/ |
| HD | macho-dump.cpp | 70 static int DumpSectionData(const MachOObjectFile &Obj, unsigned Index, in DumpSectionData() argument 99 for (relocation_iterator I = Obj.section_rel_begin(Index), in DumpSectionData() 100 E = Obj.section_rel_end(Index); in DumpSectionData() 102 MachO::any_relocation_info RE = Obj.getRelocation(I->getRawDataRefImpl()); in DumpSectionData() 112 StringRef Data = Obj.getData().substr(Offset, Size); in DumpSectionData() 125 static int DumpSegmentCommand(const MachOObjectFile &Obj, in DumpSegmentCommand() argument 127 MachO::segment_command SLC = Obj.getSegmentLoadCommand(LCI); in DumpSegmentCommand() 136 MachO::section Sect = Obj.getSection(LCI, i); in DumpSegmentCommand() 137 DumpSectionData(Obj, i, StringRef(Sect.sectname, 16), in DumpSegmentCommand() 148 static int DumpSegment64Command(const MachOObjectFile &Obj, in DumpSegment64Command() argument [all …]
|
| /NextBSD/contrib/llvm/include/llvm/ADT/ |
| HD | IntrusiveRefCntPtr.h | 136 T* Obj; variable 141 explicit IntrusiveRefCntPtr() : Obj(nullptr) {} in IntrusiveRefCntPtr() 143 IntrusiveRefCntPtr(T* obj) : Obj(obj) { in IntrusiveRefCntPtr() 147 IntrusiveRefCntPtr(const IntrusiveRefCntPtr& S) : Obj(S.Obj) { in IntrusiveRefCntPtr() 151 IntrusiveRefCntPtr(IntrusiveRefCntPtr&& S) : Obj(S.Obj) { in IntrusiveRefCntPtr() 152 S.Obj = nullptr; in IntrusiveRefCntPtr() 156 IntrusiveRefCntPtr(IntrusiveRefCntPtr<X>&& S) : Obj(S.get()) { in IntrusiveRefCntPtr() 157 S.Obj = 0; in IntrusiveRefCntPtr() 162 : Obj(S.get()) { in IntrusiveRefCntPtr() 173 T& operator*() const { return *Obj; } [all …]
|
| /NextBSD/contrib/llvm/tools/llvm-readobj/ |
| HD | MachODumper.cpp | 31 MachODumper(const MachOObjectFile *Obj, StreamWriter& Writer) in MachODumper() argument 33 , Obj(Obj) { } in MachODumper() 51 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc); 53 void printSections(const MachOObjectFile *Obj); 55 const MachOObjectFile *Obj; member in __anon51d06c5c0111::MachODumper 63 std::error_code createMachODumper(const object::ObjectFile *Obj, in createMachODumper() argument 66 const MachOObjectFile *MachOObj = dyn_cast<MachOObjectFile>(Obj); in createMachODumper() 269 static void getSection(const MachOObjectFile *Obj, in getSection() argument 272 if (!Obj->is64Bit()) { in getSection() 273 MachO::section Sect = Obj->getSection(Sec); in getSection() [all …]
|
| HD | llvm-readobj.cpp | 241 static std::error_code createDumper(const ObjectFile *Obj, StreamWriter &Writer, in createDumper() argument 243 if (!Obj) in createDumper() 246 if (Obj->isCOFF()) in createDumper() 247 return createCOFFDumper(Obj, Writer, Result); in createDumper() 248 if (Obj->isELF()) in createDumper() 249 return createELFDumper(Obj, Writer, Result); in createDumper() 250 if (Obj->isMachO()) in createDumper() 251 return createMachODumper(Obj, Writer, Result); in createDumper() 256 static StringRef getLoadName(const ObjectFile *Obj) { in getLoadName() argument 257 if (auto *ELF = dyn_cast<ELF32LEObjectFile>(Obj)) in getLoadName() [all …]
|
| HD | ELFDumper.cpp | 45 ELFDumper(const ELFFile<ELFT> *Obj, StreamWriter &Writer) in ELFDumper() argument 46 : ObjDumper(Writer), Obj(Obj) {} in ELFDumper() 78 const ELFO *Obj; member in __anonaf7422cb0111::ELFDumper 94 static std::error_code createELFDumper(const ELFFile<ELFT> *Obj, in createELFDumper() argument 97 Result.reset(new ELFDumper<ELFT>(Obj, Writer)); in createELFDumper() 101 std::error_code createELFDumper(const object::ObjectFile *Obj, in createELFDumper() argument 105 if (const ELF32LEObjectFile *ELFObj = dyn_cast<ELF32LEObjectFile>(Obj)) in createELFDumper() 109 if (const ELF32BEObjectFile *ELFObj = dyn_cast<ELF32BEObjectFile>(Obj)) in createELFDumper() 113 if (const ELF64LEObjectFile *ELFObj = dyn_cast<ELF64LEObjectFile>(Obj)) in createELFDumper() 117 if (const ELF64BEObjectFile *ELFObj = dyn_cast<ELF64BEObjectFile>(Obj)) in createELFDumper() [all …]
|
| HD | COFFDumper.cpp | 48 COFFDumper(const llvm::object::COFFObjectFile *Obj, StreamWriter& Writer) in COFFDumper() argument 50 , Obj(Obj) { in COFFDumper() 93 const llvm::object::COFFObjectFile *Obj; member in __anon6e8599720111::COFFDumper 105 std::error_code createCOFFDumper(const object::ObjectFile *Obj, in createCOFFDumper() argument 108 const COFFObjectFile *COFFObj = dyn_cast<COFFObjectFile>(Obj); in createCOFFDumper() 333 static std::error_code getSymbolAuxData(const COFFObjectFile *Obj, in getSymbolAuxData() argument 336 ArrayRef<uint8_t> AuxData = Obj->getSymbolAuxData(Symbol); in getSymbolAuxData() 337 AuxData = AuxData.slice(AuxSymbolIdx * Obj->getSymbolTableEntrySize()); in getSymbolAuxData() 347 for (const SectionRef &S : Obj->sections()) { in cacheRelocations() 348 const coff_section *Section = Obj->getCOFFSection(S); in cacheRelocations() [all …]
|
| /NextBSD/contrib/llvm/tools/llvm-objdump/ |
| HD | COFFDump.cpp | 161 resolveSectionAndAddress(const COFFObjectFile *Obj, const SymbolRef &Sym, in resolveSectionAndAddress() argument 168 section_iterator iter(Obj->section_begin()); in resolveSectionAndAddress() 171 ResolvedSection = Obj->getCOFFSection(*iter); in resolveSectionAndAddress() 196 getSectionContents(const COFFObjectFile *Obj, in getSectionContents() argument 203 if (std::error_code EC = resolveSectionAndAddress(Obj, Sym, Section, Addr)) in getSectionContents() 205 if (std::error_code EC = Obj->getSectionContents(Section, Contents)) in getSectionContents() 239 printSEHTable(const COFFObjectFile *Obj, uint32_t TableVA, int Count) { in printSEHTable() argument 244 if (error(Obj->getPE32Header(PE32Header))) in printSEHTable() 248 if (error(Obj->getVaPtr(TableVA, IntPtr))) in printSEHTable() 257 static void printLoadConfiguration(const COFFObjectFile *Obj) { in printLoadConfiguration() argument [all …]
|
| HD | llvm-objdump.cpp | 184 static const Target *getTarget(const ObjectFile *Obj = nullptr) { in getTarget() argument 188 if (Obj) { in getTarget() 189 TheTriple.setArch(Triple::ArchType(Obj->getArch())); in getTarget() 192 if (Obj->isMachO()) in getTarget() 195 if (Obj->isCOFF()) { in getTarget() 196 const auto COFFObj = dyn_cast<COFFObjectFile>(Obj); in getTarget() 303 static std::error_code getRelocationValueString(const ELFObjectFile<ELFT> *Obj, in getRelocationValueString() argument 311 const ELFFile<ELFT> &EF = *Obj->getELFFile(); in getRelocationValueString() 338 const Elf_Rel *ERel = Obj->getRel(Rel); in getRelocationValueString() 345 const Elf_Rela *ERela = Obj->getRela(Rel); in getRelocationValueString() [all …]
|
| HD | ELFDump.cpp | 78 void llvm::printELFFileHeader(const object::ObjectFile *Obj) { in printELFFileHeader() argument 80 if (const ELF32LEObjectFile *ELFObj = dyn_cast<ELF32LEObjectFile>(Obj)) in printELFFileHeader() 84 if (const ELF32BEObjectFile *ELFObj = dyn_cast<ELF32BEObjectFile>(Obj)) in printELFFileHeader() 88 if (const ELF64LEObjectFile *ELFObj = dyn_cast<ELF64LEObjectFile>(Obj)) in printELFFileHeader() 92 if (const ELF64BEObjectFile *ELFObj = dyn_cast<ELF64BEObjectFile>(Obj)) in printELFFileHeader()
|
| /NextBSD/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| HD | RuntimeDyld.cpp | 126 RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) { in loadObjectImpl() argument 134 Arch = (Triple::ArchType)Obj.getArch(); in loadObjectImpl() 135 IsTargetLittleEndian = Obj.isLittleEndian(); in loadObjectImpl() 136 setMipsABI(Obj); in loadObjectImpl() 142 computeTotalAllocSize(Obj, CodeSize, DataSizeRO, DataSizeRW); in loadObjectImpl() 154 for (symbol_iterator I = Obj.symbol_begin(), E = Obj.symbol_end(); I != E; in loadObjectImpl() 171 section_iterator SI = Obj.section_end(); in loadObjectImpl() 173 if (SI == Obj.section_end()) in loadObjectImpl() 181 findOrEmitSection(Obj, *SI, IsCode, LocalSections); in loadObjectImpl() 198 emitCommonSymbols(Obj, CommonSymbols); in loadObjectImpl() [all …]
|
| HD | RuntimeDyldMachO.cpp | 37 getObjectForDebug(const ObjectFile &Obj) const override { in getObjectForDebug() 57 const MachOObjectFile &Obj = in getRelocationValueRef() local 60 Obj.getRelocation(RI->getRawDataRefImpl()); in getRelocationValueRef() 63 bool IsExternal = Obj.getPlainRelocationExternal(RelInfo); in getRelocationValueRef() 81 SectionRef Sec = Obj.getAnyRelocationSection(RelInfo); in getRelocationValueRef() 83 Value.SectionID = findOrEmitSection(Obj, Sec, IsCode, ObjSectionToID); in getRelocationValueRef() 114 RuntimeDyldMachO::getSectionByAddress(const MachOObjectFile &Obj, in getSectionByAddress() argument 116 section_iterator SI = Obj.section_begin(); in getSectionByAddress() 117 section_iterator SE = Obj.section_end(); in getSectionByAddress() 132 const MachOObjectFile &Obj, in populateIndirectSymbolPointersSection() argument [all …]
|
| HD | RuntimeDyldMachO.h | 68 const MachOObjectFile &Obj = in getRelocationEntry() local 71 Obj.getRelocation(RI->getRawDataRefImpl()); in getRelocationEntry() 73 bool IsPCRel = Obj.getAnyRelocationPCRel(RelInfo); in getRelocationEntry() 74 unsigned Size = Obj.getAnyRelocationLength(RelInfo); in getRelocationEntry() 77 static_cast<MachO::RelocationInfoType>(Obj.getAnyRelocationType(RelInfo)); in getRelocationEntry() 105 static section_iterator getSectionByAddress(const MachOObjectFile &Obj, 110 void populateIndirectSymbolPointersSection(const MachOObjectFile &Obj, 127 bool isCompatibleFile(const object::ObjectFile &Obj) const override; 151 void finalizeLoad(const ObjectFile &Obj,
|
| HD | RuntimeDyldELF.cpp | 115 getObjectForDebug(const ObjectFile &Obj) const override; 126 std::unique_ptr<DyldELFObject<ELFT>> Obj = in createRTDyldELFObject() local 130 for (const auto &Sec : Obj->sections()) { in createRTDyldELFObject() 146 return Obj; in createRTDyldELFObject() 149 OwningBinary<ObjectFile> createELFDebugObject(const ObjectFile &Obj, in createELFDebugObject() argument 151 assert(Obj.isELF() && "Not an ELF object file."); in createELFDebugObject() 154 MemoryBuffer::getMemBufferCopy(Obj.getData(), Obj.getFileName()); in createELFDebugObject() 159 if (Obj.getBytesInAddress() == 4 && Obj.isLittleEndian()) { in createELFDebugObject() 162 } else if (Obj.getBytesInAddress() == 4 && !Obj.isLittleEndian()) { in createELFDebugObject() 165 } else if (Obj.getBytesInAddress() == 8 && !Obj.isLittleEndian()) { in createELFDebugObject() [all …]
|
| /NextBSD/contrib/llvm/lib/IR/ |
| HD | User.cpp | 99 User *Obj = reinterpret_cast<User*>(End); in operator new() local 100 Obj->NumUserOperands = Us; in operator new() 101 Obj->HasHungOffUses = false; in operator new() 103 return Obj; in operator new() 110 User *Obj = reinterpret_cast<User *>(HungOffOperandList + 1); in operator new() local 111 Obj->NumUserOperands = 0; in operator new() 112 Obj->HasHungOffUses = true; in operator new() 114 return Obj; in operator new() 124 User *Obj = static_cast<User *>(Usr); in operator delete() local 125 if (Obj->HasHungOffUses) { in operator delete() [all …]
|
| /NextBSD/contrib/llvm/tools/llvm-nm/ |
| HD | llvm-nm.cpp | 204 static char isSymbolList64Bit(SymbolicFile &Obj) { in isSymbolList64Bit() argument 205 if (isa<IRObjectFile>(Obj)) in isSymbolList64Bit() 207 if (isa<COFFObjectFile>(Obj)) in isSymbolList64Bit() 209 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in isSymbolList64Bit() 211 return cast<ELFObjectFileBase>(Obj).getBytesInAddress() == 8; in isSymbolList64Bit() 485 static void sortAndPrintSymbolList(SymbolicFile &Obj, bool printName, in sortAndPrintSymbolList() argument 515 if (isSymbolList64Bit(Obj)) { in sortAndPrintSymbolList() 540 if (JustSymbolName || (UndefinedOnly && isa<MachOObjectFile>(Obj))) { in sortAndPrintSymbolList() 563 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in sortAndPrintSymbolList() 592 static char getSymbolNMTypeChar(ELFObjectFileBase &Obj, in getSymbolNMTypeChar() argument [all …]
|
| /NextBSD/contrib/llvm/include/llvm/Object/ |
| HD | MachOUniversal.h | 70 ObjectForArch Obj; variable 72 object_iterator(const ObjectForArch &Obj) : Obj(Obj) {} in object_iterator() argument 73 const ObjectForArch *operator->() const { return &Obj; } 74 const ObjectForArch &operator*() const { return Obj; } 77 return Obj == Other.Obj; 84 Obj = Obj.getNext();
|
| /NextBSD/contrib/llvm/lib/ExecutionEngine/OProfileJIT/ |
| HD | OProfileJITEventListener.cpp | 51 void NotifyObjectEmitted(const ObjectFile &Obj, 54 void NotifyFreeingObject(const ObjectFile &Obj) override; 79 const ObjectFile &Obj, in NotifyObjectEmitted() argument 85 OwningBinary<ObjectFile> DebugObjOwner = L.getObjectForDebug(Obj); in NotifyObjectEmitted() 114 DebugObjects[Obj.getData().data()] = std::move(DebugObjOwner); in NotifyObjectEmitted() 117 void OProfileJITEventListener::NotifyFreeingObject(const ObjectFile &Obj) { in NotifyFreeingObject() argument 122 if (DebugObjects.find(Obj.getData().data()) == DebugObjects.end()) in NotifyFreeingObject() 125 const ObjectFile &DebugObj = *DebugObjects[Obj.getData().data()].getBinary(); in NotifyFreeingObject() 147 DebugObjects.erase(Obj.getData().data()); in NotifyFreeingObject()
|
| /NextBSD/contrib/llvm/tools/llvm-cxxdump/ |
| HD | llvm-cxxdump.cpp | 72 static SmallVectorImpl<SectionRef> &getRelocSections(const ObjectFile *Obj, in getRelocSections() argument 77 for (const SectionRef &Section : Obj->sections()) { in getRelocSections() 79 if (Sec2 != Obj->section_end()) in getRelocSections() 87 static bool collectRelocatedSymbols(const ObjectFile *Obj, in collectRelocatedSymbols() argument 93 for (const SectionRef &SR : getRelocSections(Obj, Sec)) { in collectRelocatedSymbols() 98 if (RelocSymI == Obj->symbol_end()) in collectRelocatedSymbols() 114 const ObjectFile *Obj, const SectionRef &Sec, uint64_t SecAddress, in collectRelocationOffsets() argument 119 for (const SectionRef &SR : getRelocSections(Obj, Sec)) { in collectRelocationOffsets() 122 if (RelocSymI == Obj->symbol_end()) in collectRelocationOffsets() 135 static void dumpCXXData(const ObjectFile *Obj) { in dumpCXXData() argument [all …]
|
| /NextBSD/contrib/llvm/lib/Object/ |
| HD | ELFObjectFile.cpp | 24 ObjectFile::createELFObjectFile(MemoryBufferRef Obj) { in createELFObjectFile() argument 26 getElfArchType(Obj.getBuffer()); in createELFObjectFile() 28 1ULL << countTrailingZeros(uintptr_t(Obj.getBufferStart())); in createELFObjectFile() 37 R.reset(new ELFObjectFile<ELFType<support::little, false>>(Obj, EC)); in createELFObjectFile() 39 R.reset(new ELFObjectFile<ELFType<support::big, false>>(Obj, EC)); in createELFObjectFile() 44 R.reset(new ELFObjectFile<ELFType<support::little, true>>(Obj, EC)); in createELFObjectFile() 46 R.reset(new ELFObjectFile<ELFType<support::big, true>>(Obj, EC)); in createELFObjectFile()
|
| /NextBSD/sys/dev/acpi_support/ |
| HD | acpi_asus.c | 549 ACPI_OBJECT Arg, *Obj; in acpi_asus_probe() local 577 Obj = Buf.Pointer; in acpi_asus_probe() 583 if (Obj->String.Pointer == NULL) { in acpi_asus_probe() 618 if (strncmp(Obj->String.Pointer, model->name, 3) == 0) { in acpi_asus_probe() 622 Obj->String.Pointer); in acpi_asus_probe() 642 (strncmp(Obj->String.Pointer, "M3N", 3) == 0 || in acpi_asus_probe() 643 strncmp(Obj->String.Pointer, "S1N", 3) == 0)) in acpi_asus_probe() 646 strncmp(Obj->String.Pointer, "A1", 2) == 0) in acpi_asus_probe() 649 strncmp(Obj->String.Pointer, "A2", 2) == 0) in acpi_asus_probe() 652 strncmp(Obj->String.Pointer, "A6F", 3) == 0) in acpi_asus_probe() [all …]
|
| /NextBSD/contrib/llvm/lib/ExecutionEngine/IntelJITEvents/ |
| HD | IntelJITEventListener.cpp | 59 void NotifyObjectEmitted(const ObjectFile &Obj, 62 void NotifyFreeingObject(const ObjectFile &Obj) override; 99 const ObjectFile &Obj, in NotifyObjectEmitted() argument 102 OwningBinary<ObjectFile> DebugObjOwner = L.getObjectForDebug(Obj); in NotifyObjectEmitted() 175 DebugObjects[Obj.getData().data()] = std::move(DebugObjOwner); in NotifyObjectEmitted() 178 void IntelJITEventListener::NotifyFreeingObject(const ObjectFile &Obj) { in NotifyFreeingObject() argument 181 if (DebugObjects.find(Obj.getData().data()) == DebugObjects.end()) in NotifyFreeingObject() 185 const ObjectFile &DebugObj = *DebugObjects[Obj.getData().data()].getBinary(); in NotifyFreeingObject() 210 DebugObjects.erase(Obj.getData().data()); in NotifyFreeingObject()
|
| /NextBSD/contrib/llvm/lib/ExecutionEngine/ |
| HD | GDBRegistrationListener.cpp | 69 OwningBinary<ObjectFile> Obj) in RegisteredObjectInfo() 70 : Size(Size), Entry(Entry), Obj(std::move(Obj)) {} in RegisteredObjectInfo() 73 : Size(Other.Size), Entry(Other.Entry), Obj(std::move(Other.Obj)) {} in RegisteredObjectInfo() 78 Obj = std::move(Other.Obj); in operator =() 84 OwningBinary<ObjectFile> Obj; member
|