Lines Matching refs:AllocSize
355 Type *AllocTy, Value *AllocSize,
377 if (IsConstantOne(AllocSize)) {
378 AllocSize = ArraySize; // Operand * 1 = Operand
383 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize));
387 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize,
390 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize,
395 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size");
408 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall", InsertBefore);
414 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall");
440 Value *AllocSize, Value *ArraySize,
443 return createMalloc(InsertBefore, NULL, IntPtrTy, AllocTy, AllocSize,
457 Value *AllocSize, Value *ArraySize,
459 return createMalloc(NULL, InsertAtEnd, IntPtrTy, AllocTy, AllocSize,