| /freebsd-src/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
| H A D | MachineOperand.h | 205 } Contents; variable 212 static_assert(sizeof(Contents) <= 2 * sizeof(void *), in MachineOperand() 558 return Contents.ImmVal; in getImm() 563 return Contents.CI; in getCImm() 568 return Contents.CFP; in getFPImm() 573 return Contents.MBB; in getMBB() 579 return Contents.OffsetedInfo.Val.Index; in getIndex() 584 return Contents.OffsetedInfo.Val.GV; in getGlobal() 589 return Contents.OffsetedInfo.Val.BA; in getBlockAddress() 594 return Contents.Sym; in getMCSymbol() [all …]
|
| H A D | ScheduleDAG.h | 91 } Contents; variable 105 : Dep(S, kind), Contents() { in SDep() 113 Contents.Reg = Reg; in SDep() 117 Contents.Reg = Reg; in SDep() 124 : Dep(S, Order), Contents(), Latency(0) { in SDep() 125 Contents.OrdKind = kind; in SDep() 169 return getKind() == Order && (Contents.OrdKind == MayAliasMem in isNormalMemory() 170 || Contents.OrdKind == MustAliasMem); in isNormalMemory() 175 return getKind() == Order && Contents.OrdKind == Barrier; in isBarrier() 187 return getKind() == Order && Contents in isMustAlias() [all...] |
| /freebsd-src/contrib/llvm-project/clang/include/clang/Tooling/DependencyScanning/ |
| H A D | DependencyScanningFilesystem.h | 29 /// Contents and directive tokens of a cached file entry. Single instance can 32 CachedFileContents(std::unique_ptr<llvm::MemoryBuffer> Contents) in CachedFileContents() 33 : Original(std::move(Contents)), DepDirectives(nullptr) {} in CachedFileContents() 65 : MaybeStat(std::move(Stat)), Contents(nullptr) { in CachedFileSystemEntry() 71 CachedFileContents *Contents) in CachedFileSystemEntry() argument 72 : MaybeStat(std::move(Stat)), Contents(std::move(Contents)) { in CachedFileSystemEntry() 86 assert(Contents && "contents not initialized"); in getOriginalContents() 87 return Contents->Original->getBuffer(); in getOriginalContents() 96 assert(Contents in getDirectiveTokens() 142 CachedFileContents *Contents; global() variable 325 std::unique_ptr<llvm::MemoryBuffer> Contents; global() member [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/ |
| H A D | DebugSubsectionRecord.cpp | 56 const DebugSubsectionRecord &Contents) in DebugSubsectionRecordBuilder() argument 57 : Contents(Contents) {} in DebugSubsectionRecordBuilder() 61 : Contents.getRecordData().getLength(); in calculateSerializedLength() 73 Header.Kind = uint32_t(Subsection ? Subsection->kind() : Contents.kind()); in commit() 77 : Contents.getRecordData().getLength(); in commit() 86 if (auto EC = Writer.writeStreamRef(Contents.getRecordData())) in commit()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AccelTable.cpp | 83 const AccelTableBase &Contents; ///< Data to emit. in finalize() 97 AccelTableWriter(AsmPrinter *Asm, const AccelTableBase &Contents, 99 : Asm(Asm), Contents(Contents), SkipIdenticalHashes(SkipIdenticalHashes) { 156 AppleAccelTableWriter(AsmPrinter *Asm, const AccelTableBase &Contents, in dump() 158 : AccelTableWriter(Asm, Contents, true), 159 Header(Contents.getBucketCount(), Contents.getUniqueHashCount(), 235 AsmPrinter *Asm, const AccelTableBase &Contents, 253 for (const auto &Bucket : Contents 95 const AccelTableBase &Contents; ///< Data to emit. global() member in __anonf9eed33a0311::AccelTableWriter 109 AccelTableWriter(AsmPrinter * Asm,const AccelTableBase & Contents,bool SkipIdenticalHashes) AccelTableWriter() argument 168 AppleAccelTableWriter(AsmPrinter * Asm,const AccelTableBase & Contents,ArrayRef<Atom> Atoms,const MCSymbol * SecBegin) AppleAccelTableWriter() argument 637 Dwarf5AccelTableWriter(AsmPrinter * Asm,const AccelTableBase & Contents,ArrayRef<std::variant<MCSymbol *,uint64_t>> CompUnits,ArrayRef<std::variant<MCSymbol *,uint64_t>> TypeUnits,llvm::function_ref<std::optional<DWARF5AccelTable::UnitIndexAndEncoding> (const DWARF5AccelTableData &)> getIndexForEntry,bool IsSplitDwarf) Dwarf5AccelTableWriter() argument 674 emitAppleAccelTableImpl(AsmPrinter * Asm,AccelTableBase & Contents,StringRef Prefix,const MCSymbol * SecBegin,ArrayRef<AppleAccelTableData::Atom> Atoms) emitAppleAccelTableImpl() argument 682 emitDWARF5AccelTable(AsmPrinter * Asm,DWARF5AccelTable & Contents,const DwarfDebug & DD,ArrayRef<std::unique_ptr<DwarfCompileUnit>> CUs) emitDWARF5AccelTable() argument 750 emitDWARF5AccelTable(AsmPrinter * Asm,DWARF5AccelTable & Contents,ArrayRef<std::variant<MCSymbol *,uint64_t>> CUs,llvm::function_ref<std::optional<DWARF5AccelTable::UnitIndexAndEncoding> (const DWARF5AccelTableData &)> getIndexForEntry) emitDWARF5AccelTable() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/ |
| H A D | CSKYELFStreamer.h | 31 SmallVector<AttributeItem, 64> Contents; variable 36 for (size_t i = 0; i < Contents.size(); ++i) in getAttributeItem() 37 if (Contents[i].Tag == Attribute) in getAttributeItem() 38 return &Contents[i]; in getAttributeItem() 54 Contents.push_back({AttributeType::Numeric, Attribute, Value, ""}); in setAttributeItem() 69 Contents.push_back({AttributeType::Text, Attribute, 0, std::string(Value)}); in setAttributeItem() 85 Contents.push_back({AttributeType::NumericAndText, Attribute, IntValue, in setAttributeItems()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineRegisterInfo.cpp | 287 MO->Contents.Reg.Prev = MO; in addRegOperandToUseList() 288 MO->Contents.Reg.Next = nullptr; in addRegOperandToUseList() 295 MachineOperand *Last = Head->Contents.Reg.Prev; in addRegOperandToUseList() 298 Head->Contents.Reg.Prev = MO; in addRegOperandToUseList() 299 MO->Contents.Reg.Prev = Last; in addRegOperandToUseList() 305 MO->Contents.Reg.Next = Head; in removeRegOperandFromUseList() 309 MO->Contents.Reg.Next = nullptr; in removeRegOperandFromUseList() 310 Last->Contents.Reg.Next = MO; in removeRegOperandFromUseList() 322 MachineOperand *Next = MO->Contents.Reg.Next; in removeRegOperandFromUseList() 323 MachineOperand *Prev = MO->Contents in removeRegOperandFromUseList() [all...] |
| /freebsd-src/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/ |
| H A D | DependencyScanningFilesystem.cpp | 51 CachedFileContents *Contents = Entry.getCachedContents(); in scanForDirectivesIfNecessary() 52 assert(Contents && "contents not initialized"); in scanForDirectivesIfNecessary() 55 if (Contents->DepDirectives.load()) in scanForDirectivesIfNecessary() 58 std::lock_guard<std::mutex> GuardLock(Contents->ValueLock); in scanForDirectivesIfNecessary() 61 if (Contents->DepDirectives.load()) in scanForDirectivesIfNecessary() 67 if (scanSourceForDependencyDirectives(Contents->Original->getBuffer(), in scanForDirectivesIfNecessary() 68 Contents->DepDirectiveTokens, in scanForDirectivesIfNecessary() 70 Contents->DepDirectiveTokens.clear(); in scanForDirectivesIfNecessary() 72 Contents->DepDirectives.store(new std::optional<DependencyDirectivesTy>()); in scanForDirectivesIfNecessary() 80 Contents in scanForDirectivesIfNecessary() 50 CachedFileContents *Contents = Entry.getCachedContents(); scanForDirectivesIfNecessary() local 142 getOrEmplaceEntryForUID(llvm::sys::fs::UniqueID UID,llvm::vfs::Status Stat,std::unique_ptr<llvm::MemoryBuffer> Contents) getOrEmplaceEntryForUID() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/ObjCopy/wasm/ |
| H A D | WasmObjcopy.cpp | 44 ArrayRef<uint8_t> Contents = Sec.Contents; in dumpSectionToFile() local 46 FileOutputBuffer::create(Filename, Contents.size()); in dumpSectionToFile() 50 std::copy(Contents.begin(), Contents.end(), Buf->getBufferStart()); in dumpSectionToFile() 134 Sec.Contents = ArrayRef<uint8_t>( in handleArgs()
|
| H A D | WasmWriter.cpp | 29 SectionSize = S.Contents.size(); in createSectionHeader() 73 Out.write(reinterpret_cast<const char *>(Obj.Sections[I].Contents.data()), in write() 74 Obj.Sections[I].Contents.size()); in write()
|
| /freebsd-src/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | Win64EHDumper.cpp | 378 ArrayRef<uint8_t> Contents; in printRuntimeFunction() local 379 if (Error E = Ctx.COFF.getSectionContents(XData, Contents)) in printRuntimeFunction() 382 if (Contents.empty()) in printRuntimeFunction() 385 if (Offset > Contents.size()) in printRuntimeFunction() 388 const auto UI = reinterpret_cast<const UnwindInfo*>(Contents.data() + Offset); in printRuntimeFunction() 404 ArrayRef<uint8_t> Contents; in printData() local 406 if (Error E = Ctx.COFF.getSectionContents(PData, Contents)) in printData() 408 if (Contents.empty()) in printData() 412 reinterpret_cast<const RuntimeFunction *>(Contents.data()); in printData() 413 const size_t Count = Contents.size() / sizeof(RuntimeFunction); in printData()
|
| H A D | ARMEHABIPrinter.h | 450 Expected<ArrayRef<uint8_t>> Contents = ELF.getSectionContents(EHT); in PrintExceptionTable() local 451 if (!Contents) in PrintExceptionTable() 478 *reinterpret_cast<const support::ulittle32_t *>(Contents->data() + TableEntryOffset); in PrintExceptionTable() 488 PrintOpcodes(Contents->data() + TableEntryOffset, 3, 1); in PrintExceptionTable() 493 PrintOpcodes(Contents->data() + TableEntryOffset, 2 + 4 * AdditionalWords, in PrintExceptionTable() 522 Expected<ArrayRef<uint8_t>> Contents = ELF.getSectionContents(*IT); in PrintIndexTable() local 523 if (!Contents) in PrintIndexTable() 537 reinterpret_cast<const support::ulittle32_t *>(Contents->data()); in PrintIndexTable() 593 PrintOpcodes(Contents->data() + Entry * IndexTableEntrySize + 4, 3, 1); in PrintIndexTable()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCFragment.cpp | 151 OS << " Contents:["; 152 const SmallVectorImpl<char> &Contents = DF->getContents(); in getSymbolOffset() 153 for (unsigned i = 0, e = Contents.size(); i != e; ++i) { in getSymbolOffset() 155 OS << hexdigit((Contents[i] >> 4) & 0xF) << hexdigit(Contents[i] & 0xF); 157 OS << "] (" << Contents.size() << " bytes)"; in getSymbolOffset() 175 OS << " Contents:["; in getBaseSymbol() 176 const SmallVectorImpl<char> &Contents = CEIF->getContents(); in getBaseSymbol() 177 for (unsigned i = 0, e = Contents.size(); i != e; ++i) { in getBaseSymbol() 179 OS << hexdigit((Contents[ in getBaseSymbol() 388 const SmallVectorImpl<char> &Contents = DF->getContents(); dump() local 412 const SmallVectorImpl<char> &Contents = CEIF->getContents(); dump() local [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/ObjCopy/COFF/ |
| H A D | COFFObjcopy.cpp | 61 static void addSection(Object &Obj, StringRef Name, ArrayRef<uint8_t> Contents, in addSection() argument 67 Sec.setOwnedContents(Contents); in addSection() 86 Expected<std::vector<uint8_t>> Contents = in addGnuDebugLink() local 88 if (!Contents) in addGnuDebugLink() 89 return Contents.takeError(); in addGnuDebugLink() 91 addSection(Obj, ".gnu_debuglink", *Contents, in addGnuDebugLink() 139 ArrayRef<uint8_t> Contents = Section.getContents(); in dumpSection() local 142 if (auto B = FileOutputBuffer::create(FileName, Contents.size())) in dumpSection() 147 llvm::copy(Contents, Buffer->getBufferStart()); in dumpSection()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Object/ |
| H A D | IRObjectFile.cpp | 76 Expected<StringRef> Contents = Sec.getContents(); in findBitcodeInObject() local 77 if (!Contents) in findBitcodeInObject() 78 return Contents.takeError(); in findBitcodeInObject() 79 if (Contents->size() <= 1) in findBitcodeInObject() 81 return MemoryBufferRef(*Contents, Obj.getFileName()); in findBitcodeInObject()
|
| H A D | OffloadBinary.cpp | 35 /// buffer \p Contents. The buffer is expected to contain a valid offloading 37 Error extractOffloadFiles(MemoryBufferRef Contents, in extractOffloadFiles() argument 41 while (Offset < Contents.getBuffer().size()) { in extractOffloadFiles() 43 MemoryBuffer::getMemBuffer(Contents.getBuffer().drop_front(Offset), "", in extractOffloadFiles() 57 Contents.getBufferIdentifier()); in extractOffloadFiles() 94 MemoryBufferRef Contents(*Buffer, Obj.getFileName()); in extractFromObject() local 95 if (Error Err = extractOffloadFiles(Contents, Binaries)) in extractFromObject() 136 MemoryBufferRef Contents(CDS->getAsString(), M->getName()); in extractFromBitcode() local 137 if (Error Err = extractOffloadFiles(Contents, Binaries)) in extractFromBitcode()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/XRay/ |
| H A D | InstrumentationMap.cpp | 72 StringRef Contents = ""; in loadObj() local 90 if (Error E = I->getContents().moveInto(Contents)) in loadObj() 146 auto C = Contents.bytes_begin(); in loadObj() 150 if ((C - Contents.bytes_end()) % ELFSledEntrySize != 0) in loadObj() 158 uint64_t A = I->getAddress() + C - Contents.bytes_begin() + Offset; in loadObj() 169 for (; C != Contents.bytes_end(); C += ELFSledEntrySize) { in loadObj() 199 Entry.Address += C - Contents.bytes_begin() + Address; in loadObj() 200 Entry.Function += C - Contents.bytes_begin() + WordSize + Address; in loadObj()
|
| /freebsd-src/contrib/llvm-project/llvm/tools/llvm-strings/ |
| H A D | llvm-strings.cpp | 89 static void strings(raw_ostream &OS, StringRef FileName, StringRef Contents) { in strings() argument 111 const char *B = Contents.begin(); in strings() 113 for (P = Contents.begin(), E = Contents.end(); P < E; ++P) { in strings()
|
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | JSON.h | 1003 void array(Block Contents) { in array() 1005 Contents(); in array() 1009 void object(Block Contents) { in object() 1011 Contents(); in object() 1017 void rawValue(llvm::function_ref<void(raw_ostream &)> Contents) { in rawValue() 1019 Contents(OS); in rawValue() 1022 void rawValue(llvm::StringRef Contents) { in rawValue() 1023 rawValue([&](raw_ostream &OS) { OS << Contents; }); 1034 void attribute(llvm::StringRef Key, const Value& Contents) { in attribute() 1035 attributeImpl(Key, [&] { value(Contents); }); 1001 array(Block Contents) array() argument 1007 object(Block Contents) object() argument 1015 rawValue(llvm::function_ref<void (raw_ostream &)> Contents) rawValue() argument 1020 rawValue(llvm::StringRef Contents) rawValue() argument 1032 attribute(llvm::StringRef Key,const Value & Contents) attribute() argument 1036 attributeArray(llvm::StringRef Key,Block Contents) attributeArray() argument 1040 attributeObject(llvm::StringRef Key,Block Contents) attributeObject() argument 1057 attributeImpl(llvm::StringRef Key,Block Contents) attributeImpl() argument [all...] |
| H A D | VirtualFileSystem.h | 326 enum class PrintType { Summary, Contents, RecursiveContents }; 327 void print(raw_ostream &OS, PrintType Type = PrintType::Contents, 809 std::vector<std::unique_ptr<Entry>> Contents; in contents_begin() 814 DirectoryEntry(StringRef Name, std::vector<std::unique_ptr<Entry>> Contents, 816 : Entry(EK_Directory, Name), Contents(std::move(Contents)), 826 Contents.push_back(std::move(Content)); 829 Entry *getLastContent() const { return Contents.back().get(); } 831 using iterator = decltype(Contents)::iterator; in useExternalName() 833 iterator contents_begin() { return Contents in useExternalName() 321 enum class PrintType { Summary, Contents, RecursiveContents }; global() enumerator 785 std::vector<std::unique_ptr<Entry>> Contents; global() variable 790 DirectoryEntry(StringRef Name,std::vector<std::unique_ptr<Entry>> Contents,Status S) DirectoryEntry() argument [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/ |
| H A D | XCOFFWriter.cpp | 30 FileSize += Sec.Contents.size(); in finalizeSections() 78 Ptr = std::copy(Sec.Contents.begin(), Sec.Contents.end(), Ptr); in writeSections()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/DWP/ |
| H A D | DWP.cpp | 336 SectionRef Sec, StringRef Name, StringRef &Contents) { in handleCompressedSection() argument 345 Expected<Decompressor> Dec = Decompressor::create(Name, Contents, IsLE, Is64); in handleCompressedSection() 353 Contents = UncompressedSections.back(); in handleCompressedSection() 583 StringRef Contents = *ContentsOrErr; in handleSection() 586 Contents)) in handleSection() 597 SectionLength.push_back(std::make_pair(Kind, Contents.size())); in handleSection() 601 AbbrevSection = Contents; in write() 607 CurStrOffsetSection = Contents; in write() 609 CurStrSection = Contents; in write() 611 CurTypesSection.push_back(Contents); in write() 559 StringRef Contents = *ContentsOrErr; handleSection() local [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Remarks/ |
| H A D | RemarkLinker.cpp | 51 if (Expected<StringRef> Contents = Section.getContents()) in getRemarksSectionContents() local 52 return *Contents; in getRemarksSectionContents() 54 return Contents.takeError(); in getRemarksSectionContents()
|
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | DebugSubsectionRecord.h | 58 DebugSubsectionRecordBuilder(const DebugSubsectionRecord &Contents); 69 DebugSubsectionRecord Contents; variable
|
| /freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | EPCGenericRTDyldMemoryManager.cpp | 74 alignAddr(Seg.back().Contents.get(), Align(Alignment))); in allocateCodeSection() 93 alignAddr(Seg.back().Contents.get(), Align(Alignment))); in allocateDataSection() 250 alignAddr(SecAlloc.Contents.get(), Align(SecAlloc.Align))), in finalizeMemory() 300 dbgs() << " " << static_cast<void *>(Alloc.Contents.get()) << " -> " in mapAllocsToRemoteAddrs() 304 Alloc.Contents.get(), Align(Alloc.Align))), in mapAllocsToRemoteAddrs()
|