Home
last modified time | relevance | path

Searched refs:CurrentOffset (Results 1 – 25 of 27) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/XRay/
H A DProfile.cpp53 uint64_t CurrentOffset = Offset; in readBlockHeader() local
55 if (Offset == CurrentOffset) in readBlockHeader()
58 Twine(CurrentOffset) + "'", in readBlockHeader()
60 CurrentOffset = Offset; in readBlockHeader()
62 if (Offset == CurrentOffset) in readBlockHeader()
65 Twine(CurrentOffset) + "'", in readBlockHeader()
67 CurrentOffset = Offset; in readBlockHeader()
69 if (Offset == CurrentOffset) in readBlockHeader()
72 Twine(CurrentOffset) + "'", in readBlockHeader()
81 auto CurrentOffset = Offset; in readPath() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DWindowsResource.cpp622 uint64_t CurrentOffset = 0; member in llvm::object::WindowsResourceCOFFWriter
745 CurrentOffset += sizeof(coff_file_header); in writeFirstSectionHeader()
747 reinterpret_cast<coff_section *>(BufferStart + CurrentOffset); in writeFirstSectionHeader()
763 CurrentOffset += sizeof(coff_section); in writeSecondSectionHeader()
765 reinterpret_cast<coff_section *>(BufferStart + CurrentOffset); in writeSecondSectionHeader()
781 CurrentOffset += sizeof(coff_section); in writeFirstSection()
787 CurrentOffset = alignTo(CurrentOffset, SECTION_ALIGNMENT); in writeFirstSection()
793 llvm::copy(RawDataEntry, BufferStart + CurrentOffset); in writeSecondSection()
794 CurrentOffset += alignTo(RawDataEntry.size(), sizeof(uint64_t)); in writeSecondSection()
797 CurrentOffset = alignTo(CurrentOffset, SECTION_ALIGNMENT); in writeSecondSection()
[all …]
H A DOffloadBundle.cpp277 size_t CurrentOffset = MagicSize; in decompress() local
280 memcpy(&ThisVersion, Blob.data() + CurrentOffset, sizeof(uint16_t)); in decompress()
281 CurrentOffset += VersionFieldSize; in decompress()
284 memcpy(&CompressionMethod, Blob.data() + CurrentOffset, sizeof(uint16_t)); in decompress()
285 CurrentOffset += MethodFieldSize; in decompress()
292 memcpy(&TotalFileSize, Blob.data() + CurrentOffset, sizeof(uint32_t)); in decompress()
293 CurrentOffset += FileSizeFieldSize; in decompress()
297 memcpy(&UncompressedSize, Blob.data() + CurrentOffset, sizeof(uint32_t)); in decompress()
298 CurrentOffset += UncompressedSizeFieldSize; in decompress()
301 memcpy(&StoredHash, Blob.data() + CurrentOffset, sizeof(uint64_t)); in decompress()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DXCOFFEmitter.cpp46 bool initFileHeader(uint64_t CurrentOffset);
48 bool initSectionHeaders(uint64_t &CurrentOffset);
49 bool initRelocations(uint64_t &CurrentOffset);
95 void XCOFFWriter::reportOverwrite(uint64_t CurrentOffset, in reportOverwrite() argument
98 ErrHandler("current file offset (" + Twine(CurrentOffset) + in reportOverwrite()
108 bool XCOFFWriter::initRelocations(uint64_t &CurrentOffset) { in initRelocations() argument
122 if (CurrentOffset > InitSection.FileOffsetToRelocations) { in initRelocations()
123 reportOverwrite(CurrentOffset, InitSection.FileOffsetToRelocations, in initRelocations()
128 CurrentOffset = InitSection.FileOffsetToRelocations; in initRelocations()
130 InitSection.FileOffsetToRelocations = CurrentOffset; in initRelocations()
[all …]
H A DELFEmitter.cpp77 uint64_t CurrentOffset = getOffset(); in padToAlignment() local
79 return CurrentOffset; in padToAlignment()
81 uint64_t AlignedOffset = alignTo(CurrentOffset, Align == 0 ? 1 : Align); in padToAlignment()
82 uint64_t PaddingSize = AlignedOffset - CurrentOffset; in padToAlignment()
84 return CurrentOffset; in padToAlignment()
1285 uint64_t CurrentOffset = CBA.getOffset(); in writeSectionContent() local
1344 SHeader.sh_size = CBA.getOffset() - CurrentOffset; in writeSectionContent()
1585 uint64_t CurrentOffset = CBA.getOffset(); in alignToOffset() local
1589 if ((uint64_t)*Offset < CurrentOffset) { in alignToOffset()
1592 return CurrentOffset; in alignToOffset()
[all …]
/freebsd/sys/contrib/dev/acpica/common/
H A Dcmfsize.c178 long CurrentOffset; in CmGetFileSize() local
184 CurrentOffset = ftell (File); in CmGetFileSize()
185 if (CurrentOffset < 0) in CmGetFileSize()
204 Status = fseek (File, CurrentOffset, SEEK_SET); in CmGetFileSize()
H A Ddmtable.c1094 UINT32 CurrentOffset; in AcpiDmDumpTable() local
1122 CurrentOffset = TableOffset + Info->Offset; in AcpiDmDumpTable()
1137 if (CurrentOffset >= TableLength) in AcpiDmDumpTable()
1142 "CurrentOffset: %X, TableLength: %X ***/", CurrentOffset, TableLength); in AcpiDmDumpTable()
1292 CurrentOffset = sizeof (ACPI_TABLE_WPBT); in AcpiDmDumpTable()
1363 if (CurrentOffset + ByteLength > TableLength) in AcpiDmDumpTable()
1390 AcpiDmLineHeader (CurrentOffset, ByteLength, Info->Name); in AcpiDmDumpTable()
1626 Status = AcpiDmDumpTable (TableLength, CurrentOffset, Target, in AcpiDmDumpTable()
1904 Status = AcpiDmDumpTable (TableLength, CurrentOffset, Target, in AcpiDmDumpTable()
1948 Status = AcpiDmDumpTable (TableLength, CurrentOffset, Target, in AcpiDmDumpTable()
[all …]
H A Ddmtbdump2.c2548 UINT32 CurrentOffset = sizeof (ACPI_TABLE_HEADER); in AcpiDmDumpPrmt() local
2558 PrmtHeader = ACPI_ADD_PTR (ACPI_TABLE_PRMT_HEADER, Table, CurrentOffset); in AcpiDmDumpPrmt()
2559 Status = AcpiDmDumpTable (Table->Length, CurrentOffset, PrmtHeader, in AcpiDmDumpPrmt()
2567 CurrentOffset += sizeof (ACPI_TABLE_PRMT_HEADER); in AcpiDmDumpPrmt()
2573 PrmtModuleInfo = ACPI_ADD_PTR (ACPI_PRMT_MODULE_INFO, Table, CurrentOffset); in AcpiDmDumpPrmt()
2574 Status = AcpiDmDumpTable (Table->Length, CurrentOffset, PrmtModuleInfo, in AcpiDmDumpPrmt()
2577 CurrentOffset += sizeof (ACPI_PRMT_MODULE_INFO); in AcpiDmDumpPrmt()
2583 PrmtHandlerInfo = ACPI_ADD_PTR (ACPI_PRMT_HANDLER_INFO, Table, CurrentOffset); in AcpiDmDumpPrmt()
2584 Status = AcpiDmDumpTable (Table->Length, CurrentOffset, PrmtHandlerInfo, in AcpiDmDumpPrmt()
2587 CurrentOffset += sizeof (ACPI_PRMT_HANDLER_INFO); in AcpiDmDumpPrmt()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DBinaryItemStream.h76 uint64_t CurrentOffset = 0; in computeItemOffsets()
80 CurrentOffset += Len; in computeItemOffsets()
81 ItemEndOffsets.push_back(CurrentOffset); in computeItemOffsets()
77 uint64_t CurrentOffset = 0; computeItemOffsets() local
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCCodeView.cpp192 unsigned CurrentOffset = 0; in emitFileChecksums() local
199 MCConstantExpr::create(CurrentOffset, Ctx)); in emitFileChecksums()
200 CurrentOffset += 4; // String table offset. in emitFileChecksums()
202 CurrentOffset += in emitFileChecksums()
205 CurrentOffset += 2; // One byte each for checksum size and kind. in emitFileChecksums()
206 CurrentOffset += File.Checksum.size(); in emitFileChecksums()
207 CurrentOffset = alignTo(CurrentOffset, 4); in emitFileChecksums()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86DynAllocaExpander.cpp51 Lowering getLowering(int64_t CurrentOffset, int64_t AllocaAmount);
100 X86DynAllocaExpander::getLowering(int64_t CurrentOffset, in getLowering() argument
107 if (CurrentOffset + AllocaAmount <= StackProbeSize) in getLowering()
H A DX86FrameLowering.cpp724 uint64_t CurrentOffset = 0; in emitStackProbeInlineGenericBlock() local
746 CurrentOffset = StackProbeSize - AlignOffset; in emitStackProbeInlineGenericBlock()
752 while (CurrentOffset + StackProbeSize < Offset) { in emitStackProbeInlineGenericBlock()
767 CurrentOffset += StackProbeSize; in emitStackProbeInlineGenericBlock()
771 uint64_t ChunkSize = Offset - CurrentOffset; in emitStackProbeInlineGenericBlock()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeViewRecordIO.h250 std::optional<uint32_t> bytesRemaining(uint32_t CurrentOffset) const { in bytesRemaining()
253 assert(CurrentOffset >= BeginOffset); in bytesRemaining()
255 uint32_t BytesUsed = CurrentOffset - BeginOffset; in bytesRemaining()
/freebsd/sys/contrib/dev/acpica/compiler/
H A Ddttable1.c1289 UINT16 CurrentOffset; in DtCompileDbg2() local
1327 CurrentOffset = (UINT16) sizeof (ACPI_DBG2_DEVICE); in DtCompileDbg2()
1337 DeviceInfo->BaseAddressOffset = CurrentOffset; in DtCompileDbg2()
1347 CurrentOffset += (UINT16) sizeof (ACPI_GENERIC_ADDRESS); in DtCompileDbg2()
1353 DeviceInfo->AddressSizeOffset = CurrentOffset; in DtCompileDbg2()
1363 CurrentOffset += (UINT16) sizeof (UINT32); in DtCompileDbg2()
1369 DeviceInfo->NamepathOffset = CurrentOffset; in DtCompileDbg2()
1380 CurrentOffset += (UINT16) DeviceInfo->NamepathLength; in DtCompileDbg2()
1407 DeviceInfo->OemDataOffset = CurrentOffset; in DtCompileDbg2()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DExpandVariadics.cpp645 uint64_t CurrentOffset = 0; in expandCall() local
694 if (uint64_t Rem = CurrentOffset % DataAlignV) { in expandCall()
698 CurrentOffset += Padding; in expandCall()
710 CurrentOffset += DL.getTypeAllocSize(FrameFieldType).getFixedValue(); in expandCall()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DInstrInfoEmitter.cpp394 size_t CurrentOffset = 0; in emitOperandTypeMappings() local
396 OperandOffsets.push_back(CurrentOffset); in emitOperandTypeMappings()
402 ++CurrentOffset; in emitOperandTypeMappings()
406 ++CurrentOffset; in emitOperandTypeMappings()
/freebsd/contrib/llvm-project/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp238 uint64_t CurrentOffset = sizeof(Elf_Ehdr); in ELFStubBuilder() local
240 Sec->Offset = alignTo(CurrentOffset, Sec->Align); in ELFStubBuilder()
242 CurrentOffset = Sec->Offset + Sec->Size; in ELFStubBuilder()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerModuleLDSPass.cpp1322 uint64_t CurrentOffset = 0; in createLDSVariableReplacement() local
1329 if (uint64_t Rem = CurrentOffset % DataAlignV) { in createLDSVariableReplacement()
1342 CurrentOffset += Padding; in createLDSVariableReplacement()
1347 CurrentOffset += F.Size; in createLDSVariableReplacement()
H A DAMDGPUIGroupLP.cpp1762 auto CurrentOffset = UsesDSRead * std::min(MaxDSROffset, DSROffset) + in applyIGLPStrategy() local
1767 CurrentOffset, TII, SG->getSGID())); in applyIGLPStrategy()
1769 SG->addRule(std::make_shared<IsSuccOfPrevNthGroup>(CurrentOffset, TII, in applyIGLPStrategy()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/
H A DLVCodeViewReader.h116 LVOffset CurrentOffset = 0;
H A DLVCodeViewVisitor.h134 uint32_t CurrentOffset = 0;
135 uint32_t CurrentOffset = 0; global() variable
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Core/
H A DLVReader.h139 LVOffset CurrentOffset = 0; variable
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp773 uint64_t CurrentOffset = 0; in allocateStack() local
774 while (CurrentOffset + ProbeSize <= Offset) { in allocateStack()
784 CurrentOffset += ProbeSize; in allocateStack()
786 CFIBuilder.buildDefCFAOffset(CurrentOffset + CFAAdjust); in allocateStack()
789 uint64_t Residual = Offset - CurrentOffset; in allocateStack()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/
H A DLVReader.cpp433 CompileUnit->addDebugTag(Tag, CurrentOffset); in createElement()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FrameLowering.cpp4777 int64_t CurrentOffset = in processFunctionBeforeFrameFinalized() local
4783 CurrentOffset = in processFunctionBeforeFrameFinalized()
4784 alignTo(CurrentOffset, MFI.getObjectAlign(FrameIndex).value()); in processFunctionBeforeFrameFinalized()
4785 CurrentOffset += MFI.getObjectSize(FrameIndex); in processFunctionBeforeFrameFinalized()
4786 MFI.setObjectOffset(FrameIndex, -CurrentOffset); in processFunctionBeforeFrameFinalized()
4793 int64_t UnwindHelpOffset = alignTo(CurrentOffset + 8, Align(16)); in processFunctionBeforeFrameFinalized()

12