Lines Matching defs:destShape

3423     // Check if the initial destShape is null, which means
3425 bool destShapeIsEmpty = destShape.empty();
3429 // destShape is either non-null on entry to this function,
3431 assert(!destShape.empty() && "destShape must have been set.");
3439 // destShape may originally be null, if rhs did not define a shape.
3440 // In this case the destShape is computed from lhs, and we may have
3442 // in genReallocIfNeeded(). We cannot reuse destShape computed
3446 destShape.clear();
3502 fir::factory::genReallocIfNeeded(builder, loc, mutableBox, destShape,
3846 destShape = fir::factory::getExtents(getLoc(), builder, lhs);
3850 if (!destShape.empty())
3860 destShape.push_back(builder.createIntegerConstant(loc, idxTy, extent));
3907 destShape.push_back(extent);
4163 if (!destShape.empty())
4164 return destShape;
4323 assert(destShape.empty() ||
4324 static_cast<std::size_t>(rank) == destShape.size());
4354 if (destShape.empty())
4355 destShape = extents;
4957 llvm::SmallVector<mlir::Value> savedDestShape = destShape;
4958 assert((destShape.empty() || destShape.size() == 2) &&
4962 std::swap(destShape[0], destShape[1]);
4968 // If destShape was set before transpose lowering, then
4970 destShape = savedDestShape;
4971 } else if (!destShape.empty()) {
4972 // ... if destShape has been set from the argument lowering,
4974 assert(destShape.size() == 2 &&
4976 std::swap(destShape[0], destShape[1]);
5462 llvm::SmallVector<mlir::Value> savedDestShape = destShape;
5463 destShape.clear();
5465 if (destShape.empty())
5467 assert(destShape.size() == 1 && "vector has rank > 1");
5468 if (destShape[0] != savedDestShape[dim]) {
5472 loc, mlir::arith::CmpIPredicate::sgt, destShape[0],
5475 loc, cmp, savedDestShape[dim], destShape[0]);
5477 destShape = savedDestShape;
5506 const bool createDestShape = destShape.empty();
5539 destShape.push_back(extent);
5576 destShape.push_back(fir::factory::getExtentAtDimension(
5798 if (destShape.empty())
5799 destShape = getShape(arrayOperands.back());
7335 llvm::SmallVector<mlir::Value> destShape;