Home
last modified time | relevance | path

Searched refs:funcRef (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/flang/lib/Evaluate/
Dfold-real.cpp16 FunctionRef<Type<TypeCategory::Real, KIND>> &&funcRef) { in FoldIntrinsicFunction() argument
19 ActualArguments &args{funcRef.arguments()}; in FoldIntrinsicFunction()
20 auto *intrinsic{std::get_if<SpecificIntrinsic>(&funcRef.proc().u)}; in FoldIntrinsicFunction()
34 context, std::move(funcRef), *callable); in FoldIntrinsicFunction()
41 return RewriteSpecificMINorMAX(context, std::move(funcRef)); in FoldIntrinsicFunction()
48 context, std::move(funcRef), *callable); in FoldIntrinsicFunction()
60 context, std::move(funcRef), *callable); in FoldIntrinsicFunction()
71 context, std::move(funcRef), &Scalar<T>::ABS); in FoldIntrinsicFunction()
75 context, std::move(funcRef), *callable); in FoldIntrinsicFunction()
85 context, std::move(funcRef), &Scalar<ComplexT>::AIMAG); in FoldIntrinsicFunction()
[all …]
Dfold-integer.cpp15 FunctionRef<Type<TypeCategory::Integer, KIND>> &&funcRef) { in LBOUND() argument
17 ActualArguments &args{funcRef.arguments()}; in LBOUND()
21 if (funcRef.Rank() == 0) { in LBOUND()
28 return MakeInvalidIntrinsic<T>(std::move(funcRef)); in LBOUND()
34 return Expr<T>{std::move(funcRef)}; in LBOUND()
65 return Expr<T>{std::move(funcRef)}; in LBOUND()
70 FunctionRef<Type<TypeCategory::Integer, KIND>> &&funcRef) { in UBOUND() argument
72 ActualArguments &args{funcRef.arguments()}; in UBOUND()
76 if (funcRef.Rank() == 0) { in UBOUND()
83 return MakeInvalidIntrinsic<T>(std::move(funcRef)); in UBOUND()
[all …]
Dfold-character.cpp16 FunctionRef<Type<TypeCategory::Character, KIND>> &&funcRef) { in FoldIntrinsicFunction() argument
18 auto *intrinsic{std::get_if<SpecificIntrinsic>(&funcRef.proc().u)}; in FoldIntrinsicFunction()
23 return FoldElementalIntrinsic<T, IntT>(context, std::move(funcRef), in FoldIntrinsicFunction()
29 context, std::move(funcRef), CharacterUtils<KIND>::ADJUSTL); in FoldIntrinsicFunction()
32 context, std::move(funcRef), CharacterUtils<KIND>::ADJUSTR); in FoldIntrinsicFunction()
34 return FoldMINorMAX(context, std::move(funcRef), Ordering::Greater); in FoldIntrinsicFunction()
36 return FoldMerge<T>(context, std::move(funcRef)); in FoldIntrinsicFunction()
38 return FoldMINorMAX(context, std::move(funcRef), Ordering::Less); in FoldIntrinsicFunction()
43 context, funcRef.arguments())}) { in FoldIntrinsicFunction()
50 GetScalarConstantArguments<T>(context, funcRef.arguments())}) { in FoldIntrinsicFunction()
[all …]
Dfold-complex.cpp16 FunctionRef<Type<TypeCategory::Complex, KIND>> &&funcRef) { in FoldIntrinsicFunction() argument
18 ActualArguments &args{funcRef.arguments()}; in FoldIntrinsicFunction()
19 auto *intrinsic{std::get_if<SpecificIntrinsic>(&funcRef.proc().u)}; in FoldIntrinsicFunction()
28 context, std::move(funcRef), *callable); in FoldIntrinsicFunction()
35 context, std::move(funcRef), &Scalar<T>::CONJG); in FoldIntrinsicFunction()
57 return FoldMerge<T>(context, std::move(funcRef)); in FoldIntrinsicFunction()
61 return Expr<T>{std::move(funcRef)}; in FoldIntrinsicFunction()
Dfold-logical.cpp17 FunctionRef<Type<TypeCategory::Logical, KIND>> &&funcRef) { in FoldIntrinsicFunction() argument
19 ActualArguments &args{funcRef.arguments()}; in FoldIntrinsicFunction()
20 auto *intrinsic{std::get_if<SpecificIntrinsic>(&funcRef.proc().u)}; in FoldIntrinsicFunction()
60 return gotConstant ? Expr<T>{false} : Expr<T>{std::move(funcRef)}; in FoldIntrinsicFunction()
87 std::move(funcRef), in FoldIntrinsicFunction()
97 return FoldElementalIntrinsic<T, DefaultReal>(context, std::move(funcRef), in FoldIntrinsicFunction()
110 return FoldMerge<T>(context, std::move(funcRef)); in FoldIntrinsicFunction()
116 return Expr<T>{std::move(funcRef)}; in FoldIntrinsicFunction()
Dfold-implementation.h439 FunctionRef<TR> &&funcRef, WrapperType<TR, TA...> func, in FoldElementalIntrinsicHelper() argument
442 GetConstantArguments<TA...>(context, funcRef.arguments())}) { in FoldElementalIntrinsicHelper()
462 return Expr<TR>{std::move(funcRef)}; in FoldElementalIntrinsicHelper()
497 return Expr<TR>{std::move(funcRef)}; in FoldElementalIntrinsicHelper()
502 FunctionRef<TR> &&funcRef, ScalarFunc<TR, TA...> func) { in FoldElementalIntrinsic() argument
504 context, std::move(funcRef), func, std::index_sequence_for<TA...>{}); in FoldElementalIntrinsic()
508 FunctionRef<TR> &&funcRef, ScalarFuncWithContext<TR, TA...> func) { in FoldElementalIntrinsic() argument
510 context, std::move(funcRef), func, std::index_sequence_for<TA...>{}); in FoldElementalIntrinsic()
544 template <typename T> Expr<T> MakeInvalidIntrinsic(FunctionRef<T> &&funcRef) { in MakeInvalidIntrinsic() argument
545 SpecificIntrinsic invalid{std::get<SpecificIntrinsic>(funcRef.proc().u)}; in MakeInvalidIntrinsic()
[all …]
/external/skqp/tools/bookmaker/
DmdOut.h147 string funcRef = fPriorWord + "()"; in skipParens() local
148 if (this->findLink(funcRef, &fPriorLink, false)) { in skipParens()
149 fPriorWord = funcRef; in skipParens()
/external/llvm-project/flang/lib/Semantics/
Dexpression.cpp2085 MaybeExpr ExpressionAnalyzer::Analyze(const parser::FunctionReference &funcRef, in Analyze() argument
2087 const parser::Call &call{funcRef.v}; in Analyze()
2122 auto &mutableRef{const_cast<parser::FunctionReference &>(funcRef)}; in Analyze()
2549 const parser::FunctionReference &funcRef) { in CheckFuncRefToArrayElementRefHasSubscripts() argument
2554 if (std::get<std::list<parser::ActualArgSpec>>(funcRef.v.t).empty()) { in CheckFuncRefToArrayElementRefHasSubscripts()
2555 auto &proc{std::get<parser::ProcedureDesignator>(funcRef.v.t)}; in CheckFuncRefToArrayElementRefHasSubscripts()
2560 auto &msg{context.Say(funcRef.v.source, in CheckFuncRefToArrayElementRefHasSubscripts()
2589 parser::FunctionReference &funcRef{func->value()}; in FixMisparsedFunctionReference() local
2590 auto &proc{std::get<parser::ProcedureDesignator>(funcRef.v.t)}; in FixMisparsedFunctionReference()
2607 CheckFuncRefToArrayElementRefHasSubscripts(context, funcRef); in FixMisparsedFunctionReference()
[all …]