Lines Matching refs:Memory
1 //===- Unix/Memory.cpp - Generic UNIX System Configuration ------*- C++ -*-===//
45 case llvm::sys::Memory::MF_READ:
47 case llvm::sys::Memory::MF_WRITE:
49 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_WRITE:
51 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_EXEC:
53 case llvm::sys::Memory::MF_READ | llvm::sys::Memory::MF_WRITE |
54 llvm::sys::Memory::MF_EXEC:
56 case llvm::sys::Memory::MF_EXEC:
82 Memory::allocateMappedMemory(size_t NumBytes,
134 Memory::InvalidateInstructionCache(Result.Address, Result.Size);
140 Memory::releaseMappedMemory(MemoryBlock &M) {
154 Memory::protectMappedMemory(const MemoryBlock &M, unsigned Flags) {
169 Memory::InvalidateInstructionCache(M.Address, M.Size);
180 Memory::AllocateRWX(size_t NumBytes, const MemoryBlock* NearBlock,
219 MakeErrMsg(ErrMsg, "Can't allocate RWX Memory");
248 bool Memory::ReleaseRWX(MemoryBlock &M, std::string *ErrMsg) {
251 return MakeErrMsg(ErrMsg, "Can't release RWX Memory");
255 bool Memory::setWritable (MemoryBlock &M, std::string *ErrMsg) {
258 Memory::InvalidateInstructionCache(M.Address, M.Size);
267 bool Memory::setExecutable (MemoryBlock &M, std::string *ErrMsg) {
269 Memory::InvalidateInstructionCache(M.Address, M.Size);
279 bool Memory::setRangeWritable(const void *Addr, size_t Size) {
290 bool Memory::setRangeExecutable(const void *Addr, size_t Size) {
304 void Memory::InvalidateInstructionCache(const void *Addr,