Home
last modified time | relevance | path

Searched refs:AllocatedSize (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DMemory.h33 MemoryBlock() : Address(nullptr), AllocatedSize(0) {} in MemoryBlock()
35 : Address(addr), AllocatedSize(allocatedSize) {} in MemoryBlock()
39 size_t allocatedSize() const { return AllocatedSize; } in allocatedSize()
43 size_t AllocatedSize; ///< Size, in bytes of the memory area variable
/llvm-project-15.0.7/llvm/lib/Support/Unix/
H A DMemory.inc140 Result.AllocatedSize = PageSize*NumPages;
155 if (M.Address == nullptr || M.AllocatedSize == 0)
158 if (0 != ::munmap(M.Address, M.AllocatedSize))
162 M.AllocatedSize = 0;
170 if (M.Address == nullptr || M.AllocatedSize == 0)
178 uintptr_t End = alignAddr((const uint8_t *)M.Address + M.AllocatedSize, PageSize);
191 Memory::InvalidateInstructionCache(M.Address, M.AllocatedSize);
202 Memory::InvalidateInstructionCache(M.Address, M.AllocatedSize);
/llvm-project-15.0.7/llvm/lib/Support/Windows/
H A DMemory.inc148 Result.AllocatedSize = AllocSize;
158 if (M.Address == 0 || M.AllocatedSize == 0)
165 M.AllocatedSize = 0;
172 if (M.Address == 0 || M.AllocatedSize == 0)
178 if (!VirtualProtect(M.Address, M.AllocatedSize, Protect, &OldFlags))
182 Memory::InvalidateInstructionCache(M.Address, M.AllocatedSize);
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInlineCost.cpp335 uint64_t AllocatedSize = 0; member in __anon9893a50b0111::CallAnalyzer
1364 AllocatedSize = SaturatingMultiplyAdd( in visitAlloca()
1366 DL.getTypeAllocSize(Ty).getKnownMinSize(), AllocatedSize); in visitAlloca()
1367 if (AllocatedSize > InlineConstants::MaxSimplifiedDynamicAllocaToInline) in visitAlloca()
1376 AllocatedSize = in visitAlloca()
1377 SaturatingAdd(DL.getTypeAllocSize(Ty).getKnownMinSize(), AllocatedSize); in visitAlloca()
2453 if (IsCallerRecursive && AllocatedSize > RecurStackSizeThreshold) { in analyzeBlock()
2700 if (AllocatedSize > StackSizeThreshold) in analyze()