| /src/external/apache2/llvm/dist/llvm/lib/Support/ |
| Memory.cpp | 1 //===- Memory.cpp - Memory Handling Support ---------------------*- C++ -*-===// 9 // This file defines some helpful functions for allocating memory and dealing 10 // with memory mapped files 14 #include "llvm/Support/Memory.h" 24 #include "Unix/Memory.inc" 27 #include "Windows/Memory.inc" 35 raw_ostream &operator<<(raw_ostream &OS, const Memory::ProtectionFlags &PF) { 36 assert((PF & ~(Memory::MF_READ | Memory::MF_WRITE | Memory::MF_EXEC)) == 0 & [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Support/Windows/ |
| Memory.inc | 1 //===- Win32/Memory.cpp - Win32 Memory Implementation -----------*- C++ -*-===// 9 // This file provides the Win32 specific implementation of various Memory 23 switch (Flags & llvm::sys::Memory::MF_RWE_MASK) { 26 case llvm::sys::Memory::MF_READ: 28 case llvm::sys::Memory::MF_WRITE: 31 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_WRITE: 33 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_EXEC [all...] |
| /src/sys/rump/dev/lib/libmd/ |
| Makefile | 7 COMMENT=Memory disk device driver
|
| /src/sys/rump/fs/lib/libmfs/ |
| Makefile | 7 COMMENT=Memory File System (in-memory FFS)
|
| /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/JITLink/ |
| JITLinkMemoryManager.cpp | 55 if (auto EC = sys::Memory::releaseMappedMemory(Slab)) 65 if (auto EC = sys::Memory::protectMappedMemory(Block, Prot)) 67 if (Prot & sys::Memory::MF_EXEC) 68 sys::Memory::InvalidateInstructionCache(Block.base(), 82 const sys::Memory::ProtectionFlags ReadWrite = 83 static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ | 84 sys::Memory::MF_WRITE); 104 sys::Memory::allocateMappedMemory(TotalSize, nullptr, ReadWrite, EC); 109 // Allocate segment memory from the slab [all...] |
| MachOLinkGraphBuilder.cpp | 100 auto Prot = static_cast<sys::Memory::ProtectionFlags>( 101 sys::Memory::MF_READ | sys::Memory::MF_WRITE); 173 sys::Memory::ProtectionFlags Prot; 175 Prot = static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ | 176 sys::Memory::MF_EXEC); 178 Prot = static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ | 179 sys::Memory::MF_WRITE) [all...] |
| ELF_x86_64.cpp | 115 GOTSection = &G.createSection(ELFGOTSectionName, sys::Memory::MF_READ); 121 auto StubsProt = static_cast<sys::Memory::ProtectionFlags>( 122 sys::Memory::MF_READ | sys::Memory::MF_EXEC); 254 auto Prot = static_cast<sys::Memory::ProtectionFlags>( 255 sys::Memory::MF_READ | sys::Memory::MF_WRITE); 369 sys::Memory::ProtectionFlags Prot; 371 Prot = static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ [all...] |
| JITLinkGeneric.cpp | 54 // Allocate memory for segments. 131 // Copy block content to working memory. 224 << static_cast<sys::Memory::ProtectionFlags>(KV.first) << ":\n"; 241 // Compute segment sizes and allocate memory. 272 << static_cast<sys::Memory::ProtectionFlags>(Prot) 287 dbgs() << "JIT linker got memory (working -> target):\n"; 289 auto Prot = static_cast<sys::Memory::ProtectionFlags>(KV.first); 302 Alloc->getTargetMemory(static_cast<sys::Memory::ProtectionFlags>(Prot)); 363 Alloc.getWorkingMemory(static_cast<sys::Memory::ProtectionFlags>(Prot)); 369 << static_cast<sys::Memory::ProtectionFlags>(Prot) << " [ [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
| Memory.h | 1 //===- llvm/Support/Memory.h - Memory Support -------------------*- C++ -*-===// 9 // This file declares the llvm::sys::Memory class. 26 /// This class encapsulates the notion of a memory block which has an address 27 /// and a size. It is used by the Memory class (a friend) as the result of 28 /// various memory allocation operations. 29 /// @see Memory 30 /// Memory block abstraction. 42 void *Address; ///< Address of first byte of memory area 43 size_t AllocatedSize; ///< Size, in bytes of the memory are [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/IR/ |
| PredIteratorCache.h | 32 /// Memory - This is the space that holds cached preds. 33 BumpPtrAllocator Memory; 52 Entry = Memory.Allocate<BasicBlock *>(PredCache.size()); 74 Memory.Reset();
|
| /src/external/apache2/llvm/dist/llvm/lib/Support/Unix/ |
| Memory.inc | 1 //===- Unix/Memory.cpp - Generic UNIX System Configuration ------*- C++ -*-===// 9 // This file defines some functions for various memory management utilities. 47 switch (Flags & llvm::sys::Memory::MF_RWE_MASK) { 48 case llvm::sys::Memory::MF_READ: 50 case llvm::sys::Memory::MF_WRITE: 52 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_WRITE: 54 case llvm::sys::Memory::MF_READ|llvm::sys::Memory::MF_EXEC: 56 case llvm::sys::Memory::MF_READ | llvm::sys::Memory::MF_WRITE [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/ |
| SectionMemoryManager.cpp | 1 //===- SectionMemoryManager.cpp - Memory manager for MCJIT/RtDyld *- C++ -*-==// 9 // This file implements the section-based memory manager used by the MCJIT 64 // Look in the list of free memory regions and use a block there if one 94 // No pre-allocated free block was large enough. Allocate a new memory region. 96 // be updated later based on memory group. 101 // FIXME: Initialize the Near member for each memory group to avoid 106 sys::Memory::MF_READ | sys::Memory::MF_WRITE, ec); 124 // Remember that we allocated this memory 135 // The allocateMappedMemory may allocate much more memory than we need. I [all...] |
| /src/sys/dev/acpi/acpica/ |
| OsdMemory.c | 41 * 6.2: Memory management. 59 * Map physical memory into the caller's address space. 81 * Remove a physical to logical memory mapping. 106 * Allocate memory from the dynamic memory pool. 118 * Free previously allocated memory. 121 AcpiOsFree(void *Memory) 124 free(Memory, M_ACPI); 131 * Check if a memory region is readable. 143 * Check if a memory region is writable (and readable) [all...] |
| /src/sys/external/bsd/acpica/dist/include/platform/ |
| aclinuxex.h | 102 void *Memory) 104 kfree (Memory);
|
| /src/external/apache2/llvm/dist/clang/lib/AST/Interp/ |
| InterpState.cpp | 63 char *Memory = reinterpret_cast<char *>(malloc(sizeof(DeadBlock) + Size)); 64 auto *D = new (Memory) DeadBlock(DeadBlocks, B);
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/Orc/ |
| OrcRemoteTargetServer.h | 25 #include "llvm/Support/Memory.h" 34 #include <memory> 121 sys::Memory::releaseMappedMemory(Alloc.second); 126 sys::MemoryBlock MB = sys::Memory::allocateMappedMemory( 127 Size, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC); 142 sys::Memory::protectMappedMemory(I->second, Flags)); 298 ResolverBlock = sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory( 300 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC)) [all...] |
| IndirectionUtils.h | 22 #include "llvm/Support/Memory.h" 31 #include <memory> 134 ResolverBlock = sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory( 136 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC)); 147 EC = sys::Memory::protectMappedMemory(ResolverBlock.getMemoryBlock(), 148 sys::Memory::MF_READ | 149 sys::Memory::MF_EXEC); 161 sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory( 163 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC)) [all...] |
| OrcRPCTargetProcessControl.h | 83 static_cast<sys::Memory::ProtectionFlags>(KV.first)), 135 static_cast<sys::Memory::ProtectionFlags>(KV.first)), 161 static_cast<sys::Memory::ProtectionFlags>(KV.first)), 173 << ((KV.first & sys::Memory::MF_READ) ? 'R' : '-') 174 << ((KV.first & sys::Memory::MF_WRITE) ? 'W' : '-') 175 << ((KV.first & sys::Memory::MF_EXEC) ? 'X' : '-') 205 << ((KV.first & sys::Memory::MF_READ) ? 'R' : '-') 206 << ((KV.first & sys::Memory::MF_WRITE) ? 'W' : '-') 207 << ((KV.first & sys::Memory::MF_EXEC) ? 'X' : '-')
|
| OrcRemoteTargetClient.h | 32 #include "llvm/Support/Memory.h" 37 #include <memory> 49 /// This class provides utilities (including memory manager, indirect stubs 59 /// Remote-mapped RuntimeDyld-compatible memory manager. 185 sys::Memory::MF_READ | sys::Memory::MF_EXEC)) 189 sys::Memory::MF_READ)) 193 sys::Memory::MF_READ | sys::Memory::MF_WRITE)) 308 << (Permissions & sys::Memory::MF_READ ? 'R' : '-' [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/Orc/ |
| TPCIndirectionUtils.cpp | 106 static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ | 107 sys::Memory::MF_EXEC); 290 static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ | 291 sys::Memory::MF_EXEC); 357 static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ | 358 sys::Memory::MF_EXEC); 360 static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/X86/AsmParser/ |
| X86Operand.h | 23 #include <memory> 30 enum KindTy { Token, Register, Immediate, Memory, Prefix, DXRegister } Kind; 67 /// If the memory operand is unsized and there are multiple instruction 130 case Memory: 131 OS << "Memory: ModeSize=" << Mem.ModeSize; 175 assert(Kind == Memory && "Invalid access!"); 179 assert(Kind == Memory && "Invalid access!"); 183 assert(Kind == Memory && "Invalid access!"); 187 assert(Kind == Memory && "Invalid access!"); 191 assert(Kind == Memory && "Invalid access!") [all...] |
| /src/external/apache2/llvm/dist/llvm/tools/llvm-exegesis/lib/ |
| Assembler.h | 18 #include <memory> 115 void operator()(char *Memory) const { 116 ((void (*)(char *))(intptr_t)FunctionBytes.data())(Memory);
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/Orc/TargetProcess/ |
| OrcRPCTPCServer.h | 25 #include "llvm/Support/Memory.h" 43 /// Convert from sys::Memory::ProtectionFlags 45 toWireProtectionFlags(sys::Memory::ProtectionFlags PF) { 47 if (PF & sys::Memory::MF_READ) 49 if (PF & sys::Memory::MF_WRITE) 51 if (PF & sys::Memory::MF_EXEC) 56 inline sys::Memory::ProtectionFlags 60 PF |= sys::Memory::MF_READ; 62 PF |= sys::Memory::MF_WRITE; 64 PF |= sys::Memory::MF_EXEC [all...] |
| /src/external/apache2/llvm/dist/llvm/lib/Target/ARM/AsmParser/ |
| ARMAsmParser.cpp | 64 #include <memory> 915 struct MemoryOp Memory; 1095 // checks whether this operand is a memory operand computed as an offset 1108 if(!Memory.OffsetImm || Memory.OffsetRegNum) return false; 1109 if(Memory.BaseRegNum != ARM::PC) return false; 1110 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) 1362 if (Memory.BaseRegNum && 1363 !ARMMCRegisterClasses[ARM::GPRRegClassID].contains(Memory.BaseRegNum) && 1364 !ARMMCRegisterClasses[ARM::MQPRRegClassID].contains(Memory.BaseRegNum) [all...] |
| /src/external/apache2/llvm/dist/llvm/include/llvm/ExecutionEngine/JITLink/ |
| JITLinkMemoryManager.h | 21 #include "llvm/Support/Memory.h" 29 /// Manages allocations of JIT memory. 35 using ProtectionFlags = sys::Memory::ProtectionFlags; 57 /// Represents an allocation created by the memory manager. 60 /// working and target memory, and for transfering from working to target 61 /// memory. 69 /// Should return the address of linker working memory for the segment with 77 /// Should transfer from working memory to target memory, and release 78 /// working memory [all...] |