| /openbsd-src/gnu/llvm/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
| H A D | MemoryFlags.h | 27 enum class MemProt { enum 36 inline raw_ostream &operator<<(raw_ostream &OS, MemProt MP) { 37 return OS << (((MP & MemProt::Read) != MemProt::None) ? 'R' : '-') 38 << (((MP & MemProt::Write) != MemProt::None) ? 'W' : '-') 39 << (((MP & MemProt::Exec) != MemProt::None) ? 'X' : '-'); 44 inline sys::Memory::ProtectionFlags toSysMemoryProtectionFlags(MemProt MP) { in toSysMemoryProtectionFlags() 46 if ((MP & MemProt::Read) != MemProt::None) in toSysMemoryProtectionFlags() 48 if ((MP & MemProt::Write) != MemProt::None) in toSysMemoryProtectionFlags() 50 if ((MP & MemProt::Exec) != MemProt::None) in toSysMemoryProtectionFlags() 57 inline MemProt fromSysMemoryProtectionFlags(sys::Memory::ProtectionFlags PF) { in fromSysMemoryProtectionFlags() [all …]
|
| H A D | TargetProcessControlTypes.h | 137 if ((AG.getMemProt() & MemProt::Read) != MemProt::None) in serialize() 139 if ((AG.getMemProt() & MemProt::Write) != MemProt::None) in serialize() 141 if ((AG.getMemProt() & MemProt::Exec) != MemProt::None) in serialize() 152 MemProt MP = MemProt::None; in deserialize() 154 MP |= MemProt::Read; in deserialize() 156 MP |= MemProt::Write; in deserialize() 158 MP |= MemProt::Exec; in deserialize()
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
| H A D | ExecutorSharedMemoryMapperService.cpp | 29 static DWORD getWindowsProtectionFlags(MemProt MP) { in getWindowsProtectionFlags() 30 if (MP == MemProt::Read) in getWindowsProtectionFlags() 32 if (MP == MemProt::Write || in getWindowsProtectionFlags() 33 MP == (MemProt::Write | MemProt::Read)) { in getWindowsProtectionFlags() 37 if (MP == (MemProt::Read | MemProt::Exec)) in getWindowsProtectionFlags() 39 if (MP == (MemProt::Read | MemProt::Write | MemProt::Exec)) in getWindowsProtectionFlags() 41 if (MP == MemProt::Exec) in getWindowsProtectionFlags() 135 if ((Segment.AG.getMemProt() & MemProt::Read) == MemProt::Read) in initialize() 137 if ((Segment.AG.getMemProt() & MemProt::Write) == MemProt::Write) in initialize() 139 if ((Segment.AG.getMemProt() & MemProt::Exec) == MemProt::Exec) in initialize() [all …]
|
| H A D | SimpleExecutorMemoryManager.cpp | 137 if ((Seg.AG.getMemProt() & MemProt::Exec) == MemProt::Exec) in finalize()
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/ |
| H A D | EPCIndirectionUtils.cpp | 114 {{MemProt::Read | MemProt::Exec, {PageSize, Align(PageSize)}}}); in grow() 120 auto SegInfo = Alloc->getSegInfo(MemProt::Read | MemProt::Exec); in grow() 303 {{MemProt::Read | MemProt::Exec, in writeResolverBlock() 309 auto SegInfo = Alloc->getSegInfo(MemProt::Read | MemProt::Exec); in writeResolverBlock() 366 auto StubProt = MemProt::Read | MemProt::Exec; in getIndirectStubs() 367 auto PtrProt = MemProt::Read | MemProt::Write; in getIndirectStubs()
|
| H A D | EPCGenericRTDyldMemoryManager.cpp | 221 MemProt SegMemProts[3] = {MemProt::Read | MemProt::Exec, MemProt::Read, in finalizeMemory() 222 MemProt::Read | MemProt::Write}; in finalizeMemory()
|
| H A D | DebugObjectManagerPlugin.cpp | 173 auto ROSeg = SimpleSegAlloc->getSegInfo(MemProt::Read); in finalizeAsync() 351 MemMgr, JD, {{MemProt::Read, {Size, Align(PageSize)}}}); in finalizeWorkingMemory() 356 auto SegInfo = Alloc->getSegInfo(MemProt::Read); in finalizeWorkingMemory()
|
| H A D | MemoryMapper.cpp | 86 if ((Segment.AG.getMemProt() & MemProt::Exec) == MemProt::Exec) in initialize()
|
| H A D | MachOPlatform.cpp | 103 auto &HeaderSection = G.createSection("__header", MemProt::Read); in addMachOHeader() 205 G->createSection("__orc_rt_cplt_bs", MemProt::Read); in materialize() 1095 if ((TargetSection.getMemProt() & MemProt::Exec) == MemProt::Exec) in findUnwindSectionInfo()
|
| H A D | ExecutionUtils.cpp | 521 G->createSection(getSectionName(), MemProt::Read | MemProt::Exec); in createStubsGraph()
|
| H A D | DebuggerSupportPlugin.cpp | 126 auto &SDOSec = G.createSection(SynthDebugSectionName, MemProt::Read); in startSynthesis()
|
| H A D | ELFNixPlatform.cpp | 66 G->createSection(".data.__dso_handle", MemProt::Read); in materialize()
|
| H A D | COFFPlatform.cpp | 72 auto &HeaderSection = G->createSection("__header", MemProt::Read); in materialize()
|
| /openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | ELFLinkGraphBuilder.h | 41 CommonSectionName, orc::MemProt::Read | orc::MemProt::Write); in getCommonSection() 338 orc::MemProt Prot; in graphifySections() 340 Prot = orc::MemProt::Read | orc::MemProt::Exec; in graphifySections() 342 Prot = orc::MemProt::Read | orc::MemProt::Write; in graphifySections()
|
| H A D | COFFLinkGraphBuilder.cpp | 75 orc::MemProt::Read | orc::MemProt::Write); in getCommonSection() 145 orc::MemProt Prot = orc::MemProt::Read; in graphifySections() 147 Prot |= orc::MemProt::Exec; in graphifySections() 149 Prot |= orc::MemProt::Read; in graphifySections() 151 Prot |= orc::MemProt::Write; in graphifySections()
|
| H A D | MachOLinkGraphBuilder.cpp | 116 orc::MemProt::Read | orc::MemProt::Write); in getCommonSection() 181 orc::MemProt Prot; in createNormalizedSections() 183 Prot = orc::MemProt::Read | orc::MemProt::Exec; in createNormalizedSections() 185 Prot = orc::MemProt::Read | orc::MemProt::Write; in createNormalizedSections()
|
| H A D | ELF_aarch64.cpp | 413 TLSInfoTable = &G.createSection(getSectionName(), orc::MemProt::Read); in getTLSInfoSection() 481 GOTSection = &G.createSection(getSectionName(), orc::MemProt::Read); in getTLSDescSection()
|
| H A D | ELF_riscv.cpp | 85 GOTSection = &G.createSection("$__GOT", orc::MemProt::Read); in getGOTSection() 92 &G.createSection("$__STUBS", orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection()
|
| H A D | ELF_x86_64.cpp | 72 &G.createSection(ELFTLSInfoSectionName, orc::MemProt::Read); in getTLSInfoSection()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/ExecutionEngine/JITLink/ |
| H A D | loongarch.h | 351 orc::MemProt::Read | orc::MemProt::Exec); in getGOTSection() 387 orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection()
|
| H A D | aarch64.h | 594 orc::MemProt::Read | orc::MemProt::Exec); in getGOTSection() 630 orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection()
|
| H A D | x86_64.h | 610 GOTSection = &G.createSection(getSectionName(), orc::MemProt::Read); in getGOTSection() 649 orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection()
|
| H A D | i386.h | 279 GOTSection = &G.createSection(getSectionName(), orc::MemProt::Read); in getGOTSection()
|
| H A D | JITLink.h | 672 Section(StringRef Name, orc::MemProt Prot, SectionOrdinal SecOrdinal) in Section() 697 orc::MemProt getMemProt() const { return Prot; } in getMemProt() 700 void setMemProt(orc::MemProt Prot) { this->Prot = Prot; } in setMemProt() 770 orc::MemProt Prot; 1008 Section &createSection(StringRef Name, orc::MemProt Prot) { in createSection()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-jitlink/ |
| H A D | llvm-jitlink.cpp | 513 Seg.AG = AllocGroup(MemProt::Read | MemProt::Write, in initialize()
|