| /freebsd/contrib/llvm-project/clang/lib/Interpreter/ |
| H A D | Value.cpp | 29 static unsigned char *CreatePayload(void *DtorF, size_t AllocSize, in CreatePayload() argument 31 if (AllocSize < sizeof(Canary)) in CreatePayload() 32 AllocSize = sizeof(Canary); in CreatePayload() 34 new unsigned char[ValueStorage::getPayloadOffset() + AllocSize]; in CreatePayload() 35 ValueStorage *VS = new (Buf) ValueStorage(DtorF, AllocSize, ElementsSize); in CreatePayload() 62 size_t Stride = AllocSize / Elements; in Release() 78 ValueStorage(void *DtorF, size_t AllocSize, size_t ElementsNum) in ValueStorage() argument 80 AllocSize(AllocSize), Elements(ElementsNum) {} in ValueStorage() 84 size_t AllocSize = 0; member in __anon8d9d85ba0111::ValueStorage 157 size_t AllocSize = in Value() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | StackProtector.cpp | 259 TypeSize AllocSize; member 262 PhiInfo(TypeSize AllocSize) : AllocSize(AllocSize) {} in PhiInfo() 267 static bool HasAddressTaken(const Instruction *AI, TypeSize AllocSize, in HasAddressTaken() argument 277 !TypeSize::isKnownGE(AllocSize, MemLoc->Size.getValue())) in HasAddressTaken() 319 if (!TypeSize::isKnownGT(AllocSize, OffsetSize)) in HasAddressTaken() 325 TypeSize::getFixed(AllocSize.getKnownMinValue()) - OffsetSize; in HasAddressTaken() 333 if (HasAddressTaken(I, AllocSize, M, VisitedPHIs)) in HasAddressTaken() 340 auto [It, Inserted] = VisitedPHIs.try_emplace(PN, AllocSize); in HasAddressTaken() 342 if (TypeSize::isKnownGE(AllocSize, It->second.AllocSize)) in HasAddressTaken() 349 It->second.AllocSize = AllocSize; in HasAddressTaken() [all …]
|
| H A D | GlobalMerge.cpp | 733 TypeSize AllocSize = DL.getTypeAllocSize(Ty); in run() local 734 bool CanMerge = AllocSize < Opt.MaxOffset && AllocSize >= Opt.MinSize; in run()
|
| /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() 142 size_t AllocSize = sizeof(StringMapEntry) + this->getKeyLength() + 1; in Destroy() local 144 allocator.Deallocate(static_cast<void *>(this), AllocSize, in Destroy()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Descriptor.cpp | 344 MDSize(MD.value_or(0)), AllocSize(align(Size + MDSize)), PrimT(Type), in Descriptor() 348 assert(AllocSize >= Size); in Descriptor() 358 AllocSize(align(MDSize) + align(Size) + sizeof(InitMapPtr)), PrimT(Type), in Descriptor() 371 AllocSize(MDSize + sizeof(InitMapPtr) + alignof(void *)), PrimT(Type), in Descriptor() 386 AllocSize(std::max<size_t>(alignof(void *), Size) + MDSize), in Descriptor() 398 AllocSize(MDSize + alignof(void *)), ElemDesc(Elem), IsConst(true), in Descriptor() 409 Size(ElemSize), MDSize(MD.value_or(0)), AllocSize(Size + MDSize), in Descriptor() 419 AllocSize(MDSize), ElemRecord(nullptr), IsConst(true), IsMutable(false), in Descriptor()
|
| H A D | Descriptor.h | 138 const unsigned AllocSize; member 153 std::numeric_limits<decltype(AllocSize)>::max() - sizeof(InitMapPtr) - 252 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/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/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/compiler-rt/lib/ctx_profile/ |
| H A D | CtxInstrProfiling.cpp | 192 auto AllocSize = ContextNode::getAllocSize(NumCounters, NumCallsites); in getCallsiteSlow() local 194 char *AllocPlace = Mem->tryBumpAllocate(AllocSize); in getCallsiteSlow() 202 Mem->allocateNewArena(getArenaAllocSize(AllocSize), Mem); in getCallsiteSlow() 203 AllocPlace = Mem->tryBumpAllocate(AllocSize); in getCallsiteSlow()
|
| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | PGOCtxProfWriter.cpp | 198 auto AllocSize = ctx_profile::ContextNode::getAllocSize(DC.Counters.size(), in createNode() local 200 auto *Mem = Nodes.emplace_back(std::make_unique<char[]>(AllocSize)).get(); in createNode() 201 std::memset(Mem, 0, AllocSize); in createNode()
|
| /freebsd/contrib/llvm-project/llvm/lib/Demangle/ |
| H A D | ItaniumDemangle.cpp | 295 static constexpr size_t AllocSize = 4096; member in __anon00a841f00211::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/Target/AMDGPU/ |
| H A D | AMDGPULowerKernelArguments.cpp | 96 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy); in lowerKernelArguments() local 99 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABITypeAlign) + AllocSize; in lowerKernelArguments()
|
| H A D | AMDGPUPreloadKernelArguments.cpp | 311 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy); in markKernelArgsAsInreg() local 312 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABITypeAlign) + AllocSize; in markKernelArgsAsInreg()
|
| H A D | AMDGPUSubtarget.cpp | 372 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy); in getExplicitKernArgSize() local 373 ExplicitArgBytes = alignTo(ExplicitArgBytes, Alignment) + AllocSize; in getExplicitKernArgSize()
|
| H A D | AMDGPUPromoteAlloca.cpp | 1417 uint64_t AllocSize = DL.getTypeAllocSize(GV->getValueType()); in hasSufficientLocalMem() local 1421 if (GV->hasExternalLinkage() && AllocSize == 0) { in hasSufficientLocalMem() 1429 AllocatedSizes.emplace_back(AllocSize, Alignment); in hasSufficientLocalMem() 1521 uint32_t AllocSize = in tryPromoteAllocaToLDS() local 1523 NewSize += AllocSize; in tryPromoteAllocaToLDS() 1526 LLVM_DEBUG(dbgs() << " " << AllocSize in tryPromoteAllocaToLDS()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Mangler.cpp | 110 uint64_t AllocSize = A.hasPassPointeeByValueCopyAttr() ? in addByteCountSuffix() local 115 ArgWords += alignTo(AllocSize, PtrSize); in addByteCountSuffix()
|
| H A D | IRBuilder.cpp | 260 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument 273 if (isConstantOne(AllocSize)) { in CreateMalloc() 274 AllocSize = ArraySize; // Operand * 1 = Operand in CreateMalloc() 277 AllocSize = CreateMul(ArraySize, AllocSize, "mallocsize"); in CreateMalloc() 281 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in CreateMalloc() 289 CallInst *MCall = CreateCall(MallocFunc, AllocSize, OpB, Name); in CreateMalloc() 303 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument 306 return CreateMalloc(IntPtrTy, AllocTy, AllocSize, ArraySize, {}, MallocF, in CreateMalloc()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | ArgumentPromotion.cpp | 203 if (auto AllocSize = NF->getAttributes().getFnAttrs().getAllocSizeArgs()) { in doPromotion() local 204 unsigned Arg1 = NewArgIndices[AllocSize->first]; in doPromotion() 207 if (AllocSize->second) { in doPromotion() 208 Arg2 = NewArgIndices[*AllocSize->second]; in doPromotion()
|
| H A D | GlobalOpt.cpp | 924 uint64_t AllocSize, Constant *InitVal, in OptimizeGlobalAddressOfAllocation() argument 932 AllocSize); in OptimizeGlobalAddressOfAllocation() 949 Builder.CreateMemSet(NewGV, InitVal, AllocSize, std::nullopt); in OptimizeGlobalAddressOfAllocation() 1100 uint64_t AllocSize; in tryToOptimizeStoreOfAllocationToGlobal() local 1101 if (!getObjectSize(CI, AllocSize, DL, TLI, ObjectSizeOpts())) in tryToOptimizeStoreOfAllocationToGlobal() 1107 if (AllocSize >= 2048) in tryToOptimizeStoreOfAllocationToGlobal() 1126 OptimizeGlobalAddressOfAllocation(GV, CI, AllocSize, InitVal, DL, TLI); in tryToOptimizeStoreOfAllocationToGlobal()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXAsmPrinter.cpp | 1584 int AllocSize = DL.getTypeAllocSize(CPV->getType()); in bufferLEByte() local 1588 AggBuffer->addZeros(Bytes ? Bytes : AllocSize); in bufferLEByte() 1625 AggBuffer->addZeros(AllocSize); in bufferLEByte() 1646 AggBuffer->addZeros(AllocSize); in bufferLEByte() 1655 if (Bytes > AllocSize) in bufferLEByte() 1656 AggBuffer->addZeros(Bytes - AllocSize); in bufferLEByte()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 1452 ValueTy AllocSize; member in __anondca4c77a0411::CallDeleteDuringNew 1466 RValueTy TypeIdentity, ValueTy Ptr, ValueTy AllocSize, in CallDeleteDuringNew() argument 1473 AllocSize(AllocSize), AllocAlign(AllocAlign) {} in CallDeleteDuringNew() 1516 DeleteArgs.add(Traits::get(CGF, AllocSize), in Emit() 1544 llvm::Value *AllocSize, CharUnits AllocAlign, in EnterNewDeleteCleanup() argument 1562 TypeIdentity, NewPtr.emitRawPointer(CGF), AllocSize, in EnterNewDeleteCleanup() 1576 DominatingValue<RValue>::save(CGF, RValue::get(AllocSize)); in EnterNewDeleteCleanup()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 1024 const uint64_t AllocSize; member in AllocaSlices::SliceBuilder 1036 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType()).getFixedValue()), in SliceBuilder() 1049 if (Size == 0 || Offset.uge(AllocSize)) { in insertUse() 1053 << AllocSize << " byte alloca:\n" in insertUse() 1068 assert(AllocSize >= BeginOffset); // Established above. in insertUse() 1069 if (Size > AllocSize - BeginOffset) { in insertUse() 1071 << Offset << " to remain within the " << AllocSize in insertUse() 1075 EndOffset = AllocSize; in insertUse() 1160 if (Size > AllocSize || Offset.ugt(AllocSize - Size)) { in visitStoreInst() 1163 << AllocSize << " byte alloca:\n" in visitStoreInst() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | RewriteRope.cpp | 789 unsigned AllocSize = offsetof(RopeRefCountString, Data) + AllocChunkSize; in MakeRopeString() local 790 auto *Res = reinterpret_cast<RopeRefCountString *>(new char[AllocSize]); in MakeRopeString()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64FrameLowering.h | 172 int64_t RealignmentPadding, StackOffset AllocSize,
|