Lines Matching refs:ArraySize
374 Value *ArraySize, Function *MallocF,
383 if (!ArraySize)
384 ArraySize = ConstantInt::get(IntPtrTy, 1);
385 else if (ArraySize->getType() != IntPtrTy) {
387 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
390 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
394 if (!IsConstantOne(ArraySize)) {
396 AllocSize = ArraySize; // Operand * 1 = Operand
397 } else if (Constant *CO = dyn_cast<Constant>(ArraySize)) {
405 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize,
408 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize,
458 Value *AllocSize, Value *ArraySize,
462 ArraySize, MallocF, Name);
475 Value *AllocSize, Value *ArraySize,
478 ArraySize, MallocF, Name);
834 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize,
837 getAISize(Ty->getContext(), ArraySize), InsertBefore) {
843 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize,
846 getAISize(Ty->getContext(), ArraySize), InsertAtEnd) {
870 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, unsigned Align,
873 getAISize(Ty->getContext(), ArraySize), InsertBefore) {
879 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, unsigned Align,
882 getAISize(Ty->getContext(), ArraySize), InsertAtEnd) {