| /freebsd/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()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/ |
| H A D | ExecutorSharedMemoryMapperService.cpp | 34 static DWORD getWindowsProtectionFlags(MemProt MP) { in getWindowsProtectionFlags() 35 if (MP == MemProt::Read) in getWindowsProtectionFlags() 37 if (MP == MemProt::Write || in getWindowsProtectionFlags() 38 MP == (MemProt::Write | MemProt::Read)) { in getWindowsProtectionFlags() 42 if (MP == (MemProt::Read | MemProt::Exec)) in getWindowsProtectionFlags() 44 if (MP == (MemProt::Read | MemProt::Write | MemProt::Exec)) in getWindowsProtectionFlags() 46 if (MP == MemProt::Exec) in getWindowsProtectionFlags() 159 if ((Segment.RAG.Prot & MemProt::Read) == MemProt::Read) in initialize() 161 if ((Segment.RAG.Prot & MemProt::Write) == MemProt::Write) in initialize() 163 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()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
| H A D | MachO.h | 46 orc::MemProt::Read | orc::MemProt::Write); in getMachODefaultRWDataSection() 56 orc::MemProt::Read | orc::MemProt::Exec); in getMachODefaultTextSection()
|
| H A D | x86.h | 356 GOTSection = &G.createSection(getSectionName(), orc::MemProt::Read); in getGOTSection() 395 orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection()
|
| H A D | loongarch.h | 657 orc::MemProt::Read | orc::MemProt::Exec); in getGOTSection() 694 orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection()
|
| H A D | aarch64.h | 853 orc::MemProt::Read | orc::MemProt::Exec); in getGOTSection() 894 orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection()
|
| H A D | x86_64.h | 726 GOTSection = &G.createSection(getSectionName(), orc::MemProt::Read); in getGOTSection() 770 orc::MemProt::Read | orc::MemProt::Exec); in getStubsSection()
|
| H A D | ppc64.h | 193 TOCSection = &G.createSection(getSectionName(), orc::MemProt::Read); in getOrCreateTOCSection() 252 orc::MemProt::Read | orc::MemProt::Exec); in getOrCreateStubsSection()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
| H A D | EPCIndirectionUtils.cpp | 114 nullptr, {{MemProt::Read | MemProt::Exec, {PageSize, Align(PageSize)}}}); in grow() 120 auto SegInfo = Alloc->getSegInfo(MemProt::Read | MemProt::Exec); in grow() 300 {{MemProt::Read | MemProt::Exec, in writeResolverBlock() 306 auto SegInfo = Alloc->getSegInfo(MemProt::Read | MemProt::Exec); in writeResolverBlock() 363 auto StubProt = MemProt::Read | MemProt::Exec; in getIndirectStubs() 364 auto PtrProt = MemProt::Read | MemProt::Write; in getIndirectStubs()
|
| H A D | JITLinkRedirectableSymbolManager.cpp | 32 G->createSection(StubPtrSectionName, MemProt::Write | MemProt::Read); in emitRedirectableSymbols() 34 G->createSection(JumpStubSectionName, MemProt::Exec | MemProt::Read); in emitRedirectableSymbols()
|
| 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 | UnwindInfoRegistrationPlugin.cpp | 64 if ((TargetSection.getMemProt() & MemProt::Exec) == MemProt::Exec) in addUnwindInfoRegistrationActions()
|
| H A D | JITLinkReentryTrampolines.cpp | 137 G->createSection(ReentrySectionName, MemProt::Exec | MemProt::Read); in emit()
|
| H A D | DebugObjectManagerPlugin.cpp | 166 auto ROSeg = SimpleSegAlloc->getSegInfo(MemProt::Read); in finalizeAsync() 336 {{MemProt::Read, {Size, Align(PageSize)}}}); in finalizeWorkingMemory() 341 auto SegInfo = Alloc->getSegInfo(MemProt::Read); in finalizeWorkingMemory()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | SectCreate.h | 35 ObjectLinkingLayer &ObjLinkingLayer, std::string SectName, MemProt MP, 54 MemProt MP;
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | COFFLinkGraphBuilder.cpp | 69 orc::MemProt::Read | orc::MemProt::Write); in getCommonSection() 146 orc::MemProt Prot = orc::MemProt::Read; in graphifySections() 148 Prot |= orc::MemProt::Exec; in graphifySections() 150 Prot |= orc::MemProt::Read; in graphifySections() 152 Prot |= orc::MemProt::Write; in graphifySections()
|
| H A D | XCOFFLinkGraphBuilder.cpp | 154 UndefSection = &G->createSection("*UND*", orc::MemProt::None); in processSections() 173 orc::MemProt Prot = orc::MemProt::Read; in processSections() 175 Prot |= orc::MemProt::Exec; in processSections() 177 Prot |= orc::MemProt::Write; in processSections()
|
| H A D | ELFLinkGraphBuilder.h | 41 CommonSectionName, orc::MemProt::Read | orc::MemProt::Write); in getCommonSection() 358 orc::MemProt Prot = orc::MemProt::Read; in graphifySections() 360 Prot |= orc::MemProt::Exec; in graphifySections() 362 Prot |= orc::MemProt::Write; in graphifySections()
|
| H A D | MachOLinkGraphBuilder.cpp | 110 orc::MemProt::Read | orc::MemProt::Write); in getCommonSection() 175 orc::MemProt Prot; in createNormalizedSections() 177 Prot = orc::MemProt::Read | orc::MemProt::Exec; in createNormalizedSections() 179 Prot = orc::MemProt::Read | orc::MemProt::Write; in createNormalizedSections()
|
| H A D | aarch64.cpp | 272 orc::MemProt::Read | orc::MemProt::Exec); in createEmptyPointerSigningFunction()
|
| H A D | aarch32.cpp | 713 GOTSection = &G.createSection(getSectionName(), orc::MemProt::Read); in createEntry() 860 orc::MemProt::Read | orc::MemProt::Exec); in visitEdge() 904 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 | MachO.cpp | 129 Sec = &G.createSection(LocalHeaderSectionName, orc::MemProt::Read); in getOrCreateLocalMachOHeader()
|