Lines Matching refs:AllocSize
339 Type *AllocTy, Value *AllocSize, in createMalloc() argument
361 if (IsConstantOne(AllocSize)) { in createMalloc()
362 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc()
367 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize)); in createMalloc()
371 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
374 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
379 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
392 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall", InsertBefore); in createMalloc()
398 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall"); in createMalloc()
424 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
427 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
441 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
443 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()