Lines Matching defs:ArraySize
303 Value *AllocSize, Value *ArraySize,
310 if (!ArraySize)
311 ArraySize = ConstantInt::get(IntPtrTy, 1);
312 else if (ArraySize->getType() != IntPtrTy)
313 ArraySize = CreateIntCast(ArraySize, IntPtrTy, false);
315 if (!isConstantOne(ArraySize)) {
317 AllocSize = ArraySize; // Operand * 1 = Operand
320 AllocSize = CreateMul(ArraySize, AllocSize, "mallocsize");
346 Value *AllocSize, Value *ArraySize,
349 return CreateMalloc(IntPtrTy, AllocTy, AllocSize, ArraySize, std::nullopt,