HomeSort by: relevance | last modified time | path
    Searched refs:AllocSize (Results 1 - 25 of 38) sorted by relevancy

1 2

  /src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
StringMapEntry.h 49 size_t AllocSize = EntrySize + KeyLength + 1;
50 void *Allocation = Allocator.Allocate(AllocSize, EntryAlign);
138 size_t AllocSize = sizeof(StringMapEntry) + this->getKeyLength() + 1;
140 allocator.Deallocate(static_cast<void *>(this), AllocSize,
  /src/external/apache2/llvm/dist/clang/lib/AST/Interp/
Descriptor.h 60 const InterpSize AllocSize;
134 unsigned getAllocSize() const { return AllocSize; }
Descriptor.cpp 190 : Source(D), ElemSize(primSize(Type)), Size(ElemSize), AllocSize(Size),
200 AllocSize(align(Size) + sizeof(InitMap *)), IsConst(IsConst),
210 AllocSize(alignof(void *)), IsConst(true), IsMutable(false),
220 AllocSize(std::max<size_t>(alignof(void *), Size)), ElemDesc(Elem),
230 Size(UnknownSizeMark), AllocSize(alignof(void *)), ElemDesc(Elem),
239 Size(ElemSize), AllocSize(Size), ElemRecord(R), IsConst(IsConst),
  /src/external/apache2/llvm/dist/llvm/lib/Support/Windows/
Memory.inc 134 size_t AllocSize = NumBlocks * Granularity;
136 AllocSize, AllocType, Protect);
148 Result.AllocatedSize = AllocSize;
152 Memory::InvalidateInstructionCache(Result.Address, AllocSize);
  /src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/
StackProtector.h 98 bool HasAddressTaken(const Instruction *AI, uint64_t AllocSize);
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/
StackProtector.cpp 167 uint64_t AllocSize) {
175 MemLoc->Size.getValue() > AllocSize)
210 APInt MaxOffset(TypeSize, AllocSize);
213 // Adjust AllocSize to be the space remaining after this offset.
214 if (HasAddressTaken(I, AllocSize - Offset.getLimitedValue()))
221 if (HasAddressTaken(I, AllocSize))
229 if (HasAddressTaken(PN, AllocSize))
  /src/external/apache2/llvm/dist/llvm/lib/IR/
Mangler.cpp 103 uint64_t AllocSize = A.hasPassPointeeByValueCopyAttr() ?
108 ArgWords += alignTo(AllocSize, PtrSize);
Instructions.cpp 626 Type *AllocTy, Value *AllocSize,
649 if (IsConstantOne(AllocSize)) {
650 AllocSize = ArraySize; // Operand * 1 = Operand
655 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize));
659 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize,
662 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize,
667 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size")
    [all...]
Attributes.cpp 52 // allocsize has two integer arguments, but because they're both 32 bits, we can
57 // allocsize argument to signify "not present."
206 "Invalid allocsize arguments -- given allocsize(0, 0)");
207 return get(Context, AllocSize, packAllocSizeArgs(ElemSizeArg, NumElemsArg));
243 AttrKind == Attribute::AllocSize ||
355 assert(hasAttribute(Attribute::AllocSize) &&
356 "Trying to get allocsize args from non-allocsize attribute");
565 if (hasAttribute(Attribute::AllocSize)) {
    [all...]
Core.cpp 3483 Constant* AllocSize = ConstantExpr::getSizeOf(unwrap(Ty));
3484 AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, ITy);
3486 ITy, unwrap(Ty), AllocSize,
3494 Constant* AllocSize = ConstantExpr::getSizeOf(unwrap(Ty));
3495 AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, ITy);
3497 ITy, unwrap(Ty), AllocSize,
  /src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
AMDGPULowerKernelArguments.cpp 99 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy);
102 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABITypeAlign) + AllocSize;
AMDGPUPromoteAlloca.cpp 780 uint64_t AllocSize = DL.getTypeAllocSize(GV->getValueType());
781 AllocatedSizes.emplace_back(AllocSize, Alignment);
900 uint32_t AllocSize = WorkGroupSize * DL.getTypeAllocSize(AllocaTy);
901 NewSize += AllocSize;
904 LLVM_DEBUG(dbgs() << " " << AllocSize
AMDGPUSubtarget.cpp 591 uint64_t AllocSize = DL.getTypeAllocSize(ArgTy);
592 ExplicitArgBytes = alignTo(ExplicitArgBytes, Alignment) + AllocSize;
AMDGPUCallLowering.cpp 514 unsigned AllocSize = DL.getTypeAllocSize(ArgTy);
515 if (AllocSize == 0)
523 ExplicitArgOffset = alignTo(ExplicitArgOffset, ABIAlign) + AllocSize;
  /src/external/apache2/llvm/dist/llvm/lib/Demangle/
ItaniumDemangle.cpp 252 static constexpr size_t AllocSize = 4096;
253 static constexpr size_t UsableAllocSize = AllocSize - sizeof(BlockMeta);
255 alignas(long double) char InitialBuffer[AllocSize];
259 char* NewMeta = static_cast<char *>(std::malloc(AllocSize));
  /src/external/apache2/llvm/dist/clang/lib/Rewrite/
RewriteRope.cpp 798 unsigned AllocSize = offsetof(RopeRefCountString, Data) + AllocChunkSize;
799 auto *Res = reinterpret_cast<RopeRefCountString *>(new char[AllocSize]);
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
SROA.cpp 647 const uint64_t AllocSize;
659 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType()).getFixedSize()),
672 if (Size == 0 || Offset.uge(AllocSize)) {
676 << AllocSize << " byte alloca:\n"
691 assert(AllocSize >= BeginOffset); // Established above.
692 if (Size > AllocSize - BeginOffset) {
694 << Offset << " to remain within the " << AllocSize
698 EndOffset = AllocSize;
758 if (GEPOffset.ugt(AllocSize))
817 if (Size > AllocSize || Offset.ugt(AllocSize - Size))
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
CGExprCXX.cpp 1409 ValueTy AllocSize;
1423 ValueTy AllocSize, bool PassAlignmentToPlacementDelete,
1427 OperatorDelete(OperatorDelete), Ptr(Ptr), AllocSize(AllocSize),
1460 DeleteArgs.add(Traits::get(CGF, AllocSize),
1489 llvm::Value *AllocSize,
1511 AllocSize,
1526 DominatingValue<RValue>::save(CGF, RValue::get(AllocSize));
1575 llvm::Value *allocSize =
1601 allocatorArgs.add(RValue::get(allocSize), getContext().getSizeType())
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/IPO/
DeadArgumentElimination.cpp 854 // Strip allocsize attributes. They might refer to the deleted arguments.
856 F->getContext(), Attribute::AllocSize);
930 // Again, be sure to remove any allocsize attributes, since their indices
933 F->getContext(), Attribute::AllocSize);
  /src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
WebAssemblyLowerEmscriptenEHSjLj.cpp 447 if (FnAttrs.contains(Attribute::AllocSize)) {
448 // The allocsize attribute (if any) referes to parameters by index and needs
  /src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
NVPTXISelLowering.cpp 1453 unsigned AllocSize = DL.getTypeAllocSize(Ty);
1461 DAG.getConstant(AllocSize, dl, MVT::i32), InFlag};
1467 if ((VT.isInteger() || VT.isFloatingPoint()) && AllocSize < 4) {
1471 AllocSize = 4;
1475 DAG.getConstant(AllocSize * 8, dl, MVT::i32),
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
SelectionDAGBuilder.cpp 3993 SDValue AllocSize = getValue(I.getArraySize());
3996 if (AllocSize.getValueType() != IntPtr)
3997 AllocSize = DAG.getZExtOrTrunc(AllocSize, dl, IntPtr);
3999 AllocSize = DAG.getNode(ISD::MUL, dl, IntPtr,
4000 AllocSize,
4016 AllocSize = DAG.getNode(ISD::ADD, dl, AllocSize.getValueType(), AllocSize,
4020 AllocSize = DAG.getNode(ISD::AND, dl, AllocSize.getValueType(), AllocSize
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
InlineCost.cpp 1048 if (auto *AllocSize = dyn_cast_or_null<ConstantInt>(Size)) {
1059 AllocSize->getLimitedValue(), DL.getTypeAllocSize(Ty).getKnownMinSize(),
MemoryBuiltins.cpp 138 /// known allocation function, or a call to a function with the allocsize
210 // Prefer to use existing information over allocsize. This will give us an
217 Attribute Attr = Callee->getFnAttribute(Attribute::AllocSize);
224 // Because allocsize only tells us how many bytes are allocated, we're not
  /src/external/apache2/llvm/dist/llvm/include/llvm/IR/
Instructions.h 1609 Type *AllocTy, Value *AllocSize,
1614 Type *AllocTy, Value *AllocSize,
1619 Type *AllocTy, Value *AllocSize,
1625 Type *AllocTy, Value *AllocSize,

Completed in 86 milliseconds

1 2