@@ -659,33 +659,6 @@ mlir::Value hlfir::genLBound(mlir::Location loc, fir::FirOpBuilder &builder,
659
659
return dimInfo.getLowerBound ();
660
660
}
661
661
662
- llvm::SmallVector<mlir::Value> hlfir::genLBounds (mlir::Location loc,
663
- fir::FirOpBuilder &builder,
664
- hlfir::Entity entity) {
665
- assert (!entity.isAssumedRank () &&
666
- " cannot compute all lower bounds for assumed rank" );
667
- assert (!entity.isScalar () && " expected an array entity" );
668
- int rank = entity.getRank ();
669
- mlir::Type idxTy = builder.getIndexType ();
670
- if (!entity.mayHaveNonDefaultLowerBounds ())
671
- return {static_cast <std::size_t >(rank),
672
- builder.createIntegerConstant (loc, idxTy, 1 )};
673
-
674
- if (auto shape = tryRetrievingShapeOrShift (entity)) {
675
- auto lbounds = getExplicitLboundsFromShape (shape);
676
- if (!lbounds.empty ())
677
- return lbounds;
678
- }
679
-
680
- if (entity.isMutableBox ())
681
- entity = hlfir::derefPointersAndAllocatables (loc, builder, entity);
682
-
683
- llvm::SmallVector<mlir::Value> lbounds;
684
- fir::factory::genDimInfoFromBox (builder, loc, entity, &lbounds,
685
- /* extents=*/ nullptr , /* strides=*/ nullptr );
686
- return lbounds;
687
- }
688
-
689
662
void hlfir::genLengthParameters (mlir::Location loc, fir::FirOpBuilder &builder,
690
663
Entity entity,
691
664
llvm::SmallVectorImpl<mlir::Value> &result) {
0 commit comments