/external/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
D | JITLinkMemoryManager.cpp | 28 MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) override { in allocate() argument 29 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate() 30 return {static_cast<char *>(SegBlocks[Seg].base()), in allocate() 31 SegBlocks[Seg].allocatedSize()}; in allocate() 33 JITTargetAddress getTargetMemory(ProtectionFlags Seg) override { in allocate() argument 34 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate() 35 return pointerToJITTargetAddress(SegBlocks[Seg].base()); in allocate() 88 const auto &Seg = KV.second; in allocate() local 90 if (Seg.getAlignment() > sys::Process::getPageSizeEstimate()) in allocate() 96 TotalSize += Seg.getContentSize(); in allocate() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/ |
D | JITLinkMemoryManager.cpp | 28 MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) override { in allocate() argument 29 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate() 30 return {static_cast<char *>(SegBlocks[Seg].base()), in allocate() 31 SegBlocks[Seg].allocatedSize()}; in allocate() 33 JITTargetAddress getTargetMemory(ProtectionFlags Seg) override { in allocate() argument 34 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate() 35 return reinterpret_cast<JITTargetAddress>(SegBlocks[Seg].base()); in allocate() 88 const auto &Seg = KV.second; in allocate() local 90 if (Seg.getAlignment() > sys::Process::getPageSizeEstimate()) in allocate() 96 TotalSize += Seg.getContentSize(); in allocate() [all …]
|
/external/llvm/tools/llvm-size/ |
D | llvm-size.cpp | 217 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load); in printDarwinSectionSizes() local 218 outs() << "Segment " << Seg.segname << ": " in printDarwinSectionSizes() 219 << format(fmt.str().c_str(), Seg.vmsize); in printDarwinSectionSizes() 221 outs() << " (vmaddr 0x" << format("%" PRIx64, Seg.vmaddr) << " fileoff " in printDarwinSectionSizes() 222 << Seg.fileoff << ")"; in printDarwinSectionSizes() 224 total += Seg.vmsize; in printDarwinSectionSizes() 226 for (unsigned J = 0; J < Seg.nsects; ++J) { in printDarwinSectionSizes() 240 if (Seg.nsects != 0) in printDarwinSectionSizes() 243 MachO::segment_command Seg = MachO->getSegmentLoadCommand(Load); in printDarwinSectionSizes() local 244 uint64_t Seg_vmsize = Seg.vmsize; in printDarwinSectionSizes() [all …]
|
/external/llvm-project/llvm/tools/llvm-size/ |
D | llvm-size.cpp | 230 MachO::segment_command_64 Seg = MachO->getSegment64LoadCommand(Load); in printDarwinSectionSizes() local 231 outs() << "Segment " << Seg.segname << ": " in printDarwinSectionSizes() 232 << format(fmt.str().c_str(), Seg.vmsize); in printDarwinSectionSizes() 234 outs() << " (vmaddr 0x" << format("%" PRIx64, Seg.vmaddr) << " fileoff " in printDarwinSectionSizes() 235 << Seg.fileoff << ")"; in printDarwinSectionSizes() 237 total += Seg.vmsize; in printDarwinSectionSizes() 239 for (unsigned J = 0; J < Seg.nsects; ++J) { in printDarwinSectionSizes() 253 if (Seg.nsects != 0) in printDarwinSectionSizes() 256 MachO::segment_command Seg = MachO->getSegmentLoadCommand(Load); in printDarwinSectionSizes() local 257 uint64_t Seg_vmsize = Seg.vmsize; in printDarwinSectionSizes() [all …]
|
/external/llvm-project/llvm/tools/llvm-objcopy/MachO/ |
D | Object.cpp | 138 constructSegment(SegmentType &Seg, llvm::MachO::LoadCommandType CmdType, in constructSegment() argument 140 assert(SegName.size() <= sizeof(Seg.segname) && "too long segment name"); in constructSegment() 141 memset(&Seg, 0, sizeof(SegmentType)); in constructSegment() 142 Seg.cmd = CmdType; in constructSegment() 143 strncpy(Seg.segname, SegName.data(), SegName.size()); in constructSegment() 144 Seg.maxprot |= in constructSegment() 146 Seg.initprot |= in constructSegment() 148 Seg.vmaddr = SegVMAddr; in constructSegment() 149 Seg.vmsize = SegVMSize; in constructSegment()
|
/external/llvm/tools/dsymutil/ |
D | MachOUtils.cpp | 107 struct MachO::segment_command_64 adaptFrom32bits(MachO::segment_command Seg) { in adaptFrom32bits() argument 109 Seg64.cmd = Seg.cmd; in adaptFrom32bits() 110 Seg64.cmdsize = Seg.cmdsize; in adaptFrom32bits() 111 memcpy(Seg64.segname, Seg.segname, sizeof(Seg.segname)); in adaptFrom32bits() 112 Seg64.vmaddr = Seg.vmaddr; in adaptFrom32bits() 113 Seg64.vmsize = Seg.vmsize; in adaptFrom32bits() 114 Seg64.fileoff = Seg.fileoff; in adaptFrom32bits() 115 Seg64.filesize = Seg.filesize; in adaptFrom32bits() 116 Seg64.maxprot = Seg.maxprot; in adaptFrom32bits() 117 Seg64.initprot = Seg.initprot; in adaptFrom32bits() [all …]
|
/external/llvm-project/llvm/tools/llvm-objcopy/ELF/ |
D | Object.cpp | 39 template <class ELFT> void ELFWriter<ELFT>::writePhdr(const Segment &Seg) { in writePhdr() argument 41 Seg.Index * sizeof(Elf_Phdr); in writePhdr() 43 Phdr.p_type = Seg.Type; in writePhdr() 44 Phdr.p_flags = Seg.Flags; in writePhdr() 45 Phdr.p_offset = Seg.Offset; in writePhdr() 46 Phdr.p_vaddr = Seg.VAddr; in writePhdr() 47 Phdr.p_paddr = Seg.PAddr; in writePhdr() 48 Phdr.p_filesz = Seg.FileSize; in writePhdr() 49 Phdr.p_memsz = Seg.MemSize; in writePhdr() 50 Phdr.p_align = Seg.Align; in writePhdr() [all …]
|
/external/llvm-project/llvm/tools/dsymutil/ |
D | MachOUtils.cpp | 121 struct MachO::segment_command_64 adaptFrom32bits(MachO::segment_command Seg) { in adaptFrom32bits() argument 123 Seg64.cmd = Seg.cmd; in adaptFrom32bits() 124 Seg64.cmdsize = Seg.cmdsize; in adaptFrom32bits() 125 memcpy(Seg64.segname, Seg.segname, sizeof(Seg.segname)); in adaptFrom32bits() 126 Seg64.vmaddr = Seg.vmaddr; in adaptFrom32bits() 127 Seg64.vmsize = Seg.vmsize; in adaptFrom32bits() 128 Seg64.fileoff = Seg.fileoff; in adaptFrom32bits() 129 Seg64.filesize = Seg.filesize; in adaptFrom32bits() 130 Seg64.maxprot = Seg.maxprot; in adaptFrom32bits() 131 Seg64.initprot = Seg.initprot; in adaptFrom32bits() [all …]
|
/external/llvm-project/llvm/tools/llvm-readobj/ |
D | WasmDumper.cpp | 177 const wasm::WasmDataSegment &Seg = Segment.Data; in printSectionHeaders() local 179 if (!Seg.Name.empty()) in printSectionHeaders() 180 W.printString("Name", Seg.Name); in printSectionHeaders() 181 W.printNumber("Size", static_cast<uint64_t>(Seg.Content.size())); in printSectionHeaders() 182 if (Seg.Offset.Opcode == wasm::WASM_OPCODE_I32_CONST) in printSectionHeaders() 183 W.printNumber("Offset", Seg.Offset.Value.Int32); in printSectionHeaders() 184 else if (Seg.Offset.Opcode == wasm::WASM_OPCODE_I64_CONST) in printSectionHeaders() 185 W.printNumber("Offset", Seg.Offset.Value.Int64); in printSectionHeaders()
|
/external/llvm/lib/CodeGen/ |
D | LiveInterval.cpp | 1003 void LiveRangeUpdater::add(LiveRange::Segment Seg) { in add() argument 1009 LR->addSegmentToSet(Seg); in add() 1014 if (!LastStart.isValid() || LastStart > Seg.start) { in add() 1023 LastStart = Seg.start; in add() 1027 if (ReadI != E && ReadI->end <= Seg.start) { in add() 1033 ReadI = WriteI = LR->find(Seg.start); in add() 1035 while (ReadI != E && ReadI->end <= Seg.start) in add() 1039 assert(ReadI == E || ReadI->end > Seg.start); in add() 1042 if (ReadI != E && ReadI->start <= Seg.start) { in add() 1043 assert(ReadI->valno == Seg.valno && "Cannot overlap different values"); in add() [all …]
|
/external/pdfium/third_party/lcms/src/ |
D | cmsgamma.c | 779 cmsCurveSegment Seg[3]; in cmsBuildTabulatedToneCurveFloat() local 783 Seg[0].x0 = MINUS_INF; in cmsBuildTabulatedToneCurveFloat() 784 Seg[0].x1 = 0; in cmsBuildTabulatedToneCurveFloat() 785 Seg[0].Type = 6; in cmsBuildTabulatedToneCurveFloat() 787 Seg[0].Params[0] = 1; in cmsBuildTabulatedToneCurveFloat() 788 Seg[0].Params[1] = 0; in cmsBuildTabulatedToneCurveFloat() 789 Seg[0].Params[2] = 0; in cmsBuildTabulatedToneCurveFloat() 790 Seg[0].Params[3] = values[0]; in cmsBuildTabulatedToneCurveFloat() 791 Seg[0].Params[4] = 0; in cmsBuildTabulatedToneCurveFloat() 794 Seg[1].x0 = 0; in cmsBuildTabulatedToneCurveFloat() [all …]
|
/external/llvm-project/llvm/tools/obj2yaml/ |
D | wasm2yaml.cpp | 327 WasmYAML::ElemSegment Seg; in dump() local 328 Seg.TableIndex = Segment.TableIndex; in dump() 329 Seg.Offset = Segment.Offset; in dump() 331 Seg.Functions.push_back(Func); in dump() 333 ElemSec->Segments.push_back(Seg); in dump() 358 WasmYAML::DataSegment Seg; in dump() local 359 Seg.SectionOffset = Segment.SectionOffset; in dump() 360 Seg.InitFlags = Segment.Data.InitFlags; in dump() 361 Seg.MemoryIndex = Segment.Data.MemoryIndex; in dump() 362 Seg.Offset = Segment.Data.Offset; in dump() [all …]
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | LiveInterval.cpp | 1179 void LiveRangeUpdater::add(LiveRange::Segment Seg) { in add() argument 1185 LR->addSegmentToSet(Seg); in add() 1190 if (!LastStart.isValid() || LastStart > Seg.start) { in add() 1199 LastStart = Seg.start; in add() 1203 if (ReadI != E && ReadI->end <= Seg.start) { in add() 1209 ReadI = WriteI = LR->find(Seg.start); in add() 1211 while (ReadI != E && ReadI->end <= Seg.start) in add() 1215 assert(ReadI == E || ReadI->end > Seg.start); in add() 1218 if (ReadI != E && ReadI->start <= Seg.start) { in add() 1219 assert(ReadI->valno == Seg.valno && "Cannot overlap different values"); in add() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | LiveInterval.cpp | 1179 void LiveRangeUpdater::add(LiveRange::Segment Seg) { in add() argument 1185 LR->addSegmentToSet(Seg); in add() 1190 if (!LastStart.isValid() || LastStart > Seg.start) { in add() 1199 LastStart = Seg.start; in add() 1203 if (ReadI != E && ReadI->end <= Seg.start) { in add() 1209 ReadI = WriteI = LR->find(Seg.start); in add() 1211 while (ReadI != E && ReadI->end <= Seg.start) in add() 1215 assert(ReadI == E || ReadI->end > Seg.start); in add() 1218 if (ReadI != E && ReadI->start <= Seg.start) { in add() 1219 assert(ReadI->valno == Seg.valno && "Cannot overlap different values"); in add() [all …]
|
D | LiveRegMatrix.cpp | 213 LiveRange::Segment Seg(Start, End, &valno); in checkInterference() local 215 LR.addSegment(Seg); in checkInterference()
|
/external/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
D | OrcRemoteTargetClient.h | 359 MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) override { in getWorkingMemory() argument 360 assert(HostSegBlocks.count(Seg) && "No allocation for segment"); in getWorkingMemory() 361 return {static_cast<char *>(HostSegBlocks[Seg].base()), in getWorkingMemory() 362 HostSegBlocks[Seg].allocatedSize()}; in getWorkingMemory() 365 JITTargetAddress getTargetMemory(ProtectionFlags Seg) override { in getTargetMemory() argument 366 assert(TargetSegBlocks.count(Seg) && "No allocation for segment"); in getTargetMemory() 367 return pointerToJITTargetAddress(TargetSegBlocks[Seg].base()); in getTargetMemory() 417 const auto &Seg = KV.second; in allocateHostBlocks() local 419 uint64_t SegmentSize = Seg.getContentSize() + Seg.getZeroFillSize(); in allocateHostBlocks() 423 char *ZeroFillBegin = SlabAddr + Seg.getContentSize(); in allocateHostBlocks() [all …]
|
D | OrcRPCTargetProcessControl.h | 58 MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) override { in getWorkingMemory() argument 59 auto I = HostAllocs.find(Seg); in getWorkingMemory() 65 JITTargetAddress getTargetMemory(ProtectionFlags Seg) override { in getTargetMemory() argument 66 auto I = TargetAllocs.find(Seg); in getTargetMemory()
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | LiveInterval.h | 623 auto Seg = segments.begin(), EndSeg = segments.end(); in findIndexesLiveAt() local 625 while (Idx != EndIdx && Seg != EndSeg) { in findIndexesLiveAt() 628 if (Seg->end <= *Idx) { in findIndexesLiveAt() 629 Seg = std::upper_bound( in findIndexesLiveAt() 630 ++Seg, EndSeg, *Idx, in findIndexesLiveAt() 632 const std::remove_reference_t<decltype(*Seg)> &S) { in findIndexesLiveAt() 635 if (Seg == EndSeg) in findIndexesLiveAt() 638 auto NotLessStart = std::lower_bound(Idx, EndIdx, Seg->start); in findIndexesLiveAt() 641 auto NotLessEnd = std::lower_bound(NotLessStart, EndIdx, Seg->end); in findIndexesLiveAt() 647 ++Seg; in findIndexesLiveAt()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | LiveInterval.h | 622 auto Seg = segments.begin(), EndSeg = segments.end(); in findIndexesLiveAt() local 624 while (Idx != EndIdx && Seg != EndSeg) { in findIndexesLiveAt() 627 if (Seg->end <= *Idx) { in findIndexesLiveAt() 628 Seg = std::upper_bound(++Seg, EndSeg, *Idx, in findIndexesLiveAt() 630 const typename std::remove_reference<decltype(*Seg)>::type &S) { in findIndexesLiveAt() 633 if (Seg == EndSeg) in findIndexesLiveAt() 636 auto NotLessStart = std::lower_bound(Idx, EndIdx, Seg->start); in findIndexesLiveAt() 639 auto NotLessEnd = std::lower_bound(NotLessStart, EndIdx, Seg->end); in findIndexesLiveAt() 645 ++Seg; in findIndexesLiveAt()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/JITLink/ |
D | JITLinkMemoryManager.h | 67 virtual MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) = 0; 71 virtual JITTargetAddress getTargetMemory(ProtectionFlags Seg) = 0;
|
/external/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
D | JITLinkMemoryManager.h | 70 virtual MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) = 0; 74 virtual JITTargetAddress getTargetMemory(ProtectionFlags Seg) = 0;
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonExpandCondsets.cpp | 453 for (auto &Seg : Range) { in updateDeadsInRange() local 454 if (!Seg.start.isRegister()) in updateDeadsInRange() 456 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() 461 PredDefs.push_back(Seg.start); in updateDeadsInRange() 488 for (auto &Seg : Range) { in updateDeadsInRange() local 489 if (!Seg.start.isRegister()) in updateDeadsInRange() 491 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() 495 if (Seg.start.isDead() || !IsRegDef(Op)) in updateDeadsInRange() 508 for (auto &Seg : Range) { in updateDeadsInRange() local 509 if (!Seg.start.isRegister() || !Range.liveAt(Seg.start.getPrevSlot())) in updateDeadsInRange() [all …]
|
/external/llvm-project/llvm/lib/Target/Hexagon/ |
D | HexagonExpandCondsets.cpp | 417 for (auto &Seg : Range) { in updateDeadsInRange() local 418 if (!Seg.start.isRegister()) in updateDeadsInRange() 420 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() 423 PredDefs.push_back(Seg.start); in updateDeadsInRange() 471 for (auto &Seg : Range) { in updateDeadsInRange() local 472 if (!Seg.start.isRegister()) in updateDeadsInRange() 474 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() 477 if (P.second && Seg.end.isDead()) { in updateDeadsInRange() 488 for (auto &Seg : Range) { in updateDeadsInRange() local 489 if (!Seg.start.isRegister() || !Range.liveAt(Seg.start.getPrevSlot())) in updateDeadsInRange() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonExpandCondsets.cpp | 416 for (auto &Seg : Range) { in updateDeadsInRange() local 417 if (!Seg.start.isRegister()) in updateDeadsInRange() 419 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() 422 PredDefs.push_back(Seg.start); in updateDeadsInRange() 470 for (auto &Seg : Range) { in updateDeadsInRange() local 471 if (!Seg.start.isRegister()) in updateDeadsInRange() 473 MachineInstr *DefI = LIS->getInstructionFromIndex(Seg.start); in updateDeadsInRange() 476 if (P.second && Seg.end.isDead()) { in updateDeadsInRange() 487 for (auto &Seg : Range) { in updateDeadsInRange() local 488 if (!Seg.start.isRegister() || !Range.liveAt(Seg.start.getPrevSlot())) in updateDeadsInRange() [all …]
|
/external/llvm-project/llvm/tools/llvm-jitlink/ |
D | llvm-jitlink.cpp | 342 MutableArrayRef<char> getWorkingMemory(ProtectionFlags Seg) override { in allocate() argument 343 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate() 344 return {static_cast<char *>(SegBlocks[Seg].base()), in allocate() 345 SegBlocks[Seg].allocatedSize()}; in allocate() 347 JITTargetAddress getTargetMemory(ProtectionFlags Seg) override { in allocate() argument 348 assert(SegBlocks.count(Seg) && "No allocation for segment"); in allocate() 349 return pointerToJITTargetAddress(SegBlocks[Seg].base()) + in allocate() 383 auto &Seg = KV.second; in allocate() local 385 if (Seg.getAlignment() > PageSize) in allocate() 390 if (PageSize % Seg.getAlignment() != 0) in allocate() [all …]
|