Home
last modified time | relevance | path

Searched refs:typeAndShape (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dcall.cpp91 if (const auto *typeAndShape{result->GetTypeAndShape()}) { in GetType() local
92 return typeAndShape->type(); in GetType()
108 if (const auto *typeAndShape{result->GetTypeAndShape()}) { in Rank() local
109 CHECK(!typeAndShape->attrs().test( in Rank()
111 return typeAndShape->Rank(); in Rank()
H A Dintrinsics.cpp1871 characteristics::TypeAndShape typeAndShape{ in Match() local
1874 characteristics::DummyDataObject{std::move(typeAndShape)}); in Match()
1876 characteristics::TypeAndShape typeAndShape{ in Match() local
1879 characteristics::DummyDataObject{std::move(typeAndShape)}); in Match()
1897 characteristics::TypeAndShape typeAndShape{resultType.value(), resultRank}; in Match() local
1898 characteristics::FunctionResult funcResult{std::move(typeAndShape)}; in Match()
2105 characteristics::TypeAndShape typeAndShape{ in HandleNull() local
2108 "mold"s, characteristics::DummyDataObject{typeAndShape}); in HandleNull()
2109 fResult.emplace(std::move(typeAndShape)); in HandleNull()
H A Dcharacteristics.cpp828 } else if (const auto *typeAndShape{GetTypeAndShape()}) { in CanBeReturnedViaImplicitInterface() local
829 if (typeAndShape->Rank() > 0) { in CanBeReturnedViaImplicitInterface()
832 const DynamicType &type{typeAndShape->type()}; in CanBeReturnedViaImplicitInterface()
/llvm-project-15.0.7/flang/lib/Lower/
H A DCallInterface.cpp215 const Fortran::evaluate::characteristics::TypeAndShape *typeAndShape = in walkResultLengths() local
217 assert(typeAndShape && "no result type"); in walkResultLengths()
218 Fortran::evaluate::DynamicType dynamicType = typeAndShape->type(); in walkResultLengths()
678 const Fortran::evaluate::characteristics::TypeAndShape *typeAndShape = in handleImplicitResult() local
680 assert(typeAndShape && "expect type for non proc pointer result"); in handleImplicitResult()
681 Fortran::evaluate::DynamicType dynamicType = typeAndShape->type(); in handleImplicitResult()
939 const Fortran::evaluate::characteristics::TypeAndShape *typeAndShape = in handleExplicitResult() local
941 assert(typeAndShape && "expect type for non proc pointer result"); in handleExplicitResult()
942 mlir::Type mlirType = translateDynamicType(typeAndShape->type()); in handleExplicitResult()
943 fir::SequenceType::Shape bounds = getBounds(typeAndShape->shape()); in handleExplicitResult()
[all …]
/llvm-project-15.0.7/flang/lib/Semantics/
H A Druntime-type-info.cpp712 auto typeAndShape{evaluate::characteristics::TypeAndShape::Characterize( in DescribeComponent() local
714 CHECK(typeAndShape.has_value()); in DescribeComponent()
715 auto dyType{typeAndShape->type()}; in DescribeComponent()
716 const auto &shape{typeAndShape->shape()}; in DescribeComponent()
729 auto len{typeAndShape->LEN()}; in DescribeComponent()
1061 const auto &typeAndShape{ in DescribeSpecialProc() local
1065 if (typeAndShape.attrs().test( in DescribeSpecialProc()
1071 if (int rank{evaluate::GetRank(typeAndShape.shape())}; rank > 0) { in DescribeSpecialProc()
H A Dcheck-declarations.cpp880 const auto *typeAndShape{result.GetTypeAndShape()}; in IsResultOkToDiffer() local
881 if (!typeAndShape || typeAndShape->Rank() != 0) { in IsResultOkToDiffer()
884 auto category{typeAndShape->type().category()}; in IsResultOkToDiffer()
889 int kind{typeAndShape->type().kind()}; in IsResultOkToDiffer()
H A Dexpression.cpp2368 if (const auto *typeAndShape{result->GetTypeAndShape()}) { in CheckBadExplicitType() local
2370 typeAndShape->Characterize(intrinsic, GetFoldingContext())}) { in CheckBadExplicitType()
2371 if (!declared->type().IsTkCompatibleWith(typeAndShape->type())) { in CheckBadExplicitType()
2374 typeAndShape->AsFortran(), intrinsic.name(), in CheckBadExplicitType()