Lines Matching refs:Memory
1 //===- Win32/Memory.cpp - Win32 Memory Implementation -----------*- C++ -*-===//
10 // This file provides the Win32 specific implementation of various Memory
29 case llvm::sys::Memory::MF_READ:
31 case llvm::sys::Memory::MF_WRITE:
34 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_WRITE:
36 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_EXEC:
38 case llvm::sys::Memory::MF_READ |
39 llvm::sys::Memory::MF_WRITE |
40 llvm::sys::Memory::MF_EXEC:
42 case llvm::sys::Memory::MF_EXEC:
70 MemoryBlock Memory::allocateMappedMemory(size_t NumBytes,
120 Memory::InvalidateInstructionCache(Result.Address, Result.Size);
125 std::error_code Memory::releaseMappedMemory(MemoryBlock &M) {
138 std::error_code Memory::protectMappedMemory(const MemoryBlock &M,
150 Memory::InvalidateInstructionCache(M.Address, M.Size);
158 void Memory::InvalidateInstructionCache(
164 MemoryBlock Memory::AllocateRWX(size_t NumBytes,
177 bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) {
193 bool Memory::setWritable(MemoryBlock &M, std::string *ErrMsg) {
200 bool Memory::setExecutable(MemoryBlock &M, std::string *ErrMsg) {
207 bool Memory::setRangeWritable(const void *Addr, size_t Size) {
219 Memory::InvalidateInstructionCache(Addr, Size);
224 bool Memory::setRangeExecutable(const void *Addr, size_t Size) {
238 Memory::InvalidateInstructionCache(Addr, Size);