| /freebsd/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 | 93 } Contents; variable 106 SDep(SUnit *S, Kind kind, Register Reg) : Dep(S, kind), Contents() { in SDep() 113 Contents.Reg = Reg.id(); in SDep() 117 Contents.Reg = Reg.id(); 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.OrdKind == MustAliasMem; in isMustAlias() [all …]
|
| /freebsd/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/contrib/llvm-project/clang/include/clang/Tooling/DependencyScanning/ |
| H A D | DependencyScanningFilesystem.h | 33 CachedFileContents(std::unique_ptr<llvm::MemoryBuffer> Contents) in CachedFileContents() 34 : Original(std::move(Contents)), DepDirectives(nullptr) {} in CachedFileContents() 66 : MaybeStat(std::move(Stat)), Contents(nullptr) { in CachedFileSystemEntry() 72 CachedFileContents *Contents) in CachedFileSystemEntry() argument 73 : MaybeStat(std::move(Stat)), Contents(std::move(Contents)) { in CachedFileSystemEntry() 87 assert(Contents && "contents not initialized"); in getOriginalContents() 88 return Contents->Original->getBuffer(); in getOriginalContents() 97 assert(Contents && "contents not initialized"); in getDirectiveTokens() 98 if (auto *Directives = Contents->DepDirectives.load()) { in getDirectiveTokens() 125 return Contents; in getCachedContents() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AccelTable.cpp | 82 const AccelTableBase &Contents; ///< Data to emit. member in __anon2660ec280311::AccelTableWriter 96 AccelTableWriter(AsmPrinter *Asm, const AccelTableBase &Contents, in AccelTableWriter() argument 98 : Asm(Asm), Contents(Contents), SkipIdenticalHashes(SkipIdenticalHashes) { in AccelTableWriter() 155 AppleAccelTableWriter(AsmPrinter *Asm, const AccelTableBase &Contents, in AppleAccelTableWriter() argument 157 : AccelTableWriter(Asm, Contents, true), in AppleAccelTableWriter() 158 Header(Contents.getBucketCount(), Contents.getUniqueHashCount(), in AppleAccelTableWriter() 234 AsmPrinter *Asm, const AccelTableBase &Contents, 252 for (const auto &Bucket : Contents.getBuckets()) { in emitHashes() 266 const auto &Buckets = Contents.getBuckets(); in emitOffsets() 310 const auto &Buckets = Contents.getBuckets(); in emitBuckets() [all …]
|
| /freebsd/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/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | MachineRegisterInfo.cpp | 284 MO->Contents.Reg.Prev = MO; in addRegOperandToUseList() 285 MO->Contents.Reg.Next = nullptr; in addRegOperandToUseList() 292 MachineOperand *Last = Head->Contents.Reg.Prev; in addRegOperandToUseList() 295 Head->Contents.Reg.Prev = MO; in addRegOperandToUseList() 296 MO->Contents.Reg.Prev = Last; in addRegOperandToUseList() 302 MO->Contents.Reg.Next = Head; in addRegOperandToUseList() 306 MO->Contents.Reg.Next = nullptr; in addRegOperandToUseList() 307 Last->Contents.Reg.Next = MO; in addRegOperandToUseList() 319 MachineOperand *Next = MO->Contents.Reg.Next; in removeRegOperandFromUseList() 320 MachineOperand *Prev = MO->Contents.Reg.Prev; in removeRegOperandFromUseList() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCSection.cpp | 85 void MCEncodedFragment::setContents(ArrayRef<char> Contents) { in setContents() argument 87 if (Contents.size() > ContentSize) { in setContents() 89 S.resize_for_overwrite(S.size() + Contents.size()); in setContents() 91 ContentSize = Contents.size(); in setContents() 92 llvm::copy(Contents, S.begin() + ContentStart); in setContents()
|
| H A D | MCFragment.cpp | 92 auto Contents = F->getContents(); in dump() local 93 OS << " Size:" << Contents.size() << " ["; in dump() 94 for (unsigned i = 0, e = Contents.size(); i != e; ++i) { in dump() 96 OS << format("%02x", uint8_t(Contents[i])); in dump()
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/DependencyScanning/ |
| H A D | DependencyScanningFilesystem.cpp | 50 CachedFileContents *Contents = Entry.getCachedContents(); in ensureDirectiveTokensArePopulated() local 51 assert(Contents && "contents not initialized"); in ensureDirectiveTokensArePopulated() 54 if (Contents->DepDirectives.load()) in ensureDirectiveTokensArePopulated() 57 std::lock_guard<std::mutex> GuardLock(Contents->ValueLock); in ensureDirectiveTokensArePopulated() 60 if (Contents->DepDirectives.load()) in ensureDirectiveTokensArePopulated() 66 if (scanSourceForDependencyDirectives(Contents->Original->getBuffer(), in ensureDirectiveTokensArePopulated() 67 Contents->DepDirectiveTokens, in ensureDirectiveTokensArePopulated() 69 Contents->DepDirectiveTokens.clear(); in ensureDirectiveTokensArePopulated() 71 Contents->DepDirectives.store(new std::optional<DependencyDirectivesTy>()); in ensureDirectiveTokensArePopulated() 79 Contents->DepDirectives.store( in ensureDirectiveTokensArePopulated() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | Win64EHDumper.cpp | 400 ArrayRef<uint8_t> Contents; in printRuntimeFunction() local 401 if (Error E = Ctx.COFF.getSectionContents(XData, Contents)) in printRuntimeFunction() 404 if (Contents.empty()) in printRuntimeFunction() 407 if (Offset > Contents.size()) in printRuntimeFunction() 410 const auto UI = reinterpret_cast<const UnwindInfo*>(Contents.data() + Offset); in printRuntimeFunction() 426 ArrayRef<uint8_t> Contents; in printData() local 428 if (Error E = Ctx.COFF.getSectionContents(PData, Contents)) in printData() 430 if (Contents.empty()) in printData() 434 reinterpret_cast<const RuntimeFunction *>(Contents.data()); in printData() 435 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/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 | 34 Error extractOffloadFiles(MemoryBufferRef Contents, in extractOffloadFiles() argument 38 while (Offset < Contents.getBuffer().size()) { in extractOffloadFiles() 40 MemoryBuffer::getMemBuffer(Contents.getBuffer().drop_front(Offset), "", in extractOffloadFiles() 54 Contents.getBufferIdentifier()); in extractOffloadFiles() 91 MemoryBufferRef Contents(*Buffer, Obj.getFileName()); in extractFromObject() local 92 if (Error Err = extractOffloadFiles(Contents, Binaries)) in extractFromObject() 133 MemoryBufferRef Contents(CDS->getAsString(), M->getName()); in extractFromBitcode() local 134 if (Error Err = extractOffloadFiles(Contents, Binaries)) in extractFromBitcode()
|
| /freebsd/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/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 llvm::copy(Contents, Buf->getBufferStart()); in dumpSectionToFile() 135 Sec.Contents = ArrayRef<uint8_t>( in handleArgs()
|
| H A D | WasmWriter.cpp | 28 SectionSize = S.Contents.size(); in createSectionHeader() 71 Out.write(reinterpret_cast<const char *>(Obj.Sections[I].Contents.data()), in write() 72 Obj.Sections[I].Contents.size()); in write()
|
| /freebsd/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/contrib/llvm-project/llvm/tools/llvm-strings/ |
| H A D | llvm-strings.cpp | 91 static void strings(raw_ostream &OS, StringRef FileName, StringRef Contents) { in strings() argument 113 const char *B = Contents.begin(); in strings() 115 for (P = Contents.begin(), E = Contents.end(); P < E; ++P) { in strings()
|
| /freebsd/contrib/llvm-project/llvm/lib/ToolDrivers/llvm-dlltool/ |
| H A D | DlltoolDriver.cpp | 243 StringRef Contents = *ContentsOrErr; in identifyImportName() local 244 Contents = Contents.substr(0, Contents.find('\0')); in identifyImportName() 245 if (Contents.empty()) in identifyImportName() 247 Names.push_back(Contents); in identifyImportName()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | JSON.h | 1020 void array(Block Contents) { in array() argument 1022 Contents(); in array() 1026 void object(Block Contents) { in object() argument 1028 Contents(); in object() 1034 void rawValue(llvm::function_ref<void(raw_ostream &)> Contents) { in rawValue() argument 1036 Contents(OS); in rawValue() 1039 void rawValue(llvm::StringRef Contents) { in rawValue() argument 1040 rawValue([&](raw_ostream &OS) { OS << Contents; }); in rawValue() 1051 void attribute(llvm::StringRef Key, const Value& Contents) { in attribute() argument 1052 attributeImpl(Key, [&] { value(Contents); }); in attribute() [all …]
|
| /freebsd/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/contrib/llvm-project/llvm/lib/CGData/ |
| H A D | CodeGenDataReader.cpp | 51 const StringRef &Contents) { in mergeFromObjectFile() argument 55 *CombinedHash = stable_hash_combine(*CombinedHash, xxh3_64bits(Contents)); in mergeFromObjectFile() 56 auto *Data = reinterpret_cast<const unsigned char *>(Contents.data()); in mergeFromObjectFile() 57 auto *EndData = Data + Contents.size(); in mergeFromObjectFile()
|
| /freebsd/contrib/llvm-project/llvm/lib/DWP/ |
| H A D | DWP.cpp | 333 SectionRef Sec, StringRef Name, StringRef &Contents) { in handleCompressedSection() argument 342 Expected<Decompressor> Dec = Decompressor::create(Name, Contents, IsLE, Is64); in handleCompressedSection() 350 Contents = UncompressedSections.back(); in handleCompressedSection() 580 StringRef Contents = *ContentsOrErr; in handleSection() local 583 Contents)) in handleSection() 594 SectionLength.push_back(std::make_pair(Kind, Contents.size())); in handleSection() 598 AbbrevSection = Contents; in handleSection() 604 CurStrOffsetSection = Contents; in handleSection() 606 CurStrSection = Contents; in handleSection() 608 CurTypesSection.push_back(Contents); in handleSection() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
| H A D | MasmParser.cpp | 207 FieldInitializer Contents; member 209 FieldInfo(FieldType FT) : Contents(FT) {} in FieldInfo() 814 const IntFieldInfo &Contents, 817 const RealFieldInfo &Contents, 820 const StructFieldInfo &Contents, 830 bool emitFieldValue(const FieldInfo &Field, const IntFieldInfo &Contents); 831 bool emitFieldValue(const FieldInfo &Field, const RealFieldInfo &Contents); 832 bool emitFieldValue(const FieldInfo &Field, const StructFieldInfo &Contents); 837 const IntFieldInfo &Contents, 840 const RealFieldInfo &Contents, [all …]
|