Home
last modified time | relevance | path

Searched refs:SomeKind (Results 1 – 11 of 11) sorted by relevance

/external/llvm-project/flang/include/flang/Evaluate/
Dtype.h338 template <TypeCategory CATEGORY> struct SomeKind { struct
340 constexpr bool operator==(const SomeKind &) const { return true; }
343 using NumericCategoryTypes = std::tuple<SomeKind<TypeCategory::Integer>,
344 SomeKind<TypeCategory::Real>, SomeKind<TypeCategory::Complex>>;
345 using AllIntrinsicCategoryTypes = std::tuple<SomeKind<TypeCategory::Integer>,
346 SomeKind<TypeCategory::Real>, SomeKind<TypeCategory::Complex>,
347 SomeKind<TypeCategory::Character>, SomeKind<TypeCategory::Logical>>;
356 template <> class SomeKind<TypeCategory::Derived> {
361 constexpr SomeKind() {} // CLASS(*) in SomeKind() function
362 constexpr explicit SomeKind(const semantics::DerivedTypeSpec &dts) in SomeKind() function
[all …]
Dtools.h105 Expr<SomeKind<CATEGORY>> AsCategoryExpr(Expr<SomeKind<CATEGORY>> &&x) { in AsCategoryExpr()
119 common::IfNoLvalue<Expr<SomeKind<ResultType<A>::category>>, A> AsCategoryExpr( in AsCategoryExpr()
121 return Expr<SomeKind<ResultType<A>::category>>{AsExpr(std::move(x))}; in AsCategoryExpr()
161 std::is_same_v<Ty, Expr<SomeKind<ResultType<A>::category>>>) {
336 Expr<TO> ConvertToType(Expr<SomeKind<FROMCAT>> &&x) { in ConvertToType()
366 return ConvertToType<TO, FROMCAT>(Expr<SomeKind<FROMCAT>>{std::move(x)}); in ConvertToType()
399 common::IfNoLvalue<Expr<SomeKind<TC>>, FROM> ConvertTo( in ConvertTo()
400 const Expr<SomeKind<TC>> &to, FROM &&from) { in ConvertTo()
423 using Result = std::optional<Expr<SomeKind<TOCAT>>>;
438 common::IfNoLvalue<Expr<SomeKind<TOCAT>>, VALUE> ConvertToKind( in ConvertToKind()
[all …]
Dexpression.h202 struct Convert : public Operation<Convert<TO, FROMCAT>, TO, SomeKind<FROMCAT>> {
211 using Operand = SomeKind<FROMCAT>;
741 class Expr<SomeKind<CAT>> : public ExpressionBase<SomeKind<CAT>> {
743 using Result = SomeKind<CAT>;
793 explicit Expr(const Expr<Type<CAT, KIND>> &x) : u{Expr<SomeKind<CAT>>{x}} {}
797 : u{Expr<SomeKind<CAT>>{std::move(x)}} {}
801 u = Expr<SomeKind<CAT>>{x};
807 u = Expr<SomeKind<CAT>>{std::move(x)};
/external/llvm-project/flang/include/flang/Lower/
DConvertType.h45 struct SomeKind;
91 const evaluate::Designator<evaluate::SomeKind<TC>> &) { in translateDesignatorToFIRType()
/external/llvm-project/flang/lib/Evaluate/
Dexpression.cpp196 bool Expr<SomeKind<CAT>>::operator==(const Expr<SomeKind<CAT>> &that) const { in operator ==()
301 template <TypeCategory CAT> int Expr<SomeKind<CAT>>::GetKind() const { in GetKind()
Dtools.cpp141 std::optional<Expr<SomeType>> Package(Expr<SomeKind<CAT>> &&catExpr) { in Package()
146 std::optional<Expr<SomeKind<CAT>>> &&catExpr) { in Package()
226 Expr<SomeKind<RCAT>> &&iry, int defaultRealKind) { in MixedComplexLeft()
284 parser::ContextualMessages &messages, Expr<SomeKind<LCAT>> &&irx, in MixedComplexRight()
471 RelationalOperator opr, Expr<SomeKind<CAT>> &&x, Expr<SomeKind<CAT>> &&y) { in PromoteAndRelate()
Dtype.cpp433 bool SomeKind<TypeCategory::Derived>::operator==( in operator ==()
434 const SomeKind<TypeCategory::Derived> &that) const { in operator ==()
Dfold-implementation.h841 std::optional<Expr<SomeKind<CAT>>>>
842 AsFlatArrayConstructor(const Expr<SomeKind<CAT>> &expr) { in AsFlatArrayConstructor()
844 [&](const auto &kindExpr) -> std::optional<Expr<SomeKind<CAT>>> { in AsFlatArrayConstructor()
846 return Expr<SomeKind<CAT>>{std::move(*flattened)}; in AsFlatArrayConstructor()
Dformatting.cpp239 static bool IsNegatedScalarConstant(const Expr<SomeKind<CAT>> &expr) { in IsNegatedScalarConstant()
/external/llvm-project/flang/unittests/Evaluate/
Dfolding.cpp24 Expr<SomeKind<T::category>> exprSomeKind{exprFullyTyped}; in Run()
/external/llvm-project/flang/lib/Lower/
DConvertType.cpp191 mlir::Type gen(const A<Fortran::evaluate::SomeKind<TC>> &) { in gen()
211 gen(const Fortran::evaluate::Expr<Fortran::evaluate::SomeKind<TC>> &expr) { in gen()