Home | History | Annotate | Download | only in VMCore

Lines Matching refs:ArraySize

356                                  Value *ArraySize, Function *MallocF,
363 // malloc(type, arraySize) becomes:
364 // bitcast (i8 *malloc(typeSize*arraySize)) to type*
365 if (!ArraySize)
366 ArraySize = ConstantInt::get(IntPtrTy, 1);
367 else if (ArraySize->getType() != IntPtrTy) {
369 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
372 ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
376 if (!IsConstantOne(ArraySize)) {
378 AllocSize = ArraySize; // Operand * 1 = Operand
379 } else if (Constant *CO = dyn_cast<Constant>(ArraySize)) {
387 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize,
390 AllocSize = BinaryOperator::CreateMul(ArraySize, AllocSize,
440 Value *AllocSize, Value *ArraySize,
444 ArraySize, MallocF, Name);
457 Value *AllocSize, Value *ArraySize,
460 ArraySize, MallocF, Name);
806 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize,
809 getAISize(Ty->getContext(), ArraySize), InsertBefore) {
815 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize,
818 getAISize(Ty->getContext(), ArraySize), InsertAtEnd) {
842 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, unsigned Align,
845 getAISize(Ty->getContext(), ArraySize), InsertBefore) {
851 AllocaInst::AllocaInst(Type *Ty, Value *ArraySize, unsigned Align,
854 getAISize(Ty->getContext(), ArraySize), InsertAtEnd) {