Home
last modified time | relevance | path

Searched refs:Memory (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DMemory.cpp34 raw_ostream &operator<<(raw_ostream &OS, const Memory::ProtectionFlags &PF) { in operator <<()
35 assert((PF & ~(Memory::MF_READ | Memory::MF_WRITE | Memory::MF_EXEC)) == 0 && in operator <<()
38 return OS << (PF & Memory::MF_READ ? 'R' : '-') in operator <<()
39 << (PF & Memory::MF_WRITE ? 'W' : '-') in operator <<()
40 << (PF & Memory::MF_EXEC ? 'X' : '-'); in operator <<()
H A DFileOutputBuffer.cpp117 MemoryBlock MB = Memory::allocateMappedMemory( in createInMemoryBuffer()
118 Size, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC); in createInMemoryBuffer()
/openbsd-src/gnu/llvm/llvm/lib/Support/Windows/
H A DMemory.inc1 //===- 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:
35 case llvm::sys::Memory::MF_READ | llvm::sys::Memory::MF_WRITE |
36 llvm::sys::Memory::MF_EXEC:
38 case llvm::sys::Memory::MF_EXEC:
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Support/Unix/
H A DMemory.inc1 //===- Unix/Memory.cpp - Generic UNIX System Configuration ------*- C++ -*-===//
40 switch (Flags & llvm::sys::Memory::MF_RWE_MASK) {
41 case llvm::sys::Memory::MF_READ:
43 case llvm::sys::Memory::MF_WRITE:
45 case llvm::sys::Memory::MF_READ | llvm::sys::Memory::MF_WRITE:
47 case llvm::sys::Memory::MF_READ | llvm::sys::Memory::MF_EXEC:
49 case llvm::sys::Memory::MF_READ | llvm::sys::Memory::MF_WRITE |
50 llvm::sys::Memory::MF_EXEC:
52 case llvm::sys::Memory::MF_EXEC:
73 MemoryBlock Memory::allocateMappedMemory(size_t NumBytes,
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/AsmParser/
H A DX86Operand.h32 enum KindTy { Token, Register, Immediate, Memory, Prefix, DXRegister } Kind; enumerator
141 case Memory: in print()
186 assert(Kind == Memory && "Invalid access!"); in getMemDisp()
190 assert(Kind == Memory && "Invalid access!"); in getMemSegReg()
194 assert(Kind == Memory && "Invalid access!"); in getMemBaseReg()
198 assert(Kind == Memory && "Invalid access!"); in getMemDefaultBaseReg()
202 assert(Kind == Memory && "Invalid access!"); in getMemIndexReg()
206 assert(Kind == Memory && "Invalid access!"); in getMemScale()
210 assert(Kind == Memory && "Invalid access!"); in getMemModeSize()
214 assert(Kind == Memory && "Invalid access!"); in getMemFrontendSize()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DMemoryFlags.h44 inline sys::Memory::ProtectionFlags toSysMemoryProtectionFlags(MemProt MP) { in toSysMemoryProtectionFlags()
45 std::underlying_type_t<sys::Memory::ProtectionFlags> PF = 0; in toSysMemoryProtectionFlags()
47 PF |= sys::Memory::MF_READ; in toSysMemoryProtectionFlags()
49 PF |= sys::Memory::MF_WRITE; in toSysMemoryProtectionFlags()
51 PF |= sys::Memory::MF_EXEC; in toSysMemoryProtectionFlags()
52 return static_cast<sys::Memory::ProtectionFlags>(PF); in toSysMemoryProtectionFlags()
57 inline MemProt fromSysMemoryProtectionFlags(sys::Memory::ProtectionFlags PF) { in fromSysMemoryProtectionFlags()
59 if (PF & sys::Memory::MF_READ) in fromSysMemoryProtectionFlags()
61 if (PF & sys::Memory::MF_WRITE) in fromSysMemoryProtectionFlags()
63 if (PF & sys::Memory::MF_EXEC) in fromSysMemoryProtectionFlags()
/openbsd-src/gnu/llvm/llvm/include/llvm/ExecutionEngine/Orc/
H A DIndirectionUtils.h141 ResolverBlock = sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory( in LocalTrampolinePool()
143 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC)); in LocalTrampolinePool()
154 EC = sys::Memory::protectMappedMemory(ResolverBlock.getMemoryBlock(), in LocalTrampolinePool()
155 sys::Memory::MF_READ | in LocalTrampolinePool()
156 sys::Memory::MF_EXEC); in LocalTrampolinePool()
168 sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory( in grow()
170 sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC)); in grow()
187 if (auto EC = sys::Memory::protectMappedMemory( in grow()
189 sys::Memory::MF_READ | sys::Memory::MF_EXEC)) in grow()
328 sys::OwningMemoryBlock(sys::Memory::allocateMappedMemory( in create()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp106 sys::Memory::MF_READ | sys::Memory::MF_WRITE, ec); in allocateSection()
155 sys::Memory::MF_READ | sys::Memory::MF_EXEC); in finalizeMemory()
164 ec = applyMemoryGroupPermissions(RODataMem, sys::Memory::MF_READ); in finalizeMemory()
230 sys::Memory::InvalidateInstructionCache(Block.base(), in invalidateInstructionCache()
254 return sys::Memory::allocateMappedMemory(NumBytes, NearBlock, Flags, EC); in allocateMappedMemory()
259 return sys::Memory::protectMappedMemory(Block, Flags); in protectMappedMemory()
263 return sys::Memory::releaseMappedMemory(M); in releaseMappedMemory()
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DMemory.h45 friend class Memory; variable
52 class Memory {
152 Memory::releaseMappedMemory(M); in ~OwningMemoryBlock()
162 EC = Memory::releaseMappedMemory(M); in release()
173 raw_ostream &operator<<(raw_ostream &OS, const Memory::ProtectionFlags &PF);
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/AsmParser/
H A DARMAsmParser.cpp925 struct MemoryOp Memory; member
1118 if(!Memory.OffsetImm || Memory.OffsetRegNum) return false; in isThumbMemPC()
1119 if(Memory.BaseRegNum != ARM::PC) return false; in isThumbMemPC()
1120 if (const auto *CE = dyn_cast<MCConstantExpr>(Memory.OffsetImm)) in isThumbMemPC()
1372 if (Memory.BaseRegNum && in isMVEMem()
1373 !ARMMCRegisterClasses[ARM::GPRRegClassID].contains(Memory.BaseRegNum) && in isMVEMem()
1374 !ARMMCRegisterClasses[ARM::MQPRRegClassID].contains(Memory.BaseRegNum)) in isMVEMem()
1376 if (Memory.OffsetRegNum && in isMVEMem()
1378 Memory.OffsetRegNum)) in isMVEMem()
1385 if (Memory.BaseRegNum && in isGPRMem()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/JITLink/
H A DJITLinkMemoryManager.cpp259 if (auto EC = sys::Memory::releaseMappedMemory(FinalizationSegments)) { in finalize()
271 if (auto EC = sys::Memory::releaseMappedMemory(FinalizationSegments)) in abandon()
273 if (auto EC = sys::Memory::releaseMappedMemory(StandardSegments)) in abandon()
289 if (auto EC = sys::Memory::protectMappedMemory(MB, Prot)) in applyProtections()
291 if (Prot & sys::Memory::MF_EXEC) in applyProtections()
292 sys::Memory::InvalidateInstructionCache(MB.base(), MB.allocatedSize()); in applyProtections()
353 const sys::Memory::ProtectionFlags ReadWrite = in allocate()
354 static_cast<sys::Memory::ProtectionFlags>(sys::Memory::MF_READ | in allocate()
355 sys::Memory::MF_WRITE); in allocate()
358 Slab = sys::Memory::allocateMappedMemory(SegsSizes->total(), nullptr, in allocate()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DPredIteratorCache.h33 BumpPtrAllocator Memory; variable
52 Entry = Memory.Allocate<BasicBlock *>(PredCache.size()); in GetPreds()
74 Memory.Reset(); in clear()
/openbsd-src/gnu/gcc/gcc/config/s390/
H A Dconstraints.md57 ;; Q -- Memory reference without index register and with short displacement.
58 ;; R -- Memory reference with index register and short displacement.
59 ;; S -- Memory reference without index register but with long displacement.
60 ;; T -- Memory reference with index register and long displacement.
64 ;; Memory reference of the type specified by second letter that
351 ;; Memory constraints follow.
355 "Memory reference without index register and with short displacement"
361 "Memory reference with index register and short displacement"
366 "Memory reference without index register but with long displacement"
371 "Memory reference with index register and long displacement"
[all …]
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DSimpleExecutorMemoryManager.cpp26 auto MB = sys::Memory::allocateMappedMemory( in allocate()
27 Size, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC); in allocate()
103 if (auto EC = sys::Memory::releaseMappedMemory(MB)) in finalize()
133 if (auto EC = sys::Memory::protectMappedMemory( in finalize()
138 sys::Memory::InvalidateInstructionCache(Mem, Seg.Size); in finalize()
221 if (auto EC = sys::Memory::releaseMappedMemory(MB)) in deallocateImpl()
/openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/fuzz/
H A Dget_error_info_fuzzer.cpp27 const char *Memory = MemoryAndTags.c_str(); in LLVMFuzzerTestOneInput() local
30 const char *MemoryTags = Memory + MemorySize; in LLVMFuzzerTestOneInput()
56 RegionInfo.data(), RingBufferBytes.data(), Memory, in LLVMFuzzerTestOneInput()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/
H A DMemoryMapper.cpp43 auto MB = sys::Memory::allocateMappedMemory( in reserve()
44 NumBytes, nullptr, sys::Memory::MF_READ | sys::Memory::MF_WRITE, EC); in reserve()
81 if (auto EC = sys::Memory::protectMappedMemory( in initialize()
87 sys::Memory::InvalidateInstructionCache(Base.toPtr<void *>(), Size); in initialize()
123 if (auto EC = sys::Memory::protectMappedMemory( in deinitialize()
125 sys::Memory::ProtectionFlags::MF_READ | in deinitialize()
126 sys::Memory::ProtectionFlags::MF_WRITE)) { in deinitialize()
162 auto EC = sys::Memory::releaseMappedMemory(MB); in release()
/openbsd-src/gnu/llvm/llvm/docs/
H A DMemTagSanitizer.rst16 tool** based on the Armv8.5-A `Memory Tagging Extension`_. It
72 <https://github.com/google/sanitizers/wiki/Stack-instrumentation-with-ARM-Memory-Tagging-Extension-…
93 …eveloper Meeting 2018 talk on Memory Tagging <https://llvm.org/devmtg/2018-10/slides/Serebryany-St…
94 * `Memory Tagging Whitepaper <https://arxiv.org/pdf/1802.09517.pdf>`_
/openbsd-src/gnu/llvm/llvm/lib/Target/Xtensa/
H A DXtensaOperands.td82 // Memory offset 0..255 for 8-bit memory accesses
88 // Memory offset 0..510 for 16-bit memory accesses
94 // Memory offset 0..1020 for 32-bit memory accesses
100 // Memory offset 0..60 for 32-bit memory accesses
136 // Memory address operands
/openbsd-src/gnu/llvm/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp252 sys::Memory::allocateMappedMemory(Size, nullptr, in preallocateSlab()
253 sys::Memory::MF_READ | in preallocateSlab()
254 sys::Memory::MF_WRITE, in preallocateSlab()
310 sys::Memory::allocateMappedMemory(Size, nullptr, in allocateCodeSection()
311 sys::Memory::MF_READ | in allocateCodeSection()
312 sys::Memory::MF_WRITE, in allocateCodeSection()
339 sys::Memory::allocateMappedMemory(Size, nullptr, in allocateDataSection()
340 sys::Memory::MF_READ | in allocateDataSection()
341 sys::Memory::MF_WRITE, in allocateDataSection()
606 if (auto EC = sys::Memory::protectMappedMemory(FM_MB, in executeInput()
[all …]
/openbsd-src/gnu/llvm/clang/lib/AST/Interp/
H A DInterpState.cpp63 char *Memory = reinterpret_cast<char *>(malloc(sizeof(DeadBlock) + Size)); in deallocate() local
64 auto *D = new (Memory) DeadBlock(DeadBlocks, B); in deallocate()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DCalledValuePropagation.cpp51 enum class IPOGrouping { Register, Return, Memory }; enumerator
137 case IPOGrouping::Memory: in ComputeLatticeVal()
208 else if (Key.getInt() == IPOGrouping::Memory) in PrintLatticeKey()
320 auto MemGV = CVPLatticeKey(GV, IPOGrouping::Memory); in visitLoad()
338 auto MemGV = CVPLatticeKey(GV, IPOGrouping::Memory); in visitStore()
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DPrecompiledPreamble.cpp356 S->Memory = std::move(Buf); in inMemory()
362 if (Memory) in getKind()
374 return StringRef(Memory->Data.data(), Memory->Data.size()); in memoryContents()
381 if (!Memory) in shrink()
383 Memory->Data = decltype(Memory->Data)(Memory->Data); in shrink()
391 std::shared_ptr<PCHBuffer> Memory; member in PrecompiledPreamble::PCHStorage
/openbsd-src/gnu/llvm/llvm/tools/llvm-exegesis/lib/
H A DAssembler.h115 void operator()(char *Memory) const { in operator()
116 ((void (*)(char *))(intptr_t)FunctionBytes.data())(Memory); in operator()
/openbsd-src/gnu/llvm/llvm/lib/Target/Lanai/
H A DLanaiInstrFormats.td169 // Register Memory (RM)
178 // Rd <- Memory(ea) (Load) see below for the
179 // Memory(ea) <- Rd (Store) definition of ea.
219 // Register Register Memory (RRM)
228 // Rd <- Memory(ea) (Load) see below for the
229 // Memory(ea) <- Rd (Store) definition of ea.
419 // If S = 0 (LOAD): Rd <- Memory(address);
420 // If S = 1 (STORE): Memory(address) <- Rd
479 // Memory(ea) <- (least significant byte of Rr)
481 // Memory(ea) <- (least significant half-word of Rr)
[all …]
/openbsd-src/gnu/llvm/clang/lib/Driver/
H A DSanitizerArgs.cpp45 SanitizerKind::Memory | SanitizerKind::DataFlow;
50 SanitizerKind::MemtagGlobals | SanitizerKind::Memory |
168 {"msan_ignorelist.txt", SanitizerKind::Memory}, in addDefaultIgnorelists()
487 SanitizerKind::Thread | SanitizerKind::Memory), in SanitizerArgs()
488 std::make_pair(SanitizerKind::Thread, SanitizerKind::Memory), in SanitizerArgs()
490 SanitizerKind::Thread | SanitizerKind::Memory), in SanitizerArgs()
493 SanitizerKind::Thread | SanitizerKind::Memory), in SanitizerArgs()
496 SanitizerKind::Memory | SanitizerKind::KernelAddress), in SanitizerArgs()
500 SanitizerKind::Memory | SanitizerKind::KernelAddress), in SanitizerArgs()
505 SanitizerKind::Thread | SanitizerKind::Memory | in SanitizerArgs()
[all …]

12345678910>>...16