| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | fold-integer.cpp | 143 return Fold(context, ConvertToType<T>(std::move(*lb))); in LBOUND() 148 ConvertToType<T>(Expr<ExtentType>{std::move(*extents)})); in LBOUND() 202 return Fold(context, ConvertToType<T>(std::move(*ub))); in UBOUND() 212 ConvertToType<T>(Expr<ExtentType>{std::move(*extents)})); in UBOUND() 230 return Fold(context, ConvertToType<T>(std::move(*shapeExpr))); in UBOUND() 404 cmp.emplace(ConvertToType<LogicalResult>( in IsHit() 712 return Fold(context, ConvertToType<T>(std::move(x))); in FoldIntrinsicFunction() 804 return Fold(context, ConvertToType<T>(*std::move(len))); in FoldIntrinsicFunction() 952 return ConvertToType<T>(Expr< in FoldIntrinsicFunction() 985 return Fold(context, ConvertToType<T>(std::move(*shapeExpr))); in FoldIntrinsicFunction() [all …]
|
| H A D | fold-logical.cpp | 192 ConvertToType<T>( in FoldIntrinsicFunction() 197 ConvertToType<Ascii>(std::move(*cx0)), in FoldIntrinsicFunction() 198 ConvertToType<Ascii>(std::move(*cx1))))); in FoldIntrinsicFunction() 202 return Fold(context, ConvertToType<T>(std::move(*expr))); in FoldIntrinsicFunction()
|
| H A D | tools.cpp | 203 std::move(rxk), ConvertToType<resultType>(std::move(iy))}); in MixedRealLeft() 390 OPR<resultType>{ConvertToType<resultType>(std::move(ix)), in NumericOperation() 618 std::optional<Expr<SomeType>> ConvertToType( in ConvertToType() function 677 std::optional<Expr<SomeType>> ConvertToType( in ConvertToType() function 680 return ConvertToType(to, std::move(*x)); in ConvertToType() 686 std::optional<Expr<SomeType>> ConvertToType( in ConvertToType() function 689 return ConvertToType(*symType, std::move(x)); in ConvertToType() 694 std::optional<Expr<SomeType>> ConvertToType( in ConvertToType() function 697 return ConvertToType(to, std::move(*x)); in ConvertToType() 1032 Fold(context, ConvertToType(sizedType, Expr<SomeType>{expr}))}) { in DataConstantConversionHelper() [all …]
|
| H A D | fold-complex.cpp | 43 return Fold(context, ConvertToType<T>(std::move(*x))); in FoldIntrinsicFunction()
|
| H A D | fold-implementation.h | 401 if (auto converted{ConvertToType(T::GetType(), std::move(*expr))}) { in Folding() 584 ConvertToType<SubscriptInteger>(Expr<SomeInteger>{*shiftExpr}))}; in CSHIFT() 663 ConvertToType<SubscriptInteger>(Expr<SomeInteger>{*shiftExpr}))}; in EOSHIFT() 672 ConvertToType(array->GetType(), Expr<SomeType>{*boundaryExpr})); in EOSHIFT() 790 ConvertToType<LogicalResult>( in PACK() 971 ConvertToType<LogicalResult>( in UNPACK() 1090 return Fold(context, ConvertToType<T>(AsCategoryExpr(std::move(maxRef)))); in RewriteSpecificMINorMAX() 1991 result = ConvertToType<Result>(std::move(x)); in ToReal() 2001 result = Fold(context, ConvertToType<Result>(std::move(x))); in ToReal()
|
| H A D | intrinsics-library.cpp | 573 ConvertToType(hostFunction->argumentTypes[i], std::move(args[i])) in GetHostRuntimeWrapper() 577 ConvertToType( in GetHostRuntimeWrapper()
|
| H A D | shape.cpp | 892 ConvertToType<ExtentType>(std::move(shapeArg)))}) { in operator ()() 911 ConvertToType<ExtentType>(common::Clone(*nCopies))); in operator ()() 923 MaybeExtentExpr{ConvertToType<ExtentType>(common::Clone(*size))}}; in operator ()()
|
| H A D | type.cpp | 123 return ConvertToType<SubscriptInteger>(std::move(*length)); in GetCharLength()
|
| H A D | check-expression.cpp | 402 auto converted{ConvertToType(symTS->type(), Expr<SomeType>{x})}; in NonPointerInitializationExpr()
|
| /llvm-project-15.0.7/flang/include/flang/Evaluate/ |
| H A D | tools.h | 476 Expr<TO> ConvertToType(Expr<SomeKind<FROMCAT>> &&x) { in ConvertToType() function 495 return ConvertToType<TO, TypeCategory::Real>(Expr<SomeReal>{ in ConvertToType() 505 Expr<TO> ConvertToType(Expr<Type<FROMCAT, FROMKIND>> &&x) { in ConvertToType() function 506 return ConvertToType<TO, FROMCAT>(Expr<SomeKind<FROMCAT>>{std::move(x)}); in ConvertToType() 509 template <typename TO> Expr<TO> ConvertToType(BOZLiteralConstant &&x) { in ConvertToType() function 527 std::optional<Expr<SomeType>> ConvertToType( 529 std::optional<Expr<SomeType>> ConvertToType( 532 std::optional<Expr<SomeType>> ConvertToType( 539 return ConvertToType<Type<TC, TK>>(std::move(x)); in ConvertTo() 549 ConvertToType<ResultType<KindExpr>>(std::move(from))); in ConvertTo() [all …]
|
| /llvm-project-15.0.7/flang/lib/Semantics/ |
| H A D | check-case.cpp | 88 evaluate::ConvertToType(T::GetType(), SomeExpr{folded}))}) { in GetValue() 91 evaluate::ConvertToType(*type, SomeExpr{*converted}))}; in GetValue()
|
| H A D | check-call.cpp | 116 auto converted{ConvertToType(dummyType.type(), std::move(actual))}; in CheckCharacterActual() 141 evaluate::ConvertToType(dummyType.type(), std::move(actual))}; in ConvertIntegerActual() 689 if (auto converted{evaluate::ConvertToType(type, SomeExpr{*expr})}) { in ConvertBOZLiteralArg()
|
| H A D | expression.cpp | 778 return Fold(ConvertToType( in Analyze() 1131 return Fold(ConvertToType(*dyType, in Analyze() 1227 ConvertToType<SubscriptInteger>(std::move(*intExpr))); in Analyze() 1350 ConvertToType<Type<TypeCategory::Integer, KIND>>( in GetSpecificIntExpr() 1397 } else if (auto cast{ConvertToType(*type_, std::move(*x))}) { in Push() 1477 if (auto cast{ConvertToType(*type_, std::move(*x))}) { in Push() 1820 ConvertToType(*symbol, std::move(*value))}) { in Analyze() 3174 return ConvertToType<SubscriptInteger>(std::move(*intExpr)); in AnalyzeKindSelector() 3754 } else if (auto rhsExpr{evaluate::ConvertToType(lhsType, MoveExpr(1))}) { in AddAssignmentConversion()
|
| H A D | type.cpp | 122 if (auto converted{evaluate::ConvertToType(symbol, SomeExpr{*expr})}) { in EvaluateParameters()
|
| H A D | resolve-names-utils.cpp | 348 evaluate::ConvertToType<evaluate::SubscriptInteger>( in GetBound()
|
| H A D | data-to-inits.cpp | 274 if (auto converted{evaluate::ConvertToType(type, SomeExpr{expr})}) { in ConvertElement()
|
| H A D | resolve-names.cpp | 208 return FoldExpr(evaluate::ConvertToType<evaluate::SubscriptInteger>( in EvaluateSubscriptIntExpr() 7221 auto converted{ConvertToType(*type, std::move(*expr))}; in AnalyzeStmtFunctionStmt()
|