/freebsd/contrib/llvm-project/clang/lib/Interpreter/ |
H A D | Value.cpp | 34 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 D | AMDGPULowerKernelArguments.cpp | 50 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 D | AMDGPUPromoteAlloca.cpp | 1241 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 D | StringMapEntry.h | 51 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 D | Descriptor.cpp | 233 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 D | Descriptor.h | 90 const unsigned AllocSize; member 173 unsigned getAllocSize() const { return AllocSize; } in getAllocSize()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/ |
H A D | common.cpp | 41 size_t AllocSize) { in RecordAllocation() argument 43 RequestedSize = AllocSize; in RecordAllocation()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | StackProtector.cpp | 255 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 D | Memory.inc | 132 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 D | AMDGPUMemoryUtils.cpp | 43 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 D | SimpleExecutorMemoryManager.cpp | 59 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 D | ItaniumDemangle.cpp | 295 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 D | Mangler.cpp | 108 uint64_t AllocSize = A.hasPassPointeeByValueCopyAttr() ? in addByteCountSuffix() local 113 ArgWords += alignTo(AllocSize, PtrSize); in addByteCountSuffix()
|
H A D | IRBuilder.cpp | 302 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 D | Attributes.cpp | 230 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 D | ArgumentPromotion.cpp | 186 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 D | GlobalOpt.cpp | 903 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 D | Sparc.cpp | 309 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 D | SROA.cpp | 1028 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 D | AArch64FrameLowering.h | 155 int64_t RealignmentPadding, StackOffset AllocSize,
|
H A D | AArch64FrameLowering.cpp | 725 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 D | CGExprCXX.cpp | 1429 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 D | RewriteRope.cpp | 798 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 D | NVPTXAsmPrinter.cpp | 1827 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 D | AMDGPUEmitPrintf.cpp | 279 int AllocSize = M->getDataLayout().getTypeAllocSize(Args[i]->getType()); in callBufferedPrintfStart() local 282 BufSize += std::max(AllocSize, 8); in callBufferedPrintfStart()
|