Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/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
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DMemory.inc138 Result.AllocatedSize = PageSize * NumPages;
152 if (M.Address == nullptr || M.AllocatedSize == 0)
155 if (0 != ::munmap(M.Address, M.AllocatedSize))
159 M.AllocatedSize = 0;
167 if (M.Address == nullptr || M.AllocatedSize == 0)
177 alignAddr((const uint8_t *)M.Address + M.AllocatedSize, PageSize);
191 Memory::InvalidateInstructionCache(M.Address, M.AllocatedSize);
202 Memory::InvalidateInstructionCache(M.Address, M.AllocatedSize);
/freebsd/contrib/llvm-project/llvm/lib/Support/Windows/
H A DMemory.inc146 Result.AllocatedSize = AllocSize;
156 if (M.Address == 0 || M.AllocatedSize == 0)
163 M.AllocatedSize = 0;
170 if (M.Address == 0 || M.AllocatedSize == 0)
176 if (!VirtualProtect(M.Address, M.AllocatedSize, Protect, &OldFlags))
180 Memory::InvalidateInstructionCache(M.Address, M.AllocatedSize);
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp375 uint64_t AllocatedSize = 0; member in __anon463f3bdb0111::CallAnalyzer
1481 AllocatedSize = SaturatingMultiplyAdd( in visitAlloca()
1483 DL.getTypeAllocSize(Ty).getKnownMinValue(), AllocatedSize); in visitAlloca()
1484 if (AllocatedSize > InlineConstants::MaxSimplifiedDynamicAllocaToInline) in visitAlloca()
1493 AllocatedSize = SaturatingAdd(DL.getTypeAllocSize(Ty).getKnownMinValue(), in visitAlloca()
1494 AllocatedSize); in visitAlloca()
2602 if (IsCallerRecursive && AllocatedSize > RecurStackSizeThreshold) { in analyzeBlock()
2848 if (AllocatedSize > FinalStackSizeThreshold) in analyze()