Lines Matching refs:ArraySize
461 Value *ArraySize, in createMalloc() argument
471 if (!ArraySize) in createMalloc()
472 ArraySize = ConstantInt::get(IntPtrTy, 1); in createMalloc()
473 else if (ArraySize->getType() != IntPtrTy) { in createMalloc()
475 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
478 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, in createMalloc()
482 if (!IsConstantOne(ArraySize)) { in createMalloc()
484 AllocSize = ArraySize; // Operand * 1 = Operand in createMalloc()
485 } else if (Constant *CO = dyn_cast<Constant>(ArraySize)) { in createMalloc()
493 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
496 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize, in createMalloc()
548 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
552 ArraySize, None, MallocF, Name); in CreateMalloc()
556 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
561 ArraySize, OpB, MallocF, Name); in CreateMalloc()
574 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
577 ArraySize, None, MallocF, Name); in CreateMalloc()
581 Value *AllocSize, Value *ArraySize, in CreateMalloc() argument
585 ArraySize, OpB, MallocF, Name); in CreateMalloc()
1073 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in AllocaInst() argument
1075 : AllocaInst(Ty, AddrSpace, ArraySize, /*Align=*/0, Name, InsertBefore) {} in AllocaInst()
1077 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in AllocaInst() argument
1079 : AllocaInst(Ty, AddrSpace, ArraySize, /*Align=*/0, Name, InsertAtEnd) {} in AllocaInst()
1081 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in AllocaInst() argument
1085 getAISize(Ty->getContext(), ArraySize), InsertBefore), in AllocaInst()
1092 AllocaInst::AllocaInst(Type *Ty, unsigned AddrSpace, Value *ArraySize, in AllocaInst() argument
1096 getAISize(Ty->getContext(), ArraySize), InsertAtEnd), in AllocaInst()