Home | History | Annotate | Download | only in IR

Lines Matching refs:AllocSize

373                                  Type *AllocTy, Value *AllocSize, 
395 if (IsConstantOne(AllocSize)) {
396 AllocSize = ArraySize; // Operand * 1 = Operand
401 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize));
405 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize,
408 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize,
413 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size");
426 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall", InsertBefore);
432 MCall = CallInst::Create(MallocFunc, AllocSize, "malloccall");
458 Value *AllocSize, Value *ArraySize,
461 return createMalloc(InsertBefore, NULL, IntPtrTy, AllocTy, AllocSize,
475 Value *AllocSize, Value *ArraySize,
477 return createMalloc(NULL, InsertAtEnd, IntPtrTy, AllocTy, AllocSize,