| /llvm-project-15.0.7/flang/unittests/Optimizer/Builder/Runtime/ |
| H A D | TransformationalTest.cpp | 15 mlir::Type seqTy = in TEST_F() local 20 mlir::Value dim = firBuilder->create<fir::UndefOp>(loc, seqTy); in TEST_F() 27 mlir::Type seqTy = in TEST_F() local 38 mlir::Type seqTy = in TEST_F() local 51 mlir::Type seqTy = in TEST_F() local 63 mlir::Type seqTy = in TEST_F() local 74 mlir::Type seqTy = in TEST_F() local 86 mlir::Type seqTy = in TEST_F() local 99 mlir::Type seqTy = in TEST_F() local 111 mlir::Type seqTy = in TEST_F() local [all …]
|
| H A D | ReductionTest.cpp | 68 mlir::Type seqTy = in testGenMaxVal() local 70 mlir::Type refSeqTy = fir::ReferenceType::get(seqTy); in testGenMaxVal() 93 mlir::Type seqTy = in testGenMinVal() local 95 mlir::Type refSeqTy = fir::ReferenceType::get(seqTy); in testGenMinVal() 118 mlir::Type seqTy = in testGenSum() local 150 mlir::Type seqTy = in testGenProduct() local 183 mlir::Type seqTy = in testGenDotProduct() local 218 mlir::Type seqTy = in checkGenMxxloc() local 244 mlir::Type seqTy = in checkGenMxxlocDim() local 273 mlir::Type seqTy = in checkGenMxxvalChar() local [all …]
|
| H A D | DerivedTest.cpp | 15 mlir::Type seqTy = in TEST_F() local 17 mlir::Value box = firBuilder->create<fir::UndefOp>(loc, seqTy); in TEST_F() 24 mlir::Type seqTy = in TEST_F() local 26 mlir::Value box = firBuilder->create<fir::UndefOp>(loc, seqTy); in TEST_F()
|
| H A D | AssignTest.cpp | 15 mlir::Type seqTy = in TEST_F() local 17 mlir::Value source = firBuilder->create<fir::UndefOp>(loc, seqTy); in TEST_F() 18 mlir::Value dest = firBuilder->create<fir::UndefOp>(loc, seqTy); in TEST_F()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | CGOps.cpp | 44 if (auto seqTy = in getOutRank() local 46 return seqTy.getDimension(); in getOutRank() 51 if (auto seqTy = fir::dyn_cast_ptrOrBoxEleTy(box().getType()) in getRank() local 53 return seqTy.getDimension(); in getRank()
|
| H A D | TypeConverter.h | 235 if (auto seqTy = ele.dyn_cast<SequenceType>()) variable 236 rank = seqTy.getDimension(); 318 if (auto seqTy = eleTy.dyn_cast<fir::SequenceType>()) { in convertPointerLike() local 319 if (!seqTy.hasConstantShape() || in convertPointerLike() 320 characterWithDynamicLen(seqTy.getEleTy())) { in convertPointerLike() 321 if (seqTy.hasConstantInterior()) in convertPointerLike() 322 return convertType(seqTy); in convertPointerLike() 323 eleTy = seqTy.getEleTy(); in convertPointerLike()
|
| H A D | PreCGRewrite.cpp | 83 if (auto seqTy = boxTy.getEleTy().dyn_cast<fir::SequenceType>()) in matchAndRewrite() local 84 if (seqTy.hasConstantShape()) in matchAndRewrite() 85 return rewriteStaticShape(embox, rewriter, seqTy); in matchAndRewrite() 91 fir::SequenceType seqTy) const { in rewriteStaticShape() 95 for (auto ext : seqTy.getShape()) { in rewriteStaticShape()
|
| H A D | CodeGen.cpp | 336 auto seqTy = dataTy.dyn_cast<fir::SequenceType>(); in genAllocationScaleSize() local 337 if ((op.hasShapeOperands() && seqTy && !seqTy.hasConstantInterior()) || in genAllocationScaleSize() 338 (seqTy && fir::characterWithDynamicLen(scalarType))) { in genAllocationScaleSize() 340 for (auto extent : seqTy.getShape()) in genAllocationScaleSize() 1566 auto seqTy = memEleTy.cast<fir::SequenceType>(); in matchAndRewrite() local 1567 mlir::Type seqEleTy = seqTy.getEleTy(); in matchAndRewrite() 1586 constRows = seqTy.getConstantRows(); in matchAndRewrite() 1942 if (auto seqTy = ty.dyn_cast<fir::SequenceType>()) in getInputEleTy() local 1943 return seqTy.getEleTy(); in getInputEleTy() 2720 fir::SequenceType seqTy) const { in isFullRange() [all …]
|
| /llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/ |
| H A D | FIRType.h | 157 inline bool sequenceWithNonConstantShape(fir::SequenceType seqTy) { in sequenceWithNonConstantShape() argument 158 return seqTy.hasUnknownShape() || !seqTy.hasConstantShape(); in sequenceWithNonConstantShape() 184 if (auto seqTy = t.dyn_cast<fir::SequenceType>()) in unwrapSequenceType() local 185 return seqTy.getEleTy(); in unwrapSequenceType() 227 if (auto seqTy = t.dyn_cast<fir::SequenceType>()) in unwrapUntilSeqType() local 228 return seqTy; in unwrapUntilSeqType()
|
| /llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/ |
| H A D | BoxValue.h | 223 if (auto seqTy = type.dyn_cast<fir::SequenceType>()) in getEleTy() local 224 return seqTy.getEleTy(); in getEleTy() 232 auto seqTy = getBaseTy().dyn_cast<fir::SequenceType>(); in hasAssumedRank() local 233 return seqTy && seqTy.hasUnknownShape(); in hasAssumedRank() 238 if (auto seqTy = getBaseTy().dyn_cast<fir::SequenceType>()) in rank() local 239 return seqTy.getDimension(); in rank()
|
| H A D | Factory.h | 64 auto seqTy = ty.getEleTy().cast<fir::SequenceType>(); in genCharacterCopy() local 65 return seqTy.getEleTy().cast<fir::CharacterType>(); in genCharacterCopy() 194 auto seqTy = ty.cast<fir::SequenceType>(); in originateIndices() local 196 const auto dimension = seqTy.getDimension(); in originateIndices()
|
| H A D | FIRBuilder.h | 467 fir::SequenceType seqTy); 533 fir::SequenceType seqTy, mlir::Value memref,
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Transforms/ |
| H A D | MemoryAllocation.cpp | 74 if (auto seqTy = alloca.getInType().dyn_cast<fir::SequenceType>()) { in keepStackAllocation() local 75 if (fir::hasDynamicSize(seqTy)) { in keepStackAllocation() 81 for (std::int64_t i : seqTy.getShape()) { in keepStackAllocation()
|
| H A D | ArrayValueCopy.cpp | 895 auto seqTy = dyn_cast_ptrOrBoxEleTy(alloc.getType()); in genCoorOp() local 896 assert(seqTy && seqTy.isa<SequenceType>()); in genCoorOp() 897 const auto dimension = seqTy.cast<SequenceType>().getDimension(); in genCoorOp() 1019 auto seqTy = arrTy.cast<SequenceType>(); in findNonconstantExtents() local 1020 for (auto [s, x] : llvm::zip(seqTy.getShape(), extents)) in findNonconstantExtents() 1023 if (extents.size() > seqTy.getShape().size()) in findNonconstantExtents() 1024 for (auto x : extents.drop_front(seqTy.getShape().size())) in findNonconstantExtents()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Dialect/ |
| H A D | FIRType.cpp | 298 if (auto seqTy = ty.dyn_cast<fir::SequenceType>()) in unwrapSeqOrBoxedSeqType() local 299 return seqTy.getEleTy(); in unwrapSeqOrBoxedSeqType() 302 if (auto seqTy = eleTy.dyn_cast<fir::SequenceType>()) in unwrapSeqOrBoxedSeqType() local 303 return seqTy.getEleTy(); in unwrapSeqOrBoxedSeqType() 336 if (auto seqTy = eleTy.dyn_cast<fir::SequenceType>()) in isa_unknown_size_box() local 337 if (seqTy.hasUnknownShape()) in isa_unknown_size_box()
|
| H A D | FIROps.cpp | 490 if (auto seqTy = eleTy.dyn_cast<fir::SequenceType>()) { in verify() local 492 fir::applyPathToType(seqTy.getEleTy(), sliceOp.getFields()); in verify() 1145 if (auto seqTy = eleTy.dyn_cast<fir::SequenceType>()) { in verify() local 1146 eleTy = seqTy.getEleTy(); in verify() 2191 if (auto seqTy = eleTy.dyn_cast<fir::SequenceType>()) in getBoxScalarEleTy() local 2192 return seqTy.getEleTy(); in getBoxScalarEleTy() 2199 if (auto seqTy = eleTy.dyn_cast<fir::SequenceType>()) in getBoxRank() local 2200 return seqTy.getDimension(); in getBoxRank() 2333 if (auto seqTy = resultType.dyn_cast<fir::SequenceType>()) { in verify() local 2334 if (seqTy.getDimension() != shapeTyRank) in verify() [all …]
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | ConvertExpr.cpp | 1923 return seqTy.getEleTy(); in genSubType() 1969 auto seqTy = in genCoordinateOp() local 3502 auto seqTy = ty.cast<fir::SequenceType>(); in convertToArrayBoxValue() local 3505 if (fir::isa_char(seqTy.getEleTy())) in convertToArrayBoxValue() 3884 auto toTy = fir::HeapType::get(seqTy); in lowerLazyArrayExpression() 4715 assert(seqTy && "must be an array"); in createAndLoadSomeArrayTemp() 5518 for (auto extent : seqTy.getShape()) in genarr() 6304 assert(eleTy == seqTy.getEleTy()); in computeElementSize() 6583 if (fir::isa_char(seqTy.getEleTy())) { in genArrayCtorInitializer() 6626 for (auto extent : seqTy.getShape()) in genarr() [all …]
|
| H A D | ConvertVariable.cpp | 754 auto seqTy = fir::SequenceType::get(shape, i8Ty); in instantiateAggregateStore() local 755 mlir::Type refTy = builder.getRefType(seqTy); in instantiateAggregateStore() 763 auto seqTy = fir::SequenceType::get(shape, i8Ty); in instantiateAggregateStore() local 765 builder.allocateLocal(loc, seqTy, aggName, "", llvm::None, llvm::None, in instantiateAggregateStore() 1060 mlir::Type seqTy = builder.getRefType(builder.getVarLenSeqTy(i8Ty)); in instantiateCommon() local 1061 mlir::Value base = builder.createConvert(loc, seqTy, commonAddr); in instantiateCommon() 1217 if (auto seqTy = fir::unwrapUntilSeqType(initVal.getType())) { in recoverShapeVector() local 1218 for (auto [fst, snd] : llvm::zip(shapeVec, seqTy.getShape())) in recoverShapeVector()
|
| H A D | Allocatable.cpp | 641 if (auto seqTy = eleTy.dyn_cast<fir::SequenceType>()) in createMutableProperties() local 642 eleTy = seqTy.getEleTy(); in createMutableProperties()
|
| H A D | OpenMP.cpp | 187 mlir::Type seqTy = firOpBuilder.getRefType(firOpBuilder.getVarLenSeqTy(i8Ty)); in genCommonBlockMember() local 189 firOpBuilder.createConvert(currentLocation, seqTy, commonValue); in genCommonBlockMember()
|
| H A D | Bridge.cpp | 533 if (auto seqTy = symType.dyn_cast<fir::SequenceType>()) { in copyHostAssociateVar() local
|
| /llvm-project-15.0.7/flang/unittests/Optimizer/Builder/ |
| H A D | FIRBuilderTest.cpp | 168 fir::SequenceType seqTy = ty.dyn_cast<fir::SequenceType>(); in TEST_F() local 169 EXPECT_EQ(1u, seqTy.getDimension()); in TEST_F() 258 auto seqTy = builder.getVarLenSeqTy(builder.getI64Type(), 10); in TEST_F() local 259 EXPECT_TRUE(fir::hasDynamicSize(seqTy)); in TEST_F()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/ |
| H A D | FIRBuilder.cpp | 861 fir::SequenceType seqTy) { in createExtents() argument 864 for (auto ext : seqTy.getShape()) in createExtents() 912 if (auto seqTy = fieldTy.dyn_cast<fir::SequenceType>()) { in componentToExtendedValue() local 913 fieldTy = seqTy.getEleTy(); in componentToExtendedValue() 915 for (auto extent : seqTy.getShape()) { in componentToExtendedValue() 1155 fir::FirOpBuilder &builder, mlir::Location loc, fir::SequenceType seqTy, in genLenOfCharacter() argument 1176 auto eleTy = fir::applyPathToType(seqTy, path); in genLenOfCharacter() 1196 if (fir::isa_char(seqTy.getEleTy())) { in genLenOfCharacter()
|
| H A D | MutableBox.cpp | 334 if (auto seqTy = type.dyn_cast<fir::SequenceType>()) { in createUnallocatedBox() local 336 llvm::SmallVector<mlir::Value> extents(seqTy.getDimension(), zero); in createUnallocatedBox() 560 if (auto seqTy = ty.dyn_cast<fir::SequenceType>()) { in associateMutableBoxWithRemap() local 563 ty = fir::SequenceType::get(shape, seqTy.getEleTy()); in associateMutableBoxWithRemap()
|
| H A D | Character.cpp | 55 if (auto seqTy = type.dyn_cast<fir::SequenceType>()) in isArray() local 56 return fir::isa_char(seqTy.getEleTy()); in isArray()
|