Lines Matching refs:AllocSize
443 Type *AllocTy, Value *AllocSize, in createMalloc() argument
466 if (IsConstantOne(AllocSize)) { in createMalloc()
467 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc()
472 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize)); in createMalloc()
476 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
479 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
484 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
497 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall", in createMalloc()
504 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall"); in createMalloc()
530 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
533 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
538 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
542 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
557 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
559 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
564 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
567 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()