Home
last modified time | relevance | path

Searched refs:AllocSize (Results 1 – 25 of 54) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DValue.cpp34 static unsigned char *CreatePayload(void *DtorF, size_t AllocSize, in CreatePayload() argument
36 if (AllocSize < sizeof(Canary)) in CreatePayload()
37 AllocSize = sizeof(Canary); in CreatePayload()
39 new unsigned char[ValueStorage::getPayloadOffset() + AllocSize]; in CreatePayload()
40 ValueStorage *VS = new (Buf) ValueStorage(DtorF, AllocSize, ElementsSize); in CreatePayload()
67 size_t Stride = AllocSize / Elements; in Release()
83 ValueStorage(void *DtorF, size_t AllocSize, size_t ElementsNum) in ValueStorage() argument
85 AllocSize(AllocSize), Elements(ElementsNum) {} in ValueStorage()
89 size_t AllocSize = 0; member in __anonc81f9c820111::ValueStorage
160 size_t AllocSize = in Value() local
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp50 bool tryAllocPreloadSGPRs(unsigned AllocSize, uint64_t ArgOffset, in tryAllocPreloadSGPRs() argument
54 if (!isAligned(Align(4), ArgOffset) && AllocSize < 4) in tryAllocPreloadSGPRs()
60 unsigned NumPreloadSGPRs = alignTo(AllocSize, 4) / 4; in tryAllocPreloadSGPRs()
140 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy); in lowerKernelArguments() local
144 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABITypeAlign) + AllocSize; in lowerKernelArguments()
150 if (PreloadInfo.tryAllocPreloadSGPRs(AllocSize, EltOffset, in lowerKernelArguments()
H A DAMDGPUPromoteAlloca.cpp1241 uint64_t AllocSize = DL.getTypeAllocSize(GV->getValueType()); in hasSufficientLocalMem() local
1245 if (GV->hasExternalLinkage() && AllocSize == 0) { in hasSufficientLocalMem()
1253 AllocatedSizes.emplace_back(AllocSize, Alignment); in hasSufficientLocalMem()
1360 uint32_t AllocSize = in tryPromoteAllocaToLDS() local
1362 NewSize += AllocSize; in tryPromoteAllocaToLDS()
1365 LLVM_DEBUG(dbgs() << " " << AllocSize in tryPromoteAllocaToLDS()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DStringMapEntry.h51 size_t AllocSize = EntrySize + KeyLength + 1; in allocateWithKey() local
52 void *Allocation = Allocator.Allocate(AllocSize, EntryAlign); in allocateWithKey()
144 size_t AllocSize = sizeof(StringMapEntry) + this->getKeyLength() + 1; in Destroy() local
146 allocator.Deallocate(static_cast<void *>(this), AllocSize, in Destroy()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DDescriptor.cpp233 MDSize(MD.value_or(0)), AllocSize(align(Size + MDSize)), IsConst(IsConst), in Descriptor()
236 assert(AllocSize >= Size); in Descriptor()
246 AllocSize(align(Size) + sizeof(InitMapPtr) + MDSize), IsConst(IsConst), in Descriptor()
257 AllocSize(alignof(void *) + sizeof(InitMapPtr)), IsConst(true), in Descriptor()
270 AllocSize(std::max<size_t>(alignof(void *), Size) + MDSize), in Descriptor()
282 AllocSize(alignof(void *) + sizeof(InitMapPtr)), ElemDesc(Elem), in Descriptor()
292 Size(ElemSize), MDSize(MD.value_or(0)), AllocSize(Size + MDSize), in Descriptor()
301 AllocSize(Size + MDSize), ElemRecord(nullptr), IsConst(true), in Descriptor()
H A DDescriptor.h90 const unsigned AllocSize; member
173 unsigned getAllocSize() const { return AllocSize; } in getAllocSize()
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dcommon.cpp41 size_t AllocSize) { in RecordAllocation() argument
43 RequestedSize = AllocSize; in RecordAllocation()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DStackProtector.cpp255 static bool HasAddressTaken(const Instruction *AI, TypeSize AllocSize, in HasAddressTaken() argument
265 !TypeSize::isKnownGE(AllocSize, MemLoc->Size.getValue())) in HasAddressTaken()
303 if (!TypeSize::isKnownGT(AllocSize, OffsetSize)) in HasAddressTaken()
309 TypeSize::getFixed(AllocSize.getKnownMinValue()) - OffsetSize; in HasAddressTaken()
317 if (HasAddressTaken(I, AllocSize, M, VisitedPHIs)) in HasAddressTaken()
325 if (HasAddressTaken(PN, AllocSize, M, VisitedPHIs)) in HasAddressTaken()
/freebsd/contrib/llvm-project/llvm/lib/Support/Windows/
H A DMemory.inc132 size_t AllocSize = NumBlocks * Granularity;
133 void *PA = ::VirtualAlloc(reinterpret_cast<void *>(Start), AllocSize,
146 Result.AllocatedSize = AllocSize;
150 Memory::InvalidateInstructionCache(Result.Address, AllocSize);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUMemoryUtils.cpp43 uint64_t AllocSize = DL.getTypeAllocSize(GV.getValueType()); in isDynamicLDS() local
44 return GV.hasExternalLinkage() && AllocSize == 0; in isDynamicLDS()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
H A DSimpleExecutorMemoryManager.cpp59 size_t AllocSize = 0; in finalize() local
68 AllocSize = I->second.Size; in finalize()
71 ExecutorAddr AllocEnd = Base + ExecutorAddrDiff(AllocSize); in finalize()
/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DItaniumDemangle.cpp295 static constexpr size_t AllocSize = 4096; member in __anon39624eb80211::BumpPointerAllocator
296 static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
298 alignas(long double) char InitialBuffer[AllocSize];
302 char* NewMeta = static_cast<char *>(std::malloc(AllocSize)); in grow()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DMangler.cpp108 uint64_t AllocSize = A.hasPassPointeeByValueCopyAttr() ? in addByteCountSuffix() local
113 ArgWords += alignTo(AllocSize, PtrSize); in addByteCountSuffix()
H A DIRBuilder.cpp302 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
315 if (isConstantOne(AllocSize)) { in CreateMalloc()
316 AllocSize = ArraySize; // Operand * 1 = Operand in CreateMalloc()
319 AllocSize = CreateMul(ArraySize, AllocSize, "mallocsize"); in CreateMalloc()
323 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in CreateMalloc()
331 CallInst *MCall = CreateCall(MallocFunc, AllocSize, OpB, Name); in CreateMalloc()
345 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
348 return CreateMalloc(IntPtrTy, AllocTy, AllocSize, ArraySize, std::nullopt, in CreateMalloc()
H A DAttributes.cpp230 return get(Context, AllocSize, packAllocSizeArgs(ElemSizeArg, NumElemsArg)); in getWithAllocSizeArgs()
370 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
466 if (hasAttribute(Attribute::AllocSize)) { in getAsString()
1015 if (auto A = findEnumAttribute(Attribute::AllocSize)) in getAllocSizeArgs()
1772 Attribute A = getAttribute(Attribute::AllocSize); in getAllocSizeArgs()
1817 return addRawIntAttr(Attribute::AllocSize, RawArgs); in addAllocSizeAttrFromRawRepr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp186 if (auto AllocSize = NF->getAttributes().getFnAttrs().getAllocSizeArgs()) { in doPromotion() local
187 unsigned Arg1 = NewArgIndices[AllocSize->first]; in doPromotion()
190 if (AllocSize->second) { in doPromotion()
191 Arg2 = NewArgIndices[*AllocSize->second]; in doPromotion()
H A DGlobalOpt.cpp903 uint64_t AllocSize, Constant *InitVal, in OptimizeGlobalAddressOfAllocation() argument
911 AllocSize); in OptimizeGlobalAddressOfAllocation()
928 Builder.CreateMemSet(NewGV, InitVal, AllocSize, std::nullopt); in OptimizeGlobalAddressOfAllocation()
1077 uint64_t AllocSize; in tryToOptimizeStoreOfAllocationToGlobal() local
1078 if (!getObjectSize(CI, AllocSize, DL, TLI, ObjectSizeOpts())) in tryToOptimizeStoreOfAllocationToGlobal()
1084 if (AllocSize >= 2048) in tryToOptimizeStoreOfAllocationToGlobal()
1103 OptimizeGlobalAddressOfAllocation(GV, CI, AllocSize, InitVal, DL, TLI); in tryToOptimizeStoreOfAllocationToGlobal()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DSparc.cpp309 auto AllocSize = getDataLayout().getTypeAllocSize(AI.getCoerceToType()); in EmitVAArg() local
310 Stride = CharUnits::fromQuantity(AllocSize).alignTo(SlotSize); in EmitVAArg()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp1028 const uint64_t AllocSize; member in AllocaSlices::SliceBuilder
1053 if (Size == 0 || Offset.uge(AllocSize)) { in insertUse()
1057 << AllocSize << " byte alloca:\n" in insertUse()
1073 if (Size > AllocSize - BeginOffset) { in insertUse()
1079 EndOffset = AllocSize; in insertUse()
1137 if (GEPOffset.ugt(AllocSize)) in visitGetElementPtrInst()
1191 if (Size > AllocSize || Offset.ugt(AllocSize - Size)) { in visitStoreInst()
1209 (IsOffsetKnown && Offset.uge(AllocSize))) in visitMemSetInst()
1240 if (Offset.uge(AllocSize)) { in visitMemTransferInst()
1313 insertUse(II, Offset, AllocSize, true); in visitIntrinsicInst()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FrameLowering.h155 int64_t RealignmentPadding, StackOffset AllocSize,
H A DAArch64FrameLowering.cpp725 int64_t RealignmentPadding, StackOffset AllocSize, bool NeedsWinCFI, in allocateStackSpace() argument
729 if (!AllocSize) in allocateStackSpace()
747 emitFrameOffset(MBB, MBBI, DL, TargetReg, AArch64::SP, -AllocSize, &TII, in allocateStackSpace()
772 if (AllocSize.getScalable() == 0 && RealignmentPadding == 0) { in allocateStackSpace()
777 .addImm(AllocSize.getFixed()) in allocateStackSpace()
801 if (upperBound(AllocSize) + RealignmentPadding <= ProbeSize) { in allocateStackSpace()
807 emitFrameOffset(MBB, MBBI, DL, ScratchReg, AArch64::SP, -AllocSize, &TII, in allocateStackSpace()
818 if (FollowupAllocs || upperBound(AllocSize) + RealignmentPadding > in allocateStackSpace()
836 emitFrameOffset(MBB, MBBI, DL, TargetReg, AArch64::SP, -AllocSize, &TII, in allocateStackSpace()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprCXX.cpp1429 ValueTy AllocSize; member in __anon1726de420411::CallDeleteDuringNew
1443 ValueTy AllocSize, bool PassAlignmentToPlacementDelete, in CallDeleteDuringNew() argument
1447 OperatorDelete(OperatorDelete), Ptr(Ptr), AllocSize(AllocSize), in CallDeleteDuringNew()
1480 DeleteArgs.add(Traits::get(CGF, AllocSize), in Emit()
1509 llvm::Value *AllocSize, in EnterNewDeleteCleanup() argument
1531 AllocSize, in EnterNewDeleteCleanup()
1546 DominatingValue<RValue>::save(CGF, RValue::get(AllocSize)); in EnterNewDeleteCleanup()
/freebsd/contrib/llvm-project/clang/lib/Rewrite/
H A DRewriteRope.cpp798 unsigned AllocSize = offsetof(RopeRefCountString, Data) + AllocChunkSize; in MakeRopeString() local
799 auto *Res = reinterpret_cast<RopeRefCountString *>(new char[AllocSize]); in MakeRopeString()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1827 int AllocSize = DL.getTypeAllocSize(CPV->getType()); in bufferLEByte() local
1831 AggBuffer->addZeros(Bytes ? Bytes : AllocSize); in bufferLEByte()
1860 AggBuffer->addZeros(AllocSize); in bufferLEByte()
1881 AggBuffer->addZeros(AllocSize); in bufferLEByte()
1890 if (Bytes > AllocSize) in bufferLEByte()
1891 AggBuffer->addZeros(Bytes - AllocSize); in bufferLEByte()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DAMDGPUEmitPrintf.cpp279 int AllocSize = M->getDataLayout().getTypeAllocSize(Args[i]->getType()); in callBufferedPrintfStart() local
282 BufSize += std::max(AllocSize, 8); in callBufferedPrintfStart()

123