Lines Matching refs:extents
29 mlir::ValueRange extents, in createNewFirBox() argument
36 if (!extents.empty()) { in createNewFirBox()
39 fir::ShapeType::get(builder.getContext(), extents.size()); in createNewFirBox()
40 shape = builder.create<fir::ShapeOp>(loc, shapeType, extents); in createNewFirBox()
43 for (auto [lb, extent] : llvm::zip(lbounds, extents)) { in createNewFirBox()
48 fir::ShapeShiftType::get(builder.getContext(), extents.size()); in createNewFirBox()
127 auto ext = builder.create<fir::LoadOp>(loc, mutableProperties.extents[dim]); in readShape()
149 llvm::SmallVector<mlir::Value> extents; in readShape() local
155 extents.push_back(extent); in readShape()
157 return extents; in readShape()
162 llvm::SmallVectorImpl<mlir::Value> &extents, in read() argument
164 extents = readShape(&lbounds); in read()
204 mlir::ValueRange extents, mlir::ValueRange lengths) { in updateMutableBox() argument
206 updateMutableProperties(addr, lbounds, extents, lengths); in updateMutableBox()
208 updateIRBox(addr, lbounds, extents, lengths); in updateMutableBox()
247 llvm::SmallVector<mlir::Value> extents; in syncMutablePropertiesFromIRBox() local
251 lbounds, extents, lengths); in syncMutablePropertiesFromIRBox()
252 updateMutableProperties(addr, lbounds, extents, lengths); in syncMutablePropertiesFromIRBox()
260 llvm::SmallVector<mlir::Value> extents; in syncIRBoxFromMutableProperties() local
262 auto addr = MutablePropertyReader{builder, loc, box}.read(lbounds, extents, in syncIRBoxFromMutableProperties()
264 updateIRBox(addr, lbounds, extents, lengths); in syncIRBoxFromMutableProperties()
270 mlir::ValueRange extents, mlir::ValueRange lengths) { in updateIRBox() argument
272 createNewFirBox(builder, loc, box, addr, lbounds, extents, lengths); in updateIRBox()
278 mlir::ValueRange extents, in updateMutableProperties() argument
288 llvm::zip(extents, mutableProperties.extents)) in updateMutableProperties()
336 llvm::SmallVector<mlir::Value> extents(seqTy.getDimension(), zero); in createUnallocatedBox() local
338 loc, fir::ArrayBoxValue{nullAddr, extents, /*lbounds=*/llvm::None}); in createUnallocatedBox()
401 llvm::SmallVector<mlir::Value> extents; in genMutableBoxRead() local
412 MutablePropertyReader(builder, loc, box).read(lbounds, extents, lengths); in genMutableBoxRead()
417 return fir::CharArrayBoxValue{addr, len, extents, lbounds}; in genMutableBoxRead()
421 return fir::ArrayBoxValue{addr, extents, lbounds}; in genMutableBoxRead()
499 auto extents = fir::factory::getExtents(loc, builder, source); in associateMutableBox() local
507 writer.updateMutableBox(rawAddr, newLbounds, extents, lenParams); in associateMutableBox()
538 llvm::SmallVector<mlir::Value> extents; in associateMutableBoxWithRemap() local
546 extents.emplace_back( in associateMutableBoxWithRemap()
553 extents.emplace_back(cast); in associateMutableBoxWithRemap()
556 const auto newRank = extents.size(); in associateMutableBoxWithRemap()
570 writer.updateMutableBox(cast(addr), lbounds, extents, in associateMutableBoxWithRemap()
574 writer.updateMutableBox(cast(ch.getAddr()), lbounds, extents, in associateMutableBoxWithRemap()
578 writer.updateMutableBox(cast(arr.getAddr()), lbounds, extents, in associateMutableBoxWithRemap()
582 writer.updateMutableBox(cast(arr.getAddr()), lbounds, extents, in associateMutableBoxWithRemap()
599 writer.updateMutableBox(rawAddr, lbounds, extents, lenParams); in associateMutableBoxWithRemap()
602 fir::ShapeShiftType::get(builder.getContext(), extents.size()); in associateMutableBoxWithRemap()
605 for (auto [lbnd, ext] : llvm::zip(lbounds, extents)) { in associateMutableBoxWithRemap()
662 mlir::ValueRange extents, in allocateAndInitNewStorage() argument
667 loc, box.getBaseTy(), allocName, lengths, extents); in allocateAndInitNewStorage()
674 llvm::None, extents, lengths); in allocateAndInitNewStorage()
684 mlir::ValueRange extents, in genInlinedAllocation() argument
689 for (mlir::Value extent : extents) in genInlinedAllocation()
725 mlir::SmallVector<mlir::Value> extents; in genReallocIfNeeded() local
728 extents = reader.readShape(); in genReallocIfNeeded()
730 extents.append(shape.begin(), shape.end()); in genReallocIfNeeded()
736 return fir::CharArrayBoxValue{newAddr, len, extents}; in genReallocIfNeeded()
742 return fir::ArrayBoxValue{newAddr, extents}; in genReallocIfNeeded()
786 auto extents = shape.empty() in genReallocIfNeeded() local
790 builder, loc, box, extents, lengthParams, in genReallocIfNeeded()
856 auto extents = fir::factory::getExtents(loc, builder, realloc.newValue); in finalizeRealloc() local
862 heap, lbs, extents, lengths); in finalizeRealloc()