Lines Matching refs:AllocSize
664 Type *AllocTy, Value *AllocSize, in createMalloc() argument
687 if (IsConstantOne(AllocSize)) { in createMalloc()
688 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc()
693 AllocSize = ConstantExpr::getMul(Scale, cast<Constant>(AllocSize)); in createMalloc()
697 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
700 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
705 assert(AllocSize->getType() == IntPtrTy && "malloc arg is wrong size"); in createMalloc()
718 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall", in createMalloc()
725 MCall = CallInst::Create(MallocFunc, AllocSize, OpB, "malloccall"); in createMalloc()
752 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
755 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
760 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
764 return createMalloc(InsertBefore, nullptr, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
778 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
780 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()
785 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
788 return createMalloc(nullptr, InsertAtEnd, IntPtrTy, AllocTy, AllocSize, in CreateMalloc()