Home
last modified time | relevance | path

Searched refs:Obj (Results 1 – 25 of 343) sorted by relevance

12345678910>>...14

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dno-automatic-move.cpp5 Obj(const Obj &);
6 Obj(Obj &&);
25 const Obj obj = Make<Obj>(); in PositiveStatusOrConstValue()
31 const Obj obj = Make<Obj>(); in PositiveNonTemplateConstValue()
37 const Obj obj = Make<Obj>(); in PositiveSelfConstValue()
44 const Obj &obj = Make<Obj>(); in PositiveNonTemplateLifetimeExtension()
50 const Obj &obj = Make<Obj>(); in PositiveStatusOrLifetimeExtension()
65 Obj obj = Make<Obj>(); in Nrvo()
70 Obj &obj = Make<Obj &>(); in Ref()
75 const Obj &obj = Make<Obj &>(); in ConstRef()
[all …]
H A Dunnecessary-copy-initialization.cpp251 const ExpensiveToCopyType Obj; in PositiveLocalConstValue() local
259 const ExpensiveToCopyType Obj; in PositiveLocalConstRef() local
268 const ExpensiveToCopyType Obj; in PositiveLocalConstPointer() local
364 mutate(&Obj); in NegativeMethodCallNonConstRefIsModified()
375 Obj.nonConstMethod(); in NegativeMethodCallNonConstValueArgumentIsModified()
383 Obj->constMethod(); in PositiveMethodCallNonConstPointerNotModified()
392 mutate(Obj); in NegativeMethodCallNonConstPointerIsModified()
404 ExpensiveToCopyType Obj; in NegativeLocalVarIsModified() local
406 Obj = AutoAssigned; in NegativeLocalVarIsModified()
410 NegativeConstructor(const ExpensiveToCopyType &Obj) : Obj(Obj) {} in NegativeConstructor()
[all …]
H A Dunnecessary-value-param-delayed.cpp33 void positiveExpensiveValue(ExpensiveToCopyType Obj);
38 Obj.constReference(); in positiveExpensiveValue()
39 useAsConstReference(Obj); in positiveExpensiveValue()
40 auto Copy = Obj; in positiveExpensiveValue()
41 useByValue(Obj); in positiveExpensiveValue()
86 void negativePointer(ExpensiveToCopyType* Obj) { in negativePointer() argument
95 void negativeReference(ExpensiveToCopyType& Obj) { in negativeReference() argument
114 mutate(Obj); in negativeValueIsMutatedByReference()
118 mutate(&Obj); in negativeValueIsMutatatedByPointer()
122 Obj = ExpensiveToCopyType(); in negativeValueIsReassigned()
[all …]
H A Dunnecessary-value-param.cpp70 Obj.constReference(); in positiveExpensiveValue()
71 useAsConstReference(Obj); in positiveExpensiveValue()
72 auto Copy = Obj; in positiveExpensiveValue()
73 useByValue(Obj); in positiveExpensiveValue()
79 for (const auto& Obj : V) { in positiveVector() local
80 useByValue(Obj); in positiveVector()
126 void negativePointer(ExpensiveToCopyType* Obj) { in negativePointer() argument
154 mutate(Obj); in negativeValueIsMutatedByReference()
158 mutate(&Obj); in negativeValueIsMutatatedByPointer()
162 Obj = ExpensiveToCopyType(); in negativeValueIsReassigned()
[all …]
/llvm-project-15.0.7/llvm/unittests/BinaryFormat/
H A DMsgPackReaderTest.cpp18 Object Obj; member
60 EXPECT_EQ(Obj.Bool, false); in TEST_F()
70 EXPECT_EQ(Obj.Bool, true); in TEST_F()
85 EXPECT_EQ(Obj.Int, i); in TEST_F()
106 EXPECT_EQ(Obj.Int, 0); in TEST_F()
136 EXPECT_EQ(Obj.Int, 0); in TEST_F()
166 EXPECT_EQ(Obj.Int, 0); in TEST_F()
196 EXPECT_EQ(Obj.Int, 0); in TEST_F()
230 EXPECT_EQ(Obj.UInt, 0u); in TEST_F()
240 EXPECT_EQ(Obj.UInt, 1u); in TEST_F()
[all …]
/llvm-project-15.0.7/llvm/lib/BinaryFormat/
H A DMsgPackReader.cpp37 Obj.Kind = Type::Nil; in read()
41 Obj.Bool = true; in read()
45 Obj.Bool = false; in read()
48 Obj.Kind = Type::Int; in read()
51 Obj.Kind = Type::Int; in read()
54 Obj.Kind = Type::Int; in read()
57 Obj.Kind = Type::Int; in read()
60 Obj.Kind = Type::UInt; in read()
63 Obj.Kind = Type::UInt; in read()
150 Obj.Int = I; in read()
[all …]
/llvm-project-15.0.7/llvm/lib/ObjCopy/COFF/
H A DCOFFWriter.cpp185 if (Obj.IsPE) { in finalize()
187 sizeof(Obj.DosHeader) + Obj.DosStub.size(); in finalize()
191 Obj.PeHeader.NumberOfRvaAndSize = Obj.DataDirectories.size(); in finalize()
197 Obj.CoffFileHeader.NumberOfSections = Obj.getSections().size(); in finalize()
211 if (Obj.IsPE) { in finalize()
254 if (Obj.IsPE) { in writeHeaders()
255 memcpy(Ptr, &Obj.DosHeader, sizeof(Obj.DosHeader)); in writeHeaders()
257 memcpy(Ptr, Obj.DosStub.data(), Obj.DosStub.size()); in writeHeaders()
289 if (Obj.IsPE) { in writeHeaders()
291 memcpy(Ptr, &Obj.PeHeader, sizeof(Obj.PeHeader)); in writeHeaders()
[all …]
H A DCOFFReader.cpp28 Obj.Is64 = COFFObj.is64(); in readExecutableHeaders()
32 Obj.IsPE = true; in readExecutableHeaders()
33 Obj.DosHeader = *DH; in readExecutableHeaders()
42 copyPeHeader(Obj.PeHeader, *PE32); in readExecutableHeaders()
44 Obj.BaseOfData = PE32->BaseOfData; in readExecutableHeaders()
80 Obj.addSections(Sections); in readSections()
153 Obj.addSymbols(Symbols); in readSymbols()
199 Obj->CoffFileHeader = *CFH; in create()
214 if (Error E = readSections(*Obj)) in create()
218 if (Error E = setSymbolTargets(*Obj)) in create()
[all …]
H A DCOFFObjcopy.cpp34 static uint64_t getNextRVA(const Object &Obj) { in getNextRVA() argument
35 if (Obj.getSections().empty()) in getNextRVA()
39 Obj.IsPE ? Obj.PeHeader.SectionAlignment : 1); in getNextRVA()
72 Obj.IsPE ? Obj.PeHeader.FileAlignment : 1) in addSection()
81 Obj.addSections(Sec); in addSection()
90 addSection(Obj, ".gnu_debuglink", *Contents, in addGnuDebugLink()
173 if (Error E = Obj.markSymbols()) in handleArgs()
241 addSection(Obj, NewSection.SectionName, in handleArgs()
276 if (!Obj.IsPE) in handleArgs()
299 Object *Obj = ObjOrErr->get(); in executeObjcopyOnBinary() local
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-pdbutil/
H A DPdbYaml.cpp105 IO.mapOptional("MSF", Obj.Headers); in mapping()
143 IO.mapOptional("Age", Obj.Age, 1U); in mapping()
144 IO.mapOptional("Guid", Obj.Guid); in mapping()
152 IO.mapOptional("Age", Obj.Age, 1U); in mapping()
164 IO.mapRequired("Records", Obj.Records); in mapping()
169 IO.mapRequired("Records", Obj.PubSyms); in mapping()
174 IO.mapRequired("Name", Obj.StreamName); in mapping()
180 IO.mapRequired("Records", Obj.Symbols); in mapping()
184 IO.mapRequired("Module", Obj.Mod); in mapping()
185 IO.mapOptional("ObjFile", Obj.Obj, Obj.Mod); in mapping()
[all …]
H A DYAMLOutputStyle.cpp86 Obj.Headers.emplace(); in dumpFileHeaders()
94 Obj.Headers->NumStreams = in dumpFileHeaders()
114 Obj.StringTable.emplace(); in dumpStringTable()
131 Obj.StreamSizes.emplace(); in dumpStreamMetadata()
142 Obj.StreamMap.emplace(); in dumpStreamDirectory()
161 Obj.PdbStream.emplace(); in dumpPDBStream()
207 Obj.DbiStream.emplace(); in dumpDbiStream()
291 Obj.TpiStream.emplace(); in dumpTpiStream()
318 Obj.IpiStream.emplace(); in dumpIpiStream()
335 Obj.PublicsStream.emplace(); in dumpPublics()
[all …]
/llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/
H A DELFObjcopy.cpp251 switch (Obj.Machine) { in isRequiredByABISymbol()
273 if (!Obj.SymbolTable) in updateAndRemoveSymbols()
473 (Obj.SymbolTable && Obj.SymbolTable->getStrTab() == &Sec)) in replaceAndRemoveSections()
497 Obj.SymbolTable && !Obj.SymbolTable->empty()) { in replaceAndRemoveSections()
499 if (&Sec == Obj.SymbolTable || &Sec == Obj.SymbolTable->getStrTab()) in replaceAndRemoveSections()
518 Obj, in replaceAndRemoveSections()
610 [&Obj](const SectionBase &Sec) { return onlyKeepDWOPred(Obj, Sec); }); in handleArgs()
757 Obj.Entry = ELFConfig.EntryExpr(Obj.Entry); in handleArgs()
775 if (!Obj) in executeObjcopyOnIHex()
791 if (!Obj) in executeObjcopyOnRawBinary()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DSafeStackLayout.cpp56 unsigned Start = AdjustStackOffset(LastRegionEnd, Obj.Size, Obj.Alignment); in layoutObject()
57 unsigned End = Start + Obj.Size; in layoutObject()
64 << Obj.Alignment.value() << ", range " << Obj.Range in layoutObject()
67 unsigned Start = AdjustStackOffset(0, Obj.Size, Obj.Alignment); in layoutObject()
68 unsigned End = Start + Obj.Size; in layoutObject()
80 Start = AdjustStackOffset(R.End, Obj.Size, Obj.Alignment); in layoutObject()
81 End = Start + Obj.Size; in layoutObject()
127 R.Range.join(Obj.Range); in layoutObject()
132 ObjectOffsets[Obj.Handle] = End; in layoutObject()
148 for (auto &Obj : StackObjects) in computeLayout() local
[all …]
/llvm-project-15.0.7/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFWriter.cpp22 FileSize += Obj.FileHeader.AuxHeaderSize; in finalizeHeaders()
28 for (const Section &Sec : Obj.Sections) { in finalizeSections()
44 FileSize += Obj.StringTable.size(); in finalizeSymbolStringTable()
61 if (Obj.FileHeader.AuxHeaderSize) { in writeHeaders()
62 memcpy(Ptr, &Obj.OptionalFileHeader, Obj.FileHeader.AuxHeaderSize); in writeHeaders()
63 Ptr += Obj.FileHeader.AuxHeaderSize; in writeHeaders()
67 for (const Section &Sec : Obj.Sections) { in writeHeaders()
75 for (const Section &Sec : Obj.Sections) { in writeSections()
96 for (const Symbol &Sym : Obj.Symbols) { in writeSymbolStringTable()
104 memcpy(Ptr, Obj.StringTable.data(), Obj.StringTable.size()); in writeSymbolStringTable()
[all …]
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Dxcoff2yaml.cpp20 const object::XCOFFObjectFile &Obj; member in __anonc9a9e8840111::XCOFFDumper
43 YAMLObj.Header.Magic = Obj.getMagic(); in dumpHeader()
45 YAMLObj.Header.TimeStamp = Obj.getTimeStamp(); in dumpHeader()
50 Obj.is64Bit() ? Obj.getNumberOfSymbolTableEntries64() in dumpHeader()
53 YAMLObj.Header.Flags = Obj.getFlags(); in dumpHeader()
57 if (Obj.is64Bit()) in dumpSections()
59 Obj.sections64()); in dumpSections()
61 Obj.sections32()); in dumpSections()
84 Obj.getSectionContents(SectionDRI); in dumpSections()
112 for (const SymbolRef &S : Obj.symbols()) { in dumpSymbols()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DMachODumper.cpp32 : ObjDumper(Writer, Obj->getFileName()), Obj(Obj) {} in MachODumper()
76 const MachOObjectFile *Obj; member in __anoncc82347d0111::MachODumper
345 if (!Obj->is64Bit()) { in getSection()
374 if (!Obj->is64Bit()) { in getSegment()
406 if (!Obj->is64Bit()) { in getSymbol()
425 if (!Obj->is64Bit()) { in printFileHeaders()
500 if (Obj->is64Bit()) in printSectionHeaders()
572 if (SecI != Obj->section_end()) in printRelocation()
624 return Obj->is64Bit() in getSymbolType()
684 if (SecI != Obj->section_end()) in printSymbol()
[all …]
H A DCOFFDumper.cpp83 : ObjDumper(Writer, Obj->getFileName()), Obj(Obj), Writer(Writer), in COFFDumper()
205 Sec = Obj->getCOFFSection(SR); in COFFObjectDumpDelegate()
262 auto SymI = Obj->symbol_end(); in resolveSymbol()
271 if (SymI == Obj->symbol_end()) in resolveSymbol()
792 if (Obj->is64()) in printCOFFLoadConfig()
1008 Obj->getFileName()); in printCodeViewSymbolSection()
1452 SymbolIndex = Obj->getSymbolIndex(Obj->getCOFFSymbol(*Symbol)); in printRelocation()
1605 switch (Obj->getMachine()) { in printUnwindInfo()
1802 Error E = RSF.load(Obj, S); in printCOFFResources()
1939 if (Obj->isLittleEndian()) in printStackMap()
[all …]
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOI386.h37 const MachOObjectFile &Obj = in processRelocationRef() local
40 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef()
41 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef()
43 if (Obj.isRelocationScattered(RelInfo)) { in processRelocationRef()
148 const MachOObjectFile &Obj = in processSECTDIFFRelocation() local
151 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSECTDIFFRelocation()
154 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processSECTDIFFRelocation()
155 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processSECTDIFFRelocation()
156 unsigned Size = Obj.getAnyRelocationLength(RE); in processSECTDIFFRelocation()
164 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSECTDIFFRelocation()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A DELFDump.cpp59 const ELFFile<ELFT> &EF = Obj->getELFFile(); in getRelocationValueString()
78 const typename ELFT::Rel *ERel = Obj->getRel(Rel); in getRelocationValueString()
92 Obj->getSymbol(SI->getRawDataRefImpl()); in getRelocationValueString()
133 if (auto *ELF32LE = dyn_cast<ELF32LEObjectFile>(Obj)) in getELFRelocationValueString()
135 if (auto *ELF64LE = dyn_cast<ELF64LEObjectFile>(Obj)) in getELFRelocationValueString()
137 if (auto *ELF32BE = dyn_cast<ELF32BEObjectFile>(Obj)) in getELFRelocationValueString()
139 auto *ELF64BE = cast<ELF64BEObjectFile>(Obj); in getELFRelocationValueString()
144 static uint64_t getSectionLMA(const ELFFile<ELFT> &Obj, in getSectionLMA() argument
146 auto PhdrRangeOrErr = Obj.program_headers(); in getSectionLMA()
216 auto ProgramHeaderOrError = Obj.program_headers(); in printProgramHeaders()
[all …]
/llvm-project-15.0.7/clang/unittests/Basic/
H A DDarwinSDKInfoTest.cpp64 llvm::json::Object Obj({}); in TEST() local
71 llvm::json::Object Obj({{"test", "1.2"}}); in TEST() local
78 llvm::json::Object Obj; in TEST() local
79 Obj["Version"] = "11.0"; in TEST()
80 Obj["MaximumDeploymentTarget"] = "11.99"; in TEST()
123 llvm::json::Object Obj; in TEST() local
124 Obj["Version"] = "15.0"; in TEST()
125 Obj["MaximumDeploymentTarget"] = "15.0.99"; in TEST()
132 Obj["VersionMap"] = std::move(IOSToTvOS); in TEST()
168 llvm::json::Object Obj; in TEST() local
[all …]
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DObjectFileInterface.cpp43 for (auto &Sym : Obj.symbols()) { in getMachOObjectFileSymbolInfo()
78 for (auto &Sec : Obj.sections()) { in getMachOObjectFileSymbolInfo()
79 auto SecType = Obj.getSectionType(Sec); in getMachOObjectFileSymbolInfo()
100 for (auto &Sym : Obj.symbols()) { in getELFObjectFileSymbolInfo()
137 for (auto &Sec : Obj.sections()) { in getELFObjectFileSymbolInfo()
154 Obj.getNumberOfSections() + 1); in getCOFFObjectFileSymbolInfo()
155 for (auto &Sym : Obj.symbols()) { in getCOFFObjectFileSymbolInfo()
162 auto COFFSym = Obj.getCOFFSymbol(Sym); in getCOFFObjectFileSymbolInfo()
227 for (auto &Sym : Obj.symbols()) { in getGenericObjectFileSymbolInfo()
266 if (!Obj) in getObjectFileInterface()
[all …]
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DCOFFEmitter.cpp38 : Obj(Obj), SectionTableStart(0), SectionTableSize(0), ErrHandler(EH) { in COFFParser()
68 for (COFFYAML::Section &Sec : Obj.Sections) { in parseSections()
103 for (COFFYAML::Symbol &Sym : Obj.Symbols) { in parseSymbols()
142 COFFYAML::Object &Obj; member
165 CP.Obj.Header.SizeOfOptionalHeader = in layoutOptionalHeader()
211 for (COFFYAML::Section &S : CP.Obj.Sections) { in layoutCOFF()
295 CP.Obj.Header.NumberOfSections = CP.Obj.Sections.size(); in layoutCOFF()
300 CP.Obj.Header.PointerToSymbolTable = 0; in layoutCOFF()
426 << binary_le(CP.Obj.Header.Machine) in writeCOFF()
434 OS << binary_le(CP.Obj.Header.Machine) in writeCOFF()
[all …]
H A DXCOFFEmitter.cpp36 : Obj(Obj), W(OS, support::big), ErrHandler(EH), in XCOFFWriter()
68 XCOFFYAML::Object &Obj; member in __anon7d28c6690111::XCOFFWriter
162 if (Obj.StrTbl.Strings || Obj.StrTbl.Length) { in initStringTable()
167 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize < RawSize) { in initStringTable()
175 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize <= 3) { in initStringTable()
223 if (Obj.StrTbl.ContentSize && *Obj.StrTbl.ContentSize < StrTblSize) { in initStringTable()
326 if (Obj.AuxHeader) in assignAddressesAndIndices()
346 if (Obj.AuxHeader) in assignAddressesAndIndices()
727 if (!Obj.StrTbl.Length && !Obj.StrTbl.ContentSize) { in writeStringTable()
742 support::endian::write32be(Ptr, Obj.StrTbl.Length ? *Obj.StrTbl.Length in writeStringTable()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DIntrusiveRefCntPtr.h169 T *Obj = nullptr; variable
176 IntrusiveRefCntPtr(const IntrusiveRefCntPtr &S) : Obj(S.Obj) { retain(); } in IntrusiveRefCntPtr()
177 IntrusiveRefCntPtr(IntrusiveRefCntPtr &&S) : Obj(S.Obj) { S.Obj = nullptr; } in IntrusiveRefCntPtr()
182 S.Obj = nullptr; in IntrusiveRefCntPtr()
200 T *get() const { return Obj; } in get()
204 T *tmp = other.Obj; in swap()
205 other.Obj = Obj; in swap()
206 Obj = tmp; in swap()
211 Obj = nullptr; in reset()
218 if (Obj) in retain()
[all …]
/llvm-project-15.0.7/llvm/lib/IR/
H A DUser.cpp139 Obj->NumUserOperands = Us; in allocateFixedOperandUser()
140 Obj->HasHungOffUses = false; in allocateFixedOperandUser()
141 Obj->HasDescriptor = DescBytes != 0; in allocateFixedOperandUser()
143 new (Start) Use(Obj); in allocateFixedOperandUser()
150 return Obj; in allocateFixedOperandUser()
166 Obj->NumUserOperands = 0; in operator new()
167 Obj->HasHungOffUses = true; in operator new()
168 Obj->HasDescriptor = false; in operator new()
170 return Obj; in operator new()
183 if (Obj->HasHungOffUses) { in operator delete()
[all …]

12345678910>>...14