Home
last modified time | relevance | path

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

/external/llvm/tools/lli/ChildTarget/
DChildTarget.cpp108 uint32_t AllocSize; in handleAllocateSpace() local
111 rc = ReadBytes(&AllocSize, 4); in handleAllocateSpace()
116 RT->allocateSpace(AllocSize, Alignment, Addr); in handleAllocateSpace()
/external/llvm/include/llvm/ADT/
DStringMap.h149 unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+ in Create() local
154 static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment)); in Create()
207 unsigned AllocSize = in Destroy() local
210 Allocator.Deallocate(static_cast<void *>(this), AllocSize); in Destroy()
/external/clang/lib/CodeGen/
DCGExprCXX.cpp1057 llvm::Value *AllocSize; member in __anon28c229b30211::CallDeleteDuringNew
1069 llvm::Value *AllocSize) in CallDeleteDuringNew() argument
1071 Ptr(Ptr), AllocSize(AllocSize) {} in CallDeleteDuringNew()
1092 DeleteArgs.add(RValue::get(AllocSize), *AI++); in Emit()
1110 DominatingValue<RValue>::saved_type AllocSize; member in __anon28c229b30211::CallDeleteDuringConditionalNew
1124 DominatingValue<RValue>::saved_type AllocSize) in CallDeleteDuringConditionalNew() argument
1126 Ptr(Ptr), AllocSize(AllocSize) {} in CallDeleteDuringConditionalNew()
1147 RValue RV = AllocSize.restore(CGF); in Emit()
1168 llvm::Value *AllocSize, in EnterNewDeleteCleanup() argument
1177 NewPtr, AllocSize); in EnterNewDeleteCleanup()
[all …]
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp336 const uint64_t AllocSize; member in AllocaSlices::SliceBuilder
348 AllocSize(DL.getTypeAllocSize(AI.getAllocatedType())), S(S) {} in SliceBuilder()
360 if (Size == 0 || Offset.uge(AllocSize)) { in insertUse()
363 << AllocSize << " byte alloca:\n" in insertUse()
378 assert(AllocSize >= BeginOffset); // Established above. in insertUse()
379 if (Size > AllocSize - BeginOffset) { in insertUse()
381 << " to remain within the " << AllocSize << " byte alloca:\n" in insertUse()
384 EndOffset = AllocSize; in insertUse()
433 if (GEPOffset.ugt(AllocSize)) in visitGetElementPtrInst()
452 Ty->isIntegerTy() && !IsVolatile && Offset == 0 && Size >= AllocSize; in handleLoadOrStore()
[all …]
/external/llvm/lib/IR/
DInstructions.cpp373 Type *AllocTy, Value *AllocSize, in createMalloc() argument
395 if (IsConstantOne(AllocSize)) { in createMalloc()
396 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc()
401 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize)); in createMalloc()
405 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
408 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
413 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
426 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall", InsertBefore); in createMalloc()
432 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall"); in createMalloc()
458 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
[all …]
DCore.cpp2260 Constant* AllocSize = ConstantExpr::getSizeOf(unwrap(Ty)); in LLVMBuildMalloc() local
2261 AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, ITy); in LLVMBuildMalloc()
2263 ITy, unwrap(Ty), AllocSize, in LLVMBuildMalloc()
2271 Constant* AllocSize = ConstantExpr::getSizeOf(unwrap(Ty)); in LLVMBuildArrayMalloc() local
2272 AllocSize = ConstantExpr::getTruncOrBitCast(AllocSize, ITy); in LLVMBuildArrayMalloc()
2274 ITy, unwrap(Ty), AllocSize, in LLVMBuildArrayMalloc()
/external/clang/lib/Rewrite/Core/
DRewriteRope.cpp794 unsigned AllocSize = offsetof(RopeRefCountString, Data) + AllocChunkSize; in MakeRopeString() local
795 AllocBuffer = reinterpret_cast<RopeRefCountString *>(new char[AllocSize]); in MakeRopeString()
/external/llvm/lib/Analysis/IPA/
DInlineCost.cpp277 ConstantInt *AllocSize = dyn_cast<ConstantInt>(Size); in visitAlloca() local
278 assert(AllocSize && "Allocation size not a constant int?"); in visitAlloca()
280 AllocatedSize += Ty->getPrimitiveSizeInBits() * AllocSize->getZExtValue(); in visitAlloca()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp3420 SDValue AllocSize = getValue(I.getArraySize()); in visitAlloca() local
3423 if (AllocSize.getValueType() != IntPtr) in visitAlloca()
3424 AllocSize = DAG.getZExtOrTrunc(AllocSize, getCurSDLoc(), IntPtr); in visitAlloca()
3426 AllocSize = DAG.getNode(ISD::MUL, getCurSDLoc(), IntPtr, in visitAlloca()
3427 AllocSize, in visitAlloca()
3439 AllocSize = DAG.getNode(ISD::ADD, getCurSDLoc(), in visitAlloca()
3440 AllocSize.getValueType(), AllocSize, in visitAlloca()
3444 AllocSize = DAG.getNode(ISD::AND, getCurSDLoc(), in visitAlloca()
3445 AllocSize.getValueType(), AllocSize, in visitAlloca()
3448 SDValue Ops[] = { getRoot(), AllocSize, DAG.getIntPtrConstant(Align) }; in visitAlloca()
[all …]
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp1540 Value *AllocSize = ConstantInt::get(IntPtrTy, TypeSize); in TryToOptimizeStoreOfMallocToGlobal() local
1543 AllocSize, NumElements, in TryToOptimizeStoreOfMallocToGlobal()
/external/llvm/include/llvm/IR/
DInstructions.h1278 Value *AllocSize, Value *ArraySize = nullptr,
1283 Value *AllocSize, Value *ArraySize = nullptr,