Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/tests/
H A 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()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DStringMapEntry.h52 size_t AllocSize = EntrySize + KeyLength + 1; in allocateWithKey() local
53 void *Allocation = Allocator.Allocate(AllocSize, EntryAlign); in allocateWithKey()
141 size_t AllocSize = sizeof(StringMapEntry) + this->getKeyLength() + 1; in Destroy() local
143 allocator.Deallocate(static_cast<void *>(this), AllocSize, in Destroy()
/llvm-project-15.0.7/llvm/unittests/ExecutionEngine/Orc/
H A DSimpleExecutorMemoryManagerTest.cpp37 constexpr unsigned AllocSize = 16384; in TEST() local
38 auto Mem = MemMgr.allocate(AllocSize); in TEST()
50 AllocSize, in TEST()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DDescriptor.cpp190 : Source(D), ElemSize(primSize(Type)), Size(ElemSize), AllocSize(Size), in Descriptor()
200 AllocSize(align(Size) + sizeof(InitMap *)), IsConst(IsConst), in Descriptor()
210 AllocSize(alignof(void *)), IsConst(true), IsMutable(false), in Descriptor()
220 AllocSize(std::max<size_t>(alignof(void *), Size)), ElemDesc(Elem), in Descriptor()
230 Size(UnknownSizeMark), AllocSize(alignof(void *)), ElemDesc(Elem), in Descriptor()
239 Size(ElemSize), AllocSize(Size), ElemRecord(R), IsConst(IsConst), in Descriptor()
H A DDescriptor.h60 const InterpSize AllocSize; member
134 unsigned getAllocSize() const { return AllocSize; } in getAllocSize()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DStackProtector.cpp163 TypeSize AllocSize) { in HasAddressTaken() argument
171 !TypeSize::isKnownGE(AllocSize, in HasAddressTaken()
210 if (!TypeSize::isKnownGT(AllocSize, OffsetSize)) in HasAddressTaken()
216 TypeSize::Fixed(AllocSize.getKnownMinValue()) - OffsetSize; in HasAddressTaken()
224 if (HasAddressTaken(I, AllocSize)) in HasAddressTaken()
232 if (HasAddressTaken(PN, AllocSize)) in HasAddressTaken()
/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/
H A Dcommon.cpp41 size_t AllocSize) { in RecordAllocation() argument
43 RequestedSize = AllocSize; in RecordAllocation()
/llvm-project-15.0.7/llvm/lib/Support/Windows/
H A DMemory.inc134 size_t AllocSize = NumBlocks * Granularity;
136 AllocSize, AllocType, Protect);
148 Result.AllocatedSize = AllocSize;
152 Memory::InvalidateInstructionCache(Result.Address, AllocSize);
/llvm-project-15.0.7/libcxxabi/src/
H A Dcxa_demangle.cpp295 static constexpr size_t AllocSize = 4096; member in __anon766966e40211::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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DMemoryBuiltinsTest.cpp23 TEST(AllocSize, AllocationBuiltinsTest) { in TEST() argument
/llvm-project-15.0.7/llvm/lib/Demangle/
H A DItaniumDemangle.cpp294 static constexpr size_t AllocSize = 4096; member in __anon451de9200211::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()
/llvm-project-15.0.7/llvm/lib/IR/
H A DMangler.cpp108 uint64_t AllocSize = A.hasPassPointeeByValueCopyAttr() ? in addByteCountSuffix() local
113 ArgWords += alignTo(AllocSize, PtrSize); in addByteCountSuffix()
H A DInstructions.cpp664 Type *AllocTy, Value *AllocSize, in createMalloc() argument
687 if (IsConstantOne(AllocSize)) { in createMalloc()
688 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc()
693 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize)); in createMalloc()
697 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
700 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
718 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall", in createMalloc()
725 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall"); in createMalloc()
752 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
760 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
[all …]
H A DAttributes.cpp216 return get(Context, AllocSize, packAllocSizeArgs(ElemSizeArg, NumElemsArg)); in getWithAllocSizeArgs()
355 assert(hasAttribute(Attribute::AllocSize) && in getAllocSizeArgs()
425 if (hasAttribute(Attribute::AllocSize)) { in getAsString()
916 if (auto A = findEnumAttribute(Attribute::AllocSize)) in getAllocSizeArgs()
1653 return unpackAllocSizeArgs(getRawIntAttr(Attribute::AllocSize)); in getAllocSizeArgs()
1702 return addRawIntAttr(Attribute::AllocSize, RawArgs); in addAllocSizeAttrFromRawRepr()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DStackProtector.h97 bool HasAddressTaken(const Instruction *AI, TypeSize AllocSize);
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp99 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy); in runOnFunction() local
102 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABITypeAlign) + AllocSize; in runOnFunction()
H A DAMDGPUPromoteAlloca.cpp762 uint64_t AllocSize = DL.getTypeAllocSize(GV->getValueType()); in hasSufficientLocalMem() local
766 if (GV->hasExternalLinkage() && AllocSize == 0) { in hasSufficientLocalMem()
774 AllocatedSizes.emplace_back(AllocSize, Alignment); in hasSufficientLocalMem()
890 uint32_t AllocSize = WorkGroupSize * DL.getTypeAllocSize(AllocaTy); in handleAlloca() local
891 NewSize += AllocSize; in handleAlloca()
894 LLVM_DEBUG(dbgs() << " " << AllocSize in handleAlloca()
H A DAMDGPUSubtarget.cpp540 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy); in getExplicitKernArgSize() local
541 ExplicitArgBytes = alignTo(ExplicitArgBytes, Alignment) + AllocSize; in getExplicitKernArgSize()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DSROA.cpp644 const uint64_t AllocSize; member in AllocaSlices::SliceBuilder
669 if (Size == 0 || Offset.uge(AllocSize)) { in insertUse()
673 << AllocSize << " byte alloca:\n" in insertUse()
689 if (Size > AllocSize - BeginOffset) { in insertUse()
695 EndOffset = AllocSize; in insertUse()
755 if (GEPOffset.ugt(AllocSize)) in visitGetElementPtrInst()
815 if (Size > AllocSize || Offset.ugt(AllocSize - Size)) { in visitStoreInst()
818 << AllocSize << " byte alloca:\n" in visitStoreInst()
833 (IsOffsetKnown && Offset.uge(AllocSize))) in visitMemSetInst()
876 if (Offset.uge(AllocSize)) { in visitMemTransferInst()
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprCXX.cpp1407 ValueTy AllocSize; member in __anon3478caaa0411::CallDeleteDuringNew
1421 ValueTy AllocSize, bool PassAlignmentToPlacementDelete, in CallDeleteDuringNew() argument
1425 OperatorDelete(OperatorDelete), Ptr(Ptr), AllocSize(AllocSize), in CallDeleteDuringNew()
1458 DeleteArgs.add(Traits::get(CGF, AllocSize), in Emit()
1487 llvm::Value *AllocSize, in EnterNewDeleteCleanup() argument
1509 AllocSize, in EnterNewDeleteCleanup()
1524 DominatingValue<RValue>::save(CGF, RValue::get(AllocSize)); in EnterNewDeleteCleanup()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/bolt/runtime/
H A Dinstr.cpp129 uint64_t AllocSize; member
154 M->AllocSize = Size; in allocate()
172 if (Ptr != StackTop - M->AllocSize) { in deallocate()
180 assert(Ptr == StackTop - M->AllocSize, in deallocate()
184 StackSize -= M->AllocSize; in deallocate()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1809 int AllocSize = DL.getTypeAllocSize(CPV->getType()); in bufferLEByte() local
1813 AggBuffer->addZeros(Bytes ? Bytes : AllocSize); in bufferLEByte()
1842 AggBuffer->addZeros(AllocSize); in bufferLEByte()
1862 AggBuffer->addZeros(AllocSize); in bufferLEByte()
1871 if (Bytes > AllocSize) in bufferLEByte()
1872 AggBuffer->addZeros(Bytes - AllocSize); in bufferLEByte()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp857 uint64_t AllocSize, Constant *InitVal, in OptimizeGlobalAddressOfAllocation() argument
865 AllocSize); in OptimizeGlobalAddressOfAllocation()
882 Builder.CreateMemSet(NewGV, InitVal, AllocSize, None); in OptimizeGlobalAddressOfAllocation()
1052 uint64_t AllocSize; in tryToOptimizeStoreOfAllocationToGlobal() local
1053 if (!getObjectSize(CI, AllocSize, DL, TLI, ObjectSizeOpts())) in tryToOptimizeStoreOfAllocationToGlobal()
1059 if (AllocSize >= 2048) in tryToOptimizeStoreOfAllocationToGlobal()
1078 OptimizeGlobalAddressOfAllocation(GV, CI, AllocSize, InitVal, DL, TLI); in tryToOptimizeStoreOfAllocationToGlobal()

123