|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/ExecutionEngine/JITLink/JITLink.h 510 Section(StringRef Name, sys::Memory::ProtectionFlags Prot,
530 sys::Memory::ProtectionFlags getProtectionFlags() const { return Prot; }
566 sys::Memory::ProtectionFlags Prot;
725 Section &createSection(StringRef Name, sys::Memory::ProtectionFlags Prot) {
include/llvm/ExecutionEngine/JITLink/JITLinkMemoryManager.h 31 using ProtectionFlags = sys::Memory::ProtectionFlags;
include/llvm/ExecutionEngine/Orc/IndirectionUtils.h 123 ResolverBlock = sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory(
125 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
125 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
134 EC = sys::Memory::protectMappedMemory(ResolverBlock.getMemoryBlock(),
135 sys::Memory::MF_READ |
136 sys::Memory::MF_EXEC);
148 sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory(
150 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
150 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
167 if (auto EC = sys::Memory::protectMappedMemory(
169 sys::Memory::MF_READ | sys::Memory::MF_EXEC))
169 sys::Memory::MF_READ | sys::Memory::MF_EXEC))
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h 184 sys::Memory::MF_READ | sys::Memory::MF_EXEC))
184 sys::Memory::MF_READ | sys::Memory::MF_EXEC))
188 sys::Memory::MF_READ))
192 sys::Memory::MF_READ | sys::Memory::MF_WRITE))
192 sys::Memory::MF_READ | sys::Memory::MF_WRITE))
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h 118 sys::Memory::releaseMappedMemory(Alloc.second);
123 sys::MemoryBlock MB = sys::Memory::allocateMappedMemory(
124 Size, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC);
124 Size, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC);
139 sys::Memory::protectMappedMemory(I->second, Flags));
284 ResolverBlock = sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory(
286 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
286 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
293 return errorCodeToError(sys::Memory::protectMappedMemory(
295 sys::Memory::MF_READ | sys::Memory::MF_EXEC));
295 sys::Memory::MF_READ | sys::Memory::MF_EXEC));
301 sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory(
303 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
303 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
315 EC = sys::Memory::protectMappedMemory(TrampolineBlock.getMemoryBlock(),
316 sys::Memory::MF_READ |
317 sys::Memory::MF_EXEC);
include/llvm/Support/Memory.h 142 Memory::releaseMappedMemory(M);
155 raw_ostream &operator<<(raw_ostream &OS, const Memory::ProtectionFlags &PF);
lib/ExecutionEngine/JITLink/JITLinkMemoryManager.cpp 54 if (auto EC = sys::Memory::releaseMappedMemory(Slab))
64 if (auto EC = sys::Memory::protectMappedMemory(Block, Prot))
66 if (Prot & sys::Memory::MF_EXEC)
67 sys::Memory::InvalidateInstructionCache(Block.base(),
81 const sys::Memory::ProtectionFlags ReadWrite =
82 static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ |
83 sys::Memory::MF_WRITE);
103 sys::Memory::allocateMappedMemory(TotalSize, nullptr, ReadWrite, EC);
lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp 93 sys::Memory::MF_READ | sys::Memory::MF_WRITE);
93 sys::Memory::MF_READ | sys::Memory::MF_WRITE);
157 sys::Memory::ProtectionFlags Prot;
159 Prot = static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ |
160 sys::Memory::MF_EXEC);
162 Prot = static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ |
163 sys::Memory::MF_WRITE);
lib/ExecutionEngine/JITLink/MachO_arm64.cpp 446 GOTSection = &G.createSection("$__GOT", sys::Memory::MF_READ);
453 sys::Memory::MF_READ | sys::Memory::MF_EXEC);
453 sys::Memory::MF_READ | sys::Memory::MF_EXEC);
lib/ExecutionEngine/JITLink/MachO_x86_64.cpp 409 GOTSection = &G.createSection("$__GOT", sys::Memory::MF_READ);
416 sys::Memory::MF_READ | sys::Memory::MF_EXEC);
416 sys::Memory::MF_READ | sys::Memory::MF_EXEC);
lib/ExecutionEngine/Orc/OrcABISupport.cpp 156 auto StubsMem = sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory(
158 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
158 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
177 if (auto EC = sys::Memory::protectMappedMemory(
178 StubsBlock, sys::Memory::MF_READ | sys::Memory::MF_EXEC))
178 StubsBlock, sys::Memory::MF_READ | sys::Memory::MF_EXEC))
238 auto StubsMem = sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory(
240 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
240 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
258 if (auto EC = sys::Memory::protectMappedMemory(
259 StubsBlock, sys::Memory::MF_READ | sys::Memory::MF_EXEC))
259 StubsBlock, sys::Memory::MF_READ | sys::Memory::MF_EXEC))
506 auto StubsMem = sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory(
508 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
508 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
525 if (auto EC = sys::Memory::protectMappedMemory(
526 StubsBlock, sys::Memory::MF_READ | sys::Memory::MF_EXEC))
526 StubsBlock, sys::Memory::MF_READ | sys::Memory::MF_EXEC))
692 auto StubsMem = sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory(
694 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
694 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
718 if (auto EC = sys::Memory::protectMappedMemory(
719 StubsBlock, sys::Memory::MF_READ | sys::Memory::MF_EXEC))
719 StubsBlock, sys::Memory::MF_READ | sys::Memory::MF_EXEC))
938 auto StubsMem = sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory(
940 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
940 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC));
969 if (auto EC = sys::Memory::protectMappedMemory(
970 StubsBlock, sys::Memory::MF_READ | sys::Memory::MF_EXEC))
970 StubsBlock, sys::Memory::MF_READ | sys::Memory::MF_EXEC))
lib/ExecutionEngine/SectionMemoryManager.cpp 106 sys::Memory::MF_READ | sys::Memory::MF_WRITE, ec);
106 sys::Memory::MF_READ | sys::Memory::MF_WRITE, ec);
146 sys::Memory::MF_READ | sys::Memory::MF_EXEC);
146 sys::Memory::MF_READ | sys::Memory::MF_EXEC);
156 sys::Memory::MF_READ | sys::Memory::MF_EXEC);
156 sys::Memory::MF_READ | sys::Memory::MF_EXEC);
224 sys::Memory::InvalidateInstructionCache(Block.base(),
248 return sys::Memory::allocateMappedMemory(NumBytes, NearBlock, Flags, EC);
253 return sys::Memory::protectMappedMemory(Block, Flags);
257 return sys::Memory::releaseMappedMemory(M);
lib/Support/FileOutputBuffer.cpp 120 MemoryBlock MB = Memory::allocateMappedMemory(
121 Size, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC);
121 Size, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC);
lib/Support/Memory.cpp 35 raw_ostream &operator<<(raw_ostream &OS, const Memory::ProtectionFlags &PF) {
39 return OS << (PF & Memory::MF_READ ? 'R' : '-')
40 << (PF & Memory::MF_WRITE ? 'W' : '-')
41 << (PF & Memory::MF_EXEC ? 'X' : '-');
lib/Support/Unix/Memory.inc 48 switch (Flags & llvm::sys::Memory::MF_RWE_MASK) {
49 case llvm::sys::Memory::MF_READ:
51 case llvm::sys::Memory::MF_WRITE:
53 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_WRITE:
53 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_WRITE:
55 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_EXEC:
55 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_EXEC:
57 case llvm::sys::Memory::MF_READ | llvm::sys::Memory::MF_WRITE |
57 case llvm::sys::Memory::MF_READ | llvm::sys::Memory::MF_WRITE |
58 llvm::sys::Memory::MF_EXEC:
60 case llvm::sys::Memory::MF_EXEC:
155 EC = Memory::protectMappedMemory (Result, PFlags);
212 Memory::InvalidateInstructionCache(M.Address, M.AllocatedSize);
tools/llvm-jitlink/llvm-jitlink.cpp 264 if (auto EC = sys::Memory::releaseMappedMemory(KV.second))
274 if (auto EC = sys::Memory::protectMappedMemory(Block, Prot))
276 if (Prot & sys::Memory::MF_EXEC)
277 sys::Memory::InvalidateInstructionCache(Block.base(),
346 const sys::Memory::ProtectionFlags ReadWrite =
347 static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ |
348 sys::Memory::MF_WRITE);
352 sys::Memory::allocateMappedMemory(SlabSize, nullptr, ReadWrite, EC);
tools/llvm-rtdyld/llvm-rtdyld.cpp 248 sys::Memory::allocateMappedMemory(Size, nullptr,
249 sys::Memory::MF_READ |
250 sys::Memory::MF_WRITE,
302 sys::Memory::allocateMappedMemory(Size, nullptr,
303 sys::Memory::MF_READ |
304 sys::Memory::MF_WRITE,
330 sys::Memory::allocateMappedMemory(Size, nullptr,
331 sys::Memory::MF_READ |
332 sys::Memory::MF_WRITE,
555 if (auto EC = sys::Memory::protectMappedMemory(FM_MB,
556 sys::Memory::MF_READ |
557 sys::Memory::MF_EXEC))
unittests/Support/MemoryTest.cpp 60 case Memory::MF_READ:
61 case Memory::MF_WRITE:
62 case Memory::MF_READ|Memory::MF_WRITE:
62 case Memory::MF_READ|Memory::MF_WRITE:
63 return Memory::MF_READ|Memory::MF_WRITE;
63 return Memory::MF_READ|Memory::MF_WRITE;
64 case Memory::MF_READ|Memory::MF_EXEC:
64 case Memory::MF_READ|Memory::MF_EXEC:
65 case Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC:
65 case Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC:
65 case Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC:
66 case Memory::MF_EXEC:
67 return Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC;
67 return Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC;
67 return Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC;
70 return Memory::MF_READ|Memory::MF_WRITE;
70 return Memory::MF_READ|Memory::MF_WRITE;
99 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC);
111 MemoryBlock M1 = Memory::allocateMappedMemory(
112 sizeof(int), nullptr, Flags | Memory::MF_HUGE_HINT, EC);
127 MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC);
129 MemoryBlock M2 = Memory::allocateMappedMemory(64, nullptr, Flags, EC);
131 MemoryBlock M3 = Memory::allocateMappedMemory(32, nullptr, Flags, EC);
147 MemoryBlock M4 = Memory::allocateMappedMemory(16, nullptr, Flags, EC);
158 !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE)))
158 !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE)))
163 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,EC);
179 !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE)))
179 !((Flags & Memory::MF_READ) && (Flags & Memory::MF_WRITE)))
184 MemoryBlock M1 = Memory::allocateMappedMemory(sizeof(int), nullptr, Flags,
187 MemoryBlock M2 = Memory::allocateMappedMemory(8 * sizeof(int), nullptr, Flags,
190 MemoryBlock M3 = Memory::allocateMappedMemory(4 * sizeof(int), nullptr, Flags,
223 MemoryBlock M4 = Memory::allocateMappedMemory(64 * sizeof(int), nullptr,
243 if ((Flags & Memory::MF_EXEC) && IsMPROTECT())
247 MemoryBlock M1 = Memory::allocateMappedMemory(2 * sizeof(int), nullptr, Flags,
250 MemoryBlock M2 = Memory::allocateMappedMemory(8 * sizeof(int), nullptr, Flags,
253 MemoryBlock M3 = Memory::allocateMappedMemory(4 * sizeof(int), nullptr, Flags,
289 MemoryBlock M4 = Memory::allocateMappedMemory(16, nullptr, Flags, EC);
305 MemoryBlock M1 = Memory::allocateMappedMemory(16, nullptr, Flags, EC);
307 MemoryBlock M2 = Memory::allocateMappedMemory(64, &M1, Flags, EC);
309 MemoryBlock M3 = Memory::allocateMappedMemory(32, &M2, Flags, EC);
332 MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC);
334 MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC);
336 MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC);
355 MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC);
357 MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC);
359 MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC);
382 MemoryBlock M1 = Memory::allocateMappedMemory(16, &Near, Flags, EC);
384 MemoryBlock M2 = Memory::allocateMappedMemory(64, &Near, Flags, EC);
386 MemoryBlock M3 = Memory::allocateMappedMemory(32, &Near, Flags, EC);
409 MemoryBlock M1 = Memory::allocateMappedMemory(15, &Near, Flags, EC);
421 Memory::MF_READ,
422 Memory::MF_WRITE,
423 Memory::MF_READ|Memory::MF_WRITE,
423 Memory::MF_READ|Memory::MF_WRITE,
424 Memory::MF_EXEC,
425 Memory::MF_READ|Memory::MF_EXEC,
425 Memory::MF_READ|Memory::MF_EXEC,
426 Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC
426 Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC
426 Memory::MF_READ|Memory::MF_WRITE|Memory::MF_EXEC