| /src/contrib/llvm-project/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 | 36 RemoteAllocGroup(MemProt Prot) : Prot(Prot) {} in RemoteAllocGroup() 37 RemoteAllocGroup(MemProt Prot, bool FinalizeLifetime) in RemoteAllocGroup() 45 MemProt Prot; 167 if ((RAG.Prot & MemProt::Read) != MemProt::None) in serialize() 169 if ((RAG.Prot & MemProt::Write) != MemProt::None) in serialize() 171 if ((RAG.Prot & MemProt::Exec) != MemProt::None) in serialize() 182 MemProt MP = MemProt::None; in deserialize() 184 MP |= MemProt::Read; in deserialize() 186 MP |= MemProt::Write; in deserialize() 188 MP |= MemProt::Exec; in deserialize()
|
| /src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
| H A D | ExecutorSharedMemoryMapperService.cpp | 33 static DWORD getWindowsProtectionFlags(MemProt MP) { in getWindowsProtectionFlags() 34 if (MP == MemProt::Read) in getWindowsProtectionFlags() 36 if (MP == MemProt::Write || in getWindowsProtectionFlags() 37 MP == (MemProt::Write | MemProt::Read)) { in getWindowsProtectionFlags() 41 if (MP == (MemProt::Read | MemProt::Exec)) in getWindowsProtectionFlags() 43 if (MP == (MemProt::Read | MemProt::Write | MemProt::Exec)) in getWindowsProtectionFlags() 45 if (MP == MemProt::Exec) in getWindowsProtectionFlags() 158 if ((Segment.RAG.Prot & MemProt::Read) == MemProt::Read) in initialize() 160 if ((Segment.RAG.Prot & MemProt::Write) == MemProt::Write) in initialize() 162 if ((Segment.RAG.Prot & MemProt::Exec) == MemProt::Exec) in initialize() [all …]
|
| H A D | SimpleExecutorMemoryManager.cpp | 137 if ((Seg.RAG.Prot & MemProt::Exec) == MemProt::Exec) in finalize()
|
| /src/contrib/llvm-project/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() 299 {{MemProt::Read | MemProt::Exec, in writeResolverBlock() 305 auto SegInfo = Alloc->getSegInfo(MemProt::Read | MemProt::Exec); in writeResolverBlock() 362 auto StubProt = MemProt::Read | MemProt::Exec; in getIndirectStubs() 363 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 | 168 auto ROSeg = SimpleSegAlloc->getSegInfo(MemProt::Read); in finalizeAsync() 337 MemMgr, JD, {{MemProt::Read, {Size, Align(PageSize)}}}); in finalizeWorkingMemory() 342 auto SegInfo = Alloc->getSegInfo(MemProt::Read); in finalizeWorkingMemory()
|
| H A D | MachOPlatform.cpp | 154 G->createSection("__orc_rt_cplt_bs", MemProt::Read); in materialize() 1271 if ((TargetSection.getMemProt() & MemProt::Exec) == MemProt::Exec) in findUnwindSectionInfo() 1459 MemProt::Read | MemProt::Write); in createObjCRuntimeObject() 1645 MemProt::Read | MemProt::Exec); in prepareSymbolTableRegistration() 1780 auto &HeaderSection = G.createSection("__header", MemProt::Read); in addMachOHeader()
|
| H A D | MemoryMapper.cpp | 90 if ((Segment.AG.getMemProt() & MemProt::Exec) == MemProt::Exec) in initialize()
|
| H A D | ExecutionUtils.cpp | 585 G->createSection(getSectionName(), MemProt::Read | MemProt::Exec); in createStubsGraph()
|
| /src/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | SectCreate.h | 34 ObjectLinkingLayer &ObjLinkingLayer, std::string SectName, MemProt MP, 53 MemProt MP;
|
| /src/contrib/llvm-project/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 | i386.h | 377 GOTSection = &G.createSection(getSectionName(), orc::MemProt::Read); in getGOTSection() 416 orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection()
|
| H A D | aarch64.h | 731 orc::MemProt::Read | orc::MemProt::Exec); in getGOTSection() 767 orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection()
|
| H A D | x86_64.h | 639 GOTSection = &G.createSection(getSectionName(), orc::MemProt::Read); in getGOTSection() 678 orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection()
|
| H A D | ppc64.h | 192 TOCSection = &G.createSection(getSectionName(), orc::MemProt::Read); in getOrCreateTOCSection() 251 orc::MemProt::Read | orc::MemProt::Exec); in getOrCreateStubsSection()
|
| H A D | JITLink.h | 696 Section(StringRef Name, orc::MemProt Prot, SectionOrdinal SecOrdinal) in Section() 721 orc::MemProt getMemProt() const { return Prot; } in getMemProt() 724 void setMemProt(orc::MemProt Prot) { this->Prot = Prot; } in setMemProt() 797 orc::MemProt Prot; 1106 Section &createSection(StringRef Name, orc::MemProt Prot) { in createSection()
|
| /src/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | COFFLinkGraphBuilder.cpp | 75 orc::MemProt::Read | orc::MemProt::Write); in getCommonSection() 152 orc::MemProt Prot = orc::MemProt::Read; in graphifySections() 154 Prot |= orc::MemProt::Exec; in graphifySections() 156 Prot |= orc::MemProt::Read; in graphifySections() 158 Prot |= orc::MemProt::Write; in graphifySections()
|
| H A D | ELFLinkGraphBuilder.h | 41 CommonSectionName, orc::MemProt::Read | orc::MemProt::Write); in getCommonSection() 357 orc::MemProt Prot = orc::MemProt::Read; in graphifySections() 359 Prot |= orc::MemProt::Exec; in graphifySections() 361 Prot |= orc::MemProt::Write; in graphifySections()
|
| H A D | MachOLinkGraphBuilder.cpp | 118 orc::MemProt::Read | orc::MemProt::Write); in getCommonSection() 183 orc::MemProt Prot; in createNormalizedSections() 185 Prot = orc::MemProt::Read | orc::MemProt::Exec; in createNormalizedSections() 187 Prot = orc::MemProt::Read | orc::MemProt::Write; in createNormalizedSections()
|
| H A D | aarch32.cpp | 715 GOTSection = &G.createSection(getSectionName(), orc::MemProt::Read); in createEntry() 862 orc::MemProt::Read | orc::MemProt::Exec); in visitEdge() 906 orc::MemProt::Read | orc::MemProt::Exec); in visitEdge()
|
| H A D | ELF_riscv.cpp | 91 GOTSection = &G.createSection("$__GOT", orc::MemProt::Read); in getGOTSection() 98 &G.createSection("$__STUBS", orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection() 513 return (S.getMemProt() & orc::MemProt::Exec) != orc::MemProt::None; in shouldRelax()
|
| H A D | ELF_aarch64.cpp | 474 TLSInfoTable = &G.createSection(getSectionName(), orc::MemProt::Read); in getTLSInfoSection() 542 GOTSection = &G.createSection(getSectionName(), orc::MemProt::Read); in getTLSDescSection()
|
| H A D | ELF_x86_64.cpp | 71 &G.createSection(ELFTLSInfoSectionName, orc::MemProt::Read); in getTLSInfoSection()
|
| /src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/Debugging/ |
| H A D | DebuggerSupportPlugin.cpp | 228 auto &SDOSec = G.createSection(SynthDebugSectionName, MemProt::Read); in startSynthesis()
|