Lines Matching defs:ArraySize
291 Value *AllocSize, Value *ArraySize,
298 if (!ArraySize)
299 ArraySize = ConstantInt::get(IntPtrTy, 1);
300 else if (ArraySize->getType() != IntPtrTy)
301 ArraySize = CreateIntCast(ArraySize, IntPtrTy, false);
303 if (!isConstantOne(ArraySize)) {
305 AllocSize = ArraySize; // Operand * 1 = Operand
308 AllocSize = CreateMul(ArraySize, AllocSize, "mallocsize");
334 Value *AllocSize, Value *ArraySize,
337 return CreateMalloc(IntPtrTy, AllocTy, AllocSize, ArraySize, {}, MallocF,