Lines Matching refs:ArraySize
302 Value *AllocSize, Value *ArraySize,
309 if (!ArraySize)
310 ArraySize = ConstantInt::get(IntPtrTy, 1);
311 else if (ArraySize->getType() != IntPtrTy)
312 ArraySize = CreateIntCast(ArraySize, IntPtrTy, false);
314 if (!isConstantOne(ArraySize)) {
316 AllocSize = ArraySize; // Operand * 1 = Operand
319 AllocSize = CreateMul(ArraySize, AllocSize, "mallocsize");
345 Value *AllocSize, Value *ArraySize,
348 return CreateMalloc(IntPtrTy, AllocTy, AllocSize, ArraySize, std::nullopt,