Home
last modified time | relevance | path

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

12

/openbsd/src/gnu/llvm/compiler-rt/lib/gwp_asan/tests/
Dbasic.cpp30 for (unsigned AllocSize = 1; AllocSize <= MaxAllocSize; AllocSize <<= 1) { in TEST_F() local
31 void *Ptr = GPA.allocate(AllocSize); in TEST_F()
34 EXPECT_EQ(AllocSize, GPA.getSize(Ptr)); in TEST_F()
/openbsd/src/gnu/llvm/llvm/include/llvm/ADT/
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()
/openbsd/src/gnu/llvm/compiler-rt/lib/scudo/standalone/tests/
Dcommon_test.cpp76 constexpr int64_t AllocSize = 10000000; in TEST() local
85 Alloc.reset(new char[AllocSize]()); in TEST()
88 EXPECT_LE(std::abs(Rss - AllocSize - Prev), Error); in TEST()
/openbsd/src/gnu/llvm/clang/lib/AST/Interp/
DDescriptor.cpp200 MDSize(MD.value_or(0)), AllocSize(align(Size + MDSize)), IsConst(IsConst), in Descriptor()
203 assert(AllocSize >= Size); in Descriptor()
212 AllocSize(align(Size) + sizeof(InitMap *) + MDSize), IsConst(IsConst), in Descriptor()
222 AllocSize(alignof(void *)), IsConst(true), IsMutable(false), in Descriptor()
233 AllocSize(std::max<size_t>(alignof(void *), Size) + MDSize), in Descriptor()
243 Size(UnknownSizeMark), MDSize(0), AllocSize(alignof(void *)), in Descriptor()
253 Size(ElemSize), MDSize(MD.value_or(0)), AllocSize(Size + MDSize), in Descriptor()
DDescriptor.h90 const InterpSize AllocSize; member
167 unsigned getAllocSize() const { return AllocSize; } in getAllocSize()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/
DStackProtector.cpp170 TypeSize AllocSize) { in HasAddressTaken() argument
178 !TypeSize::isKnownGE(AllocSize, in HasAddressTaken()
217 if (!TypeSize::isKnownGT(AllocSize, OffsetSize)) in HasAddressTaken()
223 TypeSize::Fixed(AllocSize.getKnownMinValue()) - OffsetSize; in HasAddressTaken()
231 if (HasAddressTaken(I, AllocSize)) in HasAddressTaken()
239 if (HasAddressTaken(PN, AllocSize)) in HasAddressTaken()
/openbsd/src/gnu/llvm/compiler-rt/lib/gwp_asan/
Dcommon.cpp41 size_t AllocSize) { in RecordAllocation() argument
43 RequestedSize = AllocSize; in RecordAllocation()
/openbsd/src/gnu/llvm/libcxxabi/src/
Dcxa_demangle.cpp295 static constexpr size_t AllocSize = 4096; member in __anonc1d384b00211::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()
/openbsd/src/gnu/llvm/llvm/lib/Support/Windows/
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);
/openbsd/src/gnu/llvm/llvm/lib/Demangle/
DItaniumDemangle.cpp294 static constexpr size_t AllocSize = 4096; member in __anon0edb096c0211::BumpPointerAllocator
295 static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
297 alignas(long double) char InitialBuffer[AllocSize];
301 char* NewMeta = static_cast<char *>(std::malloc(AllocSize)); in grow()
/openbsd/src/gnu/llvm/llvm/lib/IR/
DMangler.cpp108 uint64_t AllocSize = A.hasPassPointeeByValueCopyAttr() ? in addByteCountSuffix() local
113 ArgWords += alignTo(AllocSize, PtrSize); in addByteCountSuffix()
DInstructions.cpp772 Type *AllocTy, Value *AllocSize, in createMalloc() argument
795 if (IsConstantOne(AllocSize)) { in createMalloc()
796 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc()
801 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize)); in createMalloc()
805 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
808 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
813 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
826 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall", in createMalloc()
833 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall"); in createMalloc()
860 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
[all …]
DAttributes.cpp224 return get(Context, AllocSize, packAllocSizeArgs(ElemSizeArg, NumElemsArg)); in getWithAllocSizeArgs()
364 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
454 if (hasAttribute(Attribute::AllocSize)) { in getAsString()
992 if (auto A = findEnumAttribute(Attribute::AllocSize)) in getAllocSizeArgs()
1735 Attribute A = getAttribute(Attribute::AllocSize); in getAllocSizeArgs()
1780 return addRawIntAttr(Attribute::AllocSize, RawArgs); in addAllocSizeAttrFromRawRepr()
DMetadata.cpp527 size_t AllocSize = in operator new() local
529 char *Mem = reinterpret_cast<char *>(::operator new(AllocSize + Size)); in operator new()
530 Header *H = new (Mem + AllocSize - sizeof(Header)) Header(NumOps, Storage); in operator new()
/openbsd/src/gnu/llvm/llvm/include/llvm/CodeGen/
DStackProtector.h100 bool HasAddressTaken(const Instruction *AI, TypeSize AllocSize);
/openbsd/src/gnu/llvm/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelArguments.cpp99 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy); in runOnFunction() local
102 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABITypeAlign) + AllocSize; in runOnFunction()
DAMDGPUPromoteAlloca.cpp853 uint64_t AllocSize = DL.getTypeAllocSize(GV->getValueType()); in hasSufficientLocalMem() local
857 if (GV->hasExternalLinkage() && AllocSize == 0) { in hasSufficientLocalMem()
865 AllocatedSizes.emplace_back(AllocSize, Alignment); in hasSufficientLocalMem()
981 uint32_t AllocSize = WorkGroupSize * DL.getTypeAllocSize(AllocaTy); in handleAlloca() local
982 NewSize += AllocSize; in handleAlloca()
985 LLVM_DEBUG(dbgs() << " " << AllocSize in handleAlloca()
DAMDGPUSubtarget.cpp565 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy); in getExplicitKernArgSize() local
566 ExplicitArgBytes = alignTo(ExplicitArgBytes, Alignment) + AllocSize; in getExplicitKernArgSize()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Scalar/
DSROA.cpp754 const uint64_t AllocSize; member in AllocaSlices::SliceBuilder
766 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType()).getFixedValue()), in SliceBuilder()
779 if (Size == 0 || Offset.uge(AllocSize)) { in insertUse()
783 << AllocSize << " byte alloca:\n" in insertUse()
798 assert(AllocSize >= BeginOffset); // Established above. in insertUse()
799 if (Size > AllocSize - BeginOffset) { in insertUse()
801 << Offset << " to remain within the " << AllocSize in insertUse()
805 EndOffset = AllocSize; in insertUse()
865 if (GEPOffset.ugt(AllocSize)) in visitGetElementPtrInst()
917 if (Size > AllocSize || Offset.ugt(AllocSize - Size)) { in visitStoreInst()
[all …]
/openbsd/src/gnu/llvm/clang/lib/CodeGen/
DCGExprCXX.cpp1410 ValueTy AllocSize; member in __anoned26a1f60411::CallDeleteDuringNew
1424 ValueTy AllocSize, bool PassAlignmentToPlacementDelete, in CallDeleteDuringNew() argument
1428 OperatorDelete(OperatorDelete), Ptr(Ptr), AllocSize(AllocSize), in CallDeleteDuringNew()
1461 DeleteArgs.add(Traits::get(CGF, AllocSize), in Emit()
1490 llvm::Value *AllocSize, in EnterNewDeleteCleanup() argument
1512 AllocSize, in EnterNewDeleteCleanup()
1527 DominatingValue<RValue>::save(CGF, RValue::get(AllocSize)); in EnterNewDeleteCleanup()
/openbsd/src/gnu/llvm/clang/lib/Rewrite/
DRewriteRope.cpp798 unsigned AllocSize = offsetof(RopeRefCountString, Data) + AllocChunkSize; in MakeRopeString() local
799 auto *Res = reinterpret_cast<RopeRefCountString *>(new char[AllocSize]); in MakeRopeString()
/openbsd/src/gnu/llvm/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp1803 int AllocSize = DL.getTypeAllocSize(CPV->getType()); in bufferLEByte() local
1807 AggBuffer->addZeros(Bytes ? Bytes : AllocSize); in bufferLEByte()
1836 AggBuffer->addZeros(AllocSize); in bufferLEByte()
1857 AggBuffer->addZeros(AllocSize); in bufferLEByte()
1866 if (Bytes > AllocSize) in bufferLEByte()
1867 AggBuffer->addZeros(Bytes - AllocSize); in bufferLEByte()
/openbsd/src/gnu/llvm/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp861 uint64_t AllocSize, Constant *InitVal, in OptimizeGlobalAddressOfAllocation() argument
869 AllocSize); in OptimizeGlobalAddressOfAllocation()
886 Builder.CreateMemSet(NewGV, InitVal, AllocSize, std::nullopt); in OptimizeGlobalAddressOfAllocation()
1056 uint64_t AllocSize; in tryToOptimizeStoreOfAllocationToGlobal() local
1057 if (!getObjectSize(CI, AllocSize, DL, TLI, ObjectSizeOpts())) in tryToOptimizeStoreOfAllocationToGlobal()
1063 if (AllocSize >= 2048) in tryToOptimizeStoreOfAllocationToGlobal()
1082 OptimizeGlobalAddressOfAllocation(GV, CI, AllocSize, InitVal, DL, TLI); in tryToOptimizeStoreOfAllocationToGlobal()
DDeadArgumentElimination.cpp843 PAL.getFnAttrs().removeAttribute(F->getContext(), Attribute::AllocSize); in removeDeadStuffFromFunction()
920 F->getContext(), Attribute::AllocSize); in removeDeadStuffFromFunction()
/openbsd/src/gnu/llvm/llvm/lib/Analysis/
DLoopAccessAnalysis.cpp302 unsigned AllocSize = in tryToCreateDiffCheck() local
310 Step->getAPInt().abs() != AllocSize) { in tryToCreateDiffCheck()
330 DiffChecks.emplace_back(SrcStartInt, SinkStartInt, AllocSize, in tryToCreateDiffCheck()
1443 TypeSize AllocSize = DL.getTypeAllocSize(AccessTy); in getPtrStride() local
1444 int64_t Size = AllocSize.getFixedValue(); in getPtrStride()

12