/external/vixl/test/ |
D | test-invalset.cc | 40 class Obj { class 42 Obj() {} in Obj() function in vixl::Obj 43 Obj(KeyType key, ValType val) : key_(key), val_(val) {} in Obj() function in vixl::Obj 47 bool operator==(const Obj& other) const { in operator ==() 50 bool operator<(const Obj& other) const { in operator <() 53 bool operator<=(const Obj& other) const { in operator <=() 57 bool operator>(const Obj& other) const { in operator >() 67 typedef InvalSet<Obj, 75 inline KeyType InvalSet<Obj, 80 kReclaimFactor>::GetKey(const Obj& obj) { in GetKey() [all …]
|
/external/llvm/tools/llvm-pdbdump/ |
D | YAMLOutputStyle.cpp | 54 Obj.Headers.emplace(); in dumpFileHeaders() 55 Obj.Headers->SuperBlock.NumBlocks = File.getBlockCount(); in dumpFileHeaders() 56 Obj.Headers->SuperBlock.BlockMapAddr = File.getBlockMapIndex(); in dumpFileHeaders() 57 Obj.Headers->BlockMapOffset = File.getBlockMapOffset(); in dumpFileHeaders() 58 Obj.Headers->SuperBlock.BlockSize = File.getBlockSize(); in dumpFileHeaders() 60 Obj.Headers->DirectoryBlocks.assign(Blocks.begin(), Blocks.end()); in dumpFileHeaders() 61 Obj.Headers->NumDirectoryBlocks = File.getNumDirectoryBlocks(); in dumpFileHeaders() 62 Obj.Headers->SuperBlock.NumDirectoryBytes = File.getNumDirectoryBytes(); in dumpFileHeaders() 63 Obj.Headers->NumStreams = in dumpFileHeaders() 65 Obj.Headers->SuperBlock.Unknown0 = File.getUnknown0(); in dumpFileHeaders() [all …]
|
D | PdbYaml.cpp | 107 void MappingTraits<PdbObject>::mapping(IO &IO, PdbObject &Obj) { in mapping() argument 108 IO.mapOptional("MSF", Obj.Headers); in mapping() 109 IO.mapOptional("StreamSizes", Obj.StreamSizes); in mapping() 110 IO.mapOptional("StreamMap", Obj.StreamMap); in mapping() 111 IO.mapOptional("PdbStream", Obj.PdbStream); in mapping() 112 IO.mapOptional("DbiStream", Obj.DbiStream); in mapping() 115 void MappingTraits<MsfHeaders>::mapping(IO &IO, MsfHeaders &Obj) { in mapping() argument 116 IO.mapRequired("SuperBlock", Obj.SuperBlock); in mapping() 117 IO.mapRequired("NumDirectoryBlocks", Obj.NumDirectoryBlocks); in mapping() 118 IO.mapRequired("BlockMapOffset", Obj.BlockMapOffset); in mapping() [all …]
|
/external/llvm/lib/CodeGen/ |
D | SafeStackLayout.cpp | 47 void StackLayout::layoutObject(StackObject &Obj) { in layoutObject() argument 52 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment); in layoutObject() 53 unsigned End = Start + Obj.Size; in layoutObject() 54 Regions.emplace_back(Start, End, Obj.Range); in layoutObject() 55 ObjectOffsets[Obj.Handle] = End; in layoutObject() 59 DEBUG(dbgs() << "Layout: size " << Obj.Size << ", align " << Obj.Alignment in layoutObject() 60 << ", range " << Obj.Range << "\n"); in layoutObject() 61 assert(Obj.Alignment <= MaxAlignment); in layoutObject() 62 unsigned Start = AdjustStackOffset(0, Obj.Size, Obj.Alignment); in layoutObject() 63 unsigned End = Start + Obj.Size; in layoutObject() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | 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 = nullptr; in IntrusiveRefCntPtr() 162 : Obj(S.get()) { in IntrusiveRefCntPtr() 173 T& operator*() const { return *Obj; } [all …]
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOI386.h | 39 const MachOObjectFile &Obj = in processRelocationRef() local 42 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef() 43 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() 45 if (Obj.isRelocationScattered(RelInfo)) { in processRelocationRef() 48 return processSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef() 51 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 68 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 71 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef() 129 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 135 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection() [all …]
|
D | RuntimeDyldMachOX86_64.h | 39 const MachOObjectFile &Obj = in processRelocationRef() local 42 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef() 43 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() 46 return processSubtractRelocation(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 48 assert(!Obj.isRelocationScattered(RelInfo) && in processRelocationRef() 51 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 54 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef() 59 bool IsExtern = Obj.getPlainRelocationExternal(RelInfo); in processRelocationRef() 124 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument 162 const MachOObjectFile &Obj = in processSubtractRelocation() local [all …]
|
/external/llvm/tools/yaml2obj/ |
D | yaml2coff.cpp | 33 COFFParser(COFFYAML::Object &Obj) in COFFParser() 34 : Obj(Obj), SectionTableStart(0), SectionTableSize(0) { in COFFParser() 41 return static_cast<int32_t>(Obj.Sections.size()) > in useBigObj() 45 bool isPE() const { return Obj.OptionalHeader.hasValue(); } in isPE() 47 return Obj.Header.Machine == COFF::IMAGE_FILE_MACHINE_AMD64; in is64Bit() 51 return Obj.OptionalHeader->Header.FileAlignment; in getFileAlignment() 63 for (std::vector<COFFYAML::Section>::iterator i = Obj.Sections.begin(), in parseSections() 64 e = Obj.Sections.end(); i != e; ++i) { in parseSections() 101 for (std::vector<COFFYAML::Symbol>::iterator i = Obj.Symbols.begin(), in parseSymbols() 102 e = Obj.Symbols.end(); i != e; ++i) { in parseSymbols() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | IntrusiveRefCntPtr.h | 134 T* Obj = nullptr; variable 141 IntrusiveRefCntPtr(T* obj) : Obj(obj) { in IntrusiveRefCntPtr() 145 IntrusiveRefCntPtr(const IntrusiveRefCntPtr& S) : Obj(S.Obj) { in IntrusiveRefCntPtr() 149 IntrusiveRefCntPtr(IntrusiveRefCntPtr&& S) : Obj(S.Obj) { in IntrusiveRefCntPtr() 150 S.Obj = nullptr; in IntrusiveRefCntPtr() 154 IntrusiveRefCntPtr(IntrusiveRefCntPtr<X>&& S) : Obj(S.get()) { in IntrusiveRefCntPtr() 155 S.Obj = nullptr; in IntrusiveRefCntPtr() 160 : Obj(S.get()) { in IntrusiveRefCntPtr() 171 T& operator*() const { return *Obj; } 173 T* operator->() const { return Obj; } [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | IntrusiveRefCntPtr.h | 101 T* Obj; variable 106 explicit IntrusiveRefCntPtr() : Obj(0) {} in IntrusiveRefCntPtr() 108 explicit IntrusiveRefCntPtr(T* obj) : Obj(obj) { in IntrusiveRefCntPtr() 112 IntrusiveRefCntPtr(const IntrusiveRefCntPtr& S) : Obj(S.Obj) { in IntrusiveRefCntPtr() 118 : Obj(S.getPtr()) { in IntrusiveRefCntPtr() 140 T& operator*() const { return *Obj; } 142 T* operator->() const { return Obj; } 144 T* getPtr() const { return Obj; } in getPtr() 148 return Obj == 0 ? 0 : &IntrusiveRefCntPtr::getPtr; in unspecified_bool_type() 152 T* tmp = other.Obj; in swap() [all …]
|
/external/llvm/tools/llvm-readobj/ |
D | MachODumper.cpp | 31 MachODumper(const MachOObjectFile *Obj, ScopedPrinter &Writer) in MachODumper() argument 32 : ObjDumper(Writer), Obj(Obj) {} in MachODumper() 58 void printRelocation(const MachOObjectFile *Obj, const RelocationRef &Reloc); 60 void printSections(const MachOObjectFile *Obj); 62 const MachOObjectFile *Obj; member in __anonc9a71cae0111::MachODumper 70 std::error_code createMachODumper(const object::ObjectFile *Obj, in createMachODumper() argument 73 const MachOObjectFile *MachOObj = dyn_cast<MachOObjectFile>(Obj); in createMachODumper() 304 static void getSection(const MachOObjectFile *Obj, in getSection() argument 307 if (!Obj->is64Bit()) { in getSection() 308 MachO::section Sect = Obj->getSection(Sec); in getSection() [all …]
|
D | ELFDumper.cpp | 100 ELFDumper(const ELFFile<ELFT> *Obj, ScopedPrinter &Writer); 155 if (DRI.Addr < Obj->base() || in checkDRI() 156 (const uint8_t *)DRI.Addr + DRI.Size > Obj->base() + Obj->getBufSize()) in checkDRI() 162 return checkDRI({Obj->base() + P->p_offset, P->p_filesz, EntSize}); in createDRIFrom() 166 return checkDRI({Obj->base() + S->sh_offset, S->sh_size, S->sh_entsize}); in createDRIFrom() 180 const ELFO *Obj; member in __anona2de969d0111::ELFDumper 260 StrTable = unwrapOrError(Obj->getStringTableForSymtab(*DotSymtabSec)); in printSymbolsHelper() 261 Syms = Obj->symbols(DotSymtabSec); in printSymbolsHelper() 262 SymtabName = unwrapOrError(Obj->getSectionName(DotSymtabSec)); in printSymbolsHelper() 267 ELFDumperStyle->printSymtabMessage(Obj, SymtabName, Entries); in printSymbolsHelper() [all …]
|
D | llvm-readobj.cpp | 324 static std::error_code createDumper(const ObjectFile *Obj, in createDumper() argument 327 if (!Obj) in createDumper() 330 if (Obj->isCOFF()) in createDumper() 331 return createCOFFDumper(Obj, Writer, Result); in createDumper() 332 if (Obj->isELF()) in createDumper() 333 return createELFDumper(Obj, Writer, Result); in createDumper() 334 if (Obj->isMachO()) in createDumper() 335 return createMachODumper(Obj, Writer, Result); in createDumper() 341 static void dumpObject(const ObjectFile *Obj) { in dumpObject() argument 344 if (std::error_code EC = createDumper(Obj, Writer, Dumper)) in dumpObject() [all …]
|
/external/swiftshader/third_party/LLVM/tools/macho-dump/ |
D | macho-dump.cpp | 69 static int DumpSectionData(MachOObject &Obj, unsigned Index, StringRef Name, in DumpSectionData() argument 99 Obj.ReadRelocationEntry(RelocationTableOffset, i, RE); in DumpSectionData() 114 StringRef Data = Obj.getData(Offset, Size); in DumpSectionData() 127 static int DumpSegmentCommand(MachOObject &Obj, in DumpSegmentCommand() argument 130 Obj.ReadSegmentLoadCommand(LCI, SLC); in DumpSegmentCommand() 144 Obj.ReadSection(LCI, i, Sect); in DumpSegmentCommand() 150 if ((Res = DumpSectionData(Obj, i, StringRef(Sect->Name, 16), in DumpSegmentCommand() 163 static int DumpSegment64Command(MachOObject &Obj, in DumpSegment64Command() argument 166 Obj.ReadSegment64LoadCommand(LCI, SLC); in DumpSegment64Command() 180 Obj.ReadSection64(LCI, i, Sect); in DumpSegment64Command() [all …]
|
/external/llvm/lib/IR/ |
D | User.cpp | 132 User *Obj = reinterpret_cast<User*>(End); in allocateFixedOperandUser() local 133 Obj->NumUserOperands = Us; in allocateFixedOperandUser() 134 Obj->HasHungOffUses = false; in allocateFixedOperandUser() 135 Obj->HasDescriptor = DescBytes != 0; in allocateFixedOperandUser() 143 return Obj; in allocateFixedOperandUser() 158 User *Obj = reinterpret_cast<User *>(HungOffOperandList + 1); in operator new() local 159 Obj->NumUserOperands = 0; in operator new() 160 Obj->HasHungOffUses = true; in operator new() 161 Obj->HasDescriptor = false; in operator new() 163 return Obj; in operator new() [all …]
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/ |
D | RuntimeDyldMachO.cpp | 37 getObjectForDebug(const ObjectFile &Obj) const override { in getObjectForDebug() 58 const MachOObjectFile &Obj = in processScatteredVANILLA() local 61 Obj.getRelocation(RelI->getRawDataRefImpl()); in processScatteredVANILLA() 64 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processScatteredVANILLA() 65 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processScatteredVANILLA() 66 unsigned Size = Obj.getAnyRelocationLength(RE); in processScatteredVANILLA() 72 unsigned SymbolBaseAddr = Obj.getScatteredRelocationValue(RE); in processScatteredVANILLA() 73 section_iterator TargetSI = getSectionByAddress(Obj, SymbolBaseAddr); in processScatteredVANILLA() 74 assert(TargetSI != Obj.section_end() && "Can't find section for symbol"); in processScatteredVANILLA() 80 findOrEmitSection(Obj, TargetSection, IsCode, ObjSectionToID)) in processScatteredVANILLA() [all …]
|
D | RuntimeDyld.cpp | 174 RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) { in loadObjectImpl() argument 178 Arch = (Triple::ArchType)Obj.getArch(); in loadObjectImpl() 179 IsTargetLittleEndian = Obj.isLittleEndian(); in loadObjectImpl() 180 setMipsABI(Obj); in loadObjectImpl() 187 if (auto Err = computeTotalAllocSize(Obj, in loadObjectImpl() 204 for (symbol_iterator I = Obj.symbol_begin(), E = Obj.symbol_end(); I != E; in loadObjectImpl() 254 section_iterator SI = Obj.section_end(); in loadObjectImpl() 260 if (SI == Obj.section_end()) in loadObjectImpl() 270 if (auto SectionIDOrErr = findOrEmitSection(Obj, *SI, IsCode, in loadObjectImpl() 287 if (auto Err = emitCommonSymbols(Obj, CommonSymbols)) in loadObjectImpl() [all …]
|
/external/llvm/tools/llvm-objdump/ |
D | COFFDump.cpp | 161 resolveSectionAndAddress(const COFFObjectFile *Obj, const SymbolRef &Sym, in resolveSectionAndAddress() argument 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 error(Obj->getPE32Header(PE32Header)); in printSEHTable() 247 error(Obj->getVaPtr(TableVA, IntPtr)); in printSEHTable() 276 static void printTLSDirectory(const COFFObjectFile *Obj) { in printTLSDirectory() argument 278 error(Obj->getPE32Header(PE32Header)); in printTLSDirectory() [all …]
|
D | llvm-objdump.cpp | 326 static const Target *getTarget(const ObjectFile *Obj = nullptr) { in getTarget() argument 330 if (Obj) { in getTarget() 331 TheTriple.setArch(Triple::ArchType(Obj->getArch())); in getTarget() 334 if (Obj->isMachO()) in getTarget() 337 if (Obj->isCOFF()) { in getTarget() 338 const auto COFFObj = dyn_cast<COFFObjectFile>(Obj); in getTarget() 487 static std::error_code getRelocationValueString(const ELFObjectFile<ELFT> *Obj, in getRelocationValueString() argument 496 const ELFFile<ELFT> &EF = *Obj->getELFFile(); in getRelocationValueString() 526 const Elf_Rela *ERela = Obj->getRela(Rel); in getRelocationValueString() 532 const Elf_Sym *symb = Obj->getSymbol(SI->getRawDataRefImpl()); in getRelocationValueString() [all …]
|
/external/llvm/tools/obj2yaml/ |
D | elf2yaml.cpp | 28 const object::ELFFile<ELFT> &Obj; member in __anonf6eb21360111::ELFDumper 57 : Obj(O) {} in ELFDumper() 64 Y->Header.Class = ELFYAML::ELF_ELFCLASS(Obj.getHeader()->getFileClass()); in dump() 65 Y->Header.Data = ELFYAML::ELF_ELFDATA(Obj.getHeader()->getDataEncoding()); in dump() 66 Y->Header.OSABI = Obj.getHeader()->e_ident[ELF::EI_OSABI]; in dump() 67 Y->Header.Type = Obj.getHeader()->e_type; in dump() 68 Y->Header.Machine = Obj.getHeader()->e_machine; in dump() 69 Y->Header.Flags = Obj.getHeader()->e_flags; in dump() 70 Y->Header.Entry = Obj.getHeader()->e_entry; in dump() 75 for (const Elf_Shdr &Sec : Obj.sections()) { in dump() [all …]
|
D | coff2yaml.cpp | 21 const object::COFFObjectFile &Obj; member in __anondd185d7d0111::COFFDumper 30 COFFDumper(const object::COFFObjectFile &Obj); 36 COFFDumper::COFFDumper(const object::COFFObjectFile &Obj) : Obj(Obj) { in COFFDumper() argument 38 Obj.getPE32Header(PE32Header); in COFFDumper() 43 Obj.getPE32PlusHeader(PE32PlusHeader); in COFFDumper() 49 dumpSections(Obj.getNumberOfSections()); in COFFDumper() 50 dumpSymbols(Obj.getNumberOfSymbols()); in COFFDumper() 89 if (Obj.getDataDirectory(I++, DD)) in dumpOptionalHeader() 98 YAMLObj.Header.Machine = Obj.getMachine(); in dumpHeader() 99 YAMLObj.Header.Characteristics = Obj.getCharacteristics(); in dumpHeader() [all …]
|
D | macho2yaml.cpp | 28 const object::MachOObjectFile &Obj; member in MachODumper 39 MachODumper(const object::MachOObjectFile &O) : Obj(O) {} in MachODumper() 47 if (Obj.isLittleEndian() != sys::IsLittleEndianHost) \ 118 LoadCmd, LC.Sections, Obj.isLittleEndian()); in processLoadCommandData() 126 LoadCmd, LC.Sections, Obj.isLittleEndian()); in processLoadCommandData() 170 Y->Header.magic = Obj.getHeader().magic; in dumpHeader() 171 Y->Header.cputype = Obj.getHeader().cputype; in dumpHeader() 172 Y->Header.cpusubtype = Obj.getHeader().cpusubtype; in dumpHeader() 173 Y->Header.filetype = Obj.getHeader().filetype; in dumpHeader() 174 Y->Header.ncmds = Obj.getHeader().ncmds; in dumpHeader() [all …]
|
D | obj2yaml.cpp | 22 static std::error_code dumpObject(const ObjectFile &Obj) { in dumpObject() argument 23 if (Obj.isCOFF()) in dumpObject() 24 return coff2yaml(outs(), cast<COFFObjectFile>(Obj)); in dumpObject() 25 if (Obj.isELF()) in dumpObject() 26 return elf2yaml(outs(), Obj); in dumpObject() 42 if (ObjectFile *Obj = dyn_cast<ObjectFile>(&Binary)) in dumpInput() local 43 return dumpObject(*Obj); in dumpInput()
|
/external/llvm/tools/llvm-nm/ |
D | llvm-nm.cpp | 266 static char isSymbolList64Bit(SymbolicFile &Obj) { in isSymbolList64Bit() argument 267 if (isa<IRObjectFile>(Obj)) { in isSymbolList64Bit() 268 IRObjectFile *IRobj = dyn_cast<IRObjectFile>(&Obj); in isSymbolList64Bit() 275 if (isa<COFFObjectFile>(Obj)) in isSymbolList64Bit() 277 if (MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj)) in isSymbolList64Bit() 279 return cast<ELFObjectFileBase>(Obj).getBytesInAddress() == 8; in isSymbolList64Bit() 286 static char getSymbolNMTypeChar(IRObjectFile &Obj, basic_symbol_iterator I); 293 static void darwinPrintSymbol(SymbolicFile &Obj, SymbolListT::iterator I, in darwinPrintSymbol() argument 305 MachOObjectFile *MachO = dyn_cast<MachOObjectFile>(&Obj); in darwinPrintSymbol() 306 if (Obj.isIR()) { in darwinPrintSymbol() [all …]
|
/external/llvm/include/llvm/Object/ |
D | MachOUniversal.h | 111 ObjectForArch Obj; variable 113 object_iterator(const ObjectForArch &Obj) : Obj(Obj) {} in object_iterator() argument 114 const ObjectForArch *operator->() const { return &Obj; } 115 const ObjectForArch &operator*() const { return Obj; } 118 return Obj == Other.Obj; 125 Obj = Obj.getNext();
|