| /llvm-project-15.0.7/flang/unittests/Optimizer/Builder/Runtime/ |
| H A D | CharacterTest.cpp | 18 mlir::Value result = firBuilder->create<fir::UndefOp>(loc, boxTy); in TEST_F() 19 mlir::Value string = firBuilder->create<fir::UndefOp>(loc, boxTy); in TEST_F() 26 mlir::Value result = firBuilder->create<fir::UndefOp>(loc, boxTy); in TEST_F() 27 mlir::Value string = firBuilder->create<fir::UndefOp>(loc, boxTy); in TEST_F() 52 mlir::Type boxTy = fir::BoxType::get(charTy); in checkCharCompare1AllTypeForKind() local 57 checkCharCompare1(builder, boxTy, fctName); in checkCharCompare1AllTypeForKind() 149 mlir::Value setBox = firBuilder->create<fir::UndefOp>(loc, boxTy); in TEST_F() 161 mlir::Type boxTy = fir::BoxType::get(charTy); in checkGenScan() local 165 mlir::Value setBase = builder.create<fir::UndefOp>(loc, boxTy); in checkGenScan() 195 mlir::Type boxTy = fir::BoxType::get(charTy); in checkGenVerify() local [all …]
|
| H A D | RuntimeCallTestBase.h | 56 boxTy = fir::BoxType::get(mlir::NoneType::get(firBuilder->getContext())); in SetUp() 79 mlir::Type boxTy; member
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/Runtime/ |
| H A D | Reduction.cpp | 26 auto boxTy = in getTypeModel() local 42 auto boxTy = in getTypeModel() local 59 auto boxTy = in getTypeModel() local 75 auto boxTy = in getTypeModel() local 91 auto boxTy = in getTypeModel() local 108 auto boxTy = in getTypeModel() local 124 auto boxTy = in getTypeModel() local 180 ctx, {resTy, boxTy, strTy, intTy, intTy, boxTy}, {}); in getTypeModel() 198 ctx, {resTy, boxTy, strTy, intTy, intTy, boxTy}, {}); in getTypeModel() 348 ctx, {resTy, boxTy, strTy, intTy, intTy, boxTy}, {}); in getTypeModel() [all …]
|
| H A D | Character.cpp | 48 if (auto boxTy = ty.dyn_cast<fir::BoxCharType>()) in discoverKind() local 49 return discoverKind(boxTy.getEleTy()); in discoverKind() 50 if (auto boxTy = ty.dyn_cast<fir::BoxType>()) in discoverKind() local 51 return discoverKind(boxTy.getEleTy()); in discoverKind()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Dialect/ |
| H A D | FIRType.cpp | 252 if (auto boxTy = ty.dyn_cast<fir::BoxType>()) in isPointerType() local 253 return boxTy.getEleTy().isa<fir::PointerType>(); in isPointerType() 260 if (auto boxTy = ty.dyn_cast<fir::BoxType>()) in isAllocatableType() local 261 return boxTy.getEleTy().isa<fir::HeapType>(); in isAllocatableType() 268 if (auto boxTy = ty.dyn_cast<fir::BoxType>()) in isUnlimitedPolymorphicType() local 269 return boxTy.getEleTy().isa<mlir::NoneType>(); in isUnlimitedPolymorphicType() 300 if (auto boxTy = ty.dyn_cast<fir::BoxType>()) { in unwrapSeqOrBoxedSeqType() local 301 auto eleTy = unwrapRefType(boxTy.getEleTy()); in unwrapSeqOrBoxedSeqType() 330 if (auto boxTy = t.dyn_cast<fir::BoxType>()) { in isa_unknown_size_box() local 331 auto eleTy = boxTy.getEleTy(); in isa_unknown_size_box()
|
| H A D | FIROps.cpp | 2189 static mlir::Type getBoxScalarEleTy(mlir::Type boxTy) { in getBoxScalarEleTy() argument 2190 auto eleTy = fir::dyn_cast_ptrOrBoxEleTy(boxTy); in getBoxScalarEleTy() 2197 static unsigned getBoxRank(mlir::Type boxTy) { in getBoxRank() argument 2198 auto eleTy = fir::dyn_cast_ptrOrBoxEleTy(boxTy); in getBoxRank()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | TargetRewrite.cpp | 236 .template Case<fir::BoxCharType>([&](fir::BoxCharType boxTy) { in convertCallOp() argument 249 auto m = specifics->boxcharArgumentType(boxTy.getEleTy(), sret); in convertCallOp() 503 .Case<fir::BoxCharType>([&](fir::BoxCharType boxTy) { in convertSignature() argument 505 newInTys.push_back(boxTy); in convertSignature() 512 boxTy.getEleTy(), sret))) { in convertSignature() 611 auto boxTy = oldArgTys[fixup.index - offset - fixup.second]; in convertSignature() local 613 loc, boxTy, func.front().getArgument(fixup.index - 1), newArg); in convertSignature() 683 auto boxTy = oldArgTys[fixup.index - offset]; in convertSignature() local 685 auto box = rewriter->create<fir::EmboxCharOp>(loc, boxTy, newBufArg, in convertSignature()
|
| H A D | CodeGen.cpp | 1141 static int getCFIAttr(fir::BoxType boxTy) { in getCFIAttr() 1142 auto eleTy = boxTy.getEleTy(); in getCFIAttr() 1155 auto recTy = unwrapIfDerived(boxTy); in isDerivedTypeWithLenParams() 1158 static bool isDerivedType(fir::BoxType boxTy) { in isDerivedType() 1275 auto boxTy = dest.getType(); in insertField() local 1398 return {boxTy, descriptor, eleSize}; in consDescriptorPrefix() 1524 if (isDerivedTypeWithLenParams(boxTy)) { in matchAndRewrite() 1543 auto [boxTy, dest, eleSize] = in matchAndRewrite() 1559 mlir::Type eleTy = boxTy.getEleTy(); in matchAndRewrite() 1707 if (isDerivedTypeWithLenParams(boxTy)) in matchAndRewrite() [all …]
|
| H A D | BoxedProcedure.cpp | 79 if (auto boxTy = ty.dyn_cast<BoxType>()) in needsConversion() local 80 return needsConversion(boxTy.getEleTy()); in needsConversion()
|
| H A D | PreCGRewrite.cpp | 82 if (auto boxTy = embox.getType().dyn_cast<fir::BoxType>()) in matchAndRewrite() local 83 if (auto seqTy = boxTy.getEleTy().dyn_cast<fir::SequenceType>()) in matchAndRewrite()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/ |
| H A D | FIRBuilder.cpp | 468 mlir::Type boxTy = fir::BoxType::get(elementType); in createBox() local 472 return create<fir::EmboxOp>(loc, boxTy, itemAddr, s); in createBox() 477 return create<fir::EmboxOp>(loc, boxTy, itemAddr, s); in createBox() 481 return create<fir::EmboxOp>(loc, boxTy, itemAddr, s, emptySlice, in createBox() 486 return create<fir::EmboxOp>(loc, boxTy, itemAddr); in createBox() 489 return create<fir::EmboxOp>(loc, boxTy, itemAddr, emptyShape, in createBox() 497 return create<fir::EmboxOp>(loc, boxTy, itemAddr); in createBox() 741 if (auto boxTy = valTy.dyn_cast<fir::BoxType>()) { in getFromBox() local 742 auto eleTy = fir::unwrapAllRefAndSeqType(boxTy.getEleTy()); in getFromBox() 795 if (auto boxTy = memTy.dyn_cast<fir::BoxType>()) in getTypeParams() local [all …]
|
| H A D | Character.cpp | 32 if (auto boxTy = type.dyn_cast<fir::BoxType>()) in unwrapBoxAndRef() local 33 type = boxTy.getEleTy(); in unwrapBoxAndRef()
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | HostAssociations.cpp | 399 auto boxTy = box.getType().cast<fir::BoxType>(); in getFromTuple() local 400 auto eleTy = boxTy.getEleTy(); in getFromTuple() 405 auto absentBox = builder.create<fir::AbsentOp>(loc, boxTy); in getFromTuple()
|
| H A D | ConvertExpr.cpp | 537 auto boxTy = in createBoxProcCharTuple() local 3082 mlir::Type boxTy = fir::dyn_cast_ptrEleTy(argTy); in genRawProcedureRef() local 3083 assert(boxTy && boxTy.isa<fir::BoxType>() && in genRawProcedureRef() 3454 auto boxTy = fir::BoxType::get(eleTy); in createDerivedArrayAmend() local 5816 if (auto boxTy = ty.dyn_cast<fir::BoxType>()) in unwrapBoxEleTy() local 5817 return fir::unwrapRefType(boxTy.getEleTy()); in unwrapBoxEleTy() 5962 auto boxTy = fir::BoxType::get(reduceTy); in genarr() local 5969 boxTy = fir::BoxType::get( in genarr() 6966 ty = fir::unwrapRefType(boxTy.getEleTy()); in lowerPath() 7050 eleTy = fir::boxMemRefType(boxTy); in applyPathToArrayLoad() [all …]
|
| H A D | ConvertVariable.cpp | 1583 if (auto boxTy = addr.getType().dyn_cast<fir::BoxType>()) { in mapSymbolAttributes() local 1585 mlir::Type refTy = builder.getRefType(boxTy.getEleTy()); in mapSymbolAttributes() 1762 if (auto boxTy = actualArg.getType().dyn_cast<fir::BoxType>()) { in mapSymbolAttributes() local 1764 mlir::Type refTy = builder.getRefType(boxTy.getEleTy()); in mapSymbolAttributes() 1822 if (auto boxTy = actualArg.getType().dyn_cast<fir::BoxType>()) { in mapSymbolAttributes() local 1824 mlir::Type refTy = builder.getRefType(boxTy.getEleTy()); in mapSymbolAttributes()
|
| H A D | IO.cpp | 287 fir::BoxType boxTy = in getNamelistGroup() local 291 Fortran::lower::genInitialDataTarget(converter, loc, boxTy, *expr); in getNamelistGroup() 294 builder.createGlobalConstant(loc, boxTy, mangleName, descFunc, linkOnce); in getNamelistGroup()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Transforms/ |
| H A D | ArrayValueCopy.cpp | 438 if (auto boxTy = type.dyn_cast<BoxType>()) in hasPointerType() local 439 type = boxTy.getEleTy(); in hasPointerType() 840 if (auto boxTy = arrLoad.getMemref().getType().dyn_cast<BoxType>()) { in getOrReadExtentsAndShapeOp() local 842 dyn_cast_ptrOrBoxEleTy(boxTy).cast<SequenceType>().getDimension(); in getOrReadExtentsAndShapeOp()
|