Home
last modified time | relevance | path

Searched refs:dyType (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/flang/lib/Semantics/
H A Dscope.cpp206 if (auto dyType{expr.GetType()}) { in GetType() local
207 if (dyType->IsAssumedType()) { in GetType()
209 } else if (dyType->IsUnlimitedPolymorphic()) { in GetType()
212 switch (dyType->category()) { in GetType()
216 return &MakeNumericType(dyType->category(), KindExpr{dyType->kind()}); in GetType()
220 ParamValue{*lenParam}, KindExpr{dyType->kind()}); in GetType()
222 auto lenExpr{dyType->GetCharLength()}; in GetType()
231 KindExpr{dyType->kind()}); in GetType()
236 return &MakeLogicalType(KindExpr{dyType->kind()}); in GetType()
238 return &MakeDerivedType(dyType->IsPolymorphic() in GetType()
[all …]
H A Druntime-type-info.cpp244 auto dyType{evaluate::DynamicType::From(symbol)}; in GetIntegerKind() local
245 CHECK(dyType && dyType->category() == TypeCategory::Integer); in GetIntegerKind()
246 return dyType->kind(); in GetIntegerKind()
715 auto dyType{typeAndShape->type()}; in DescribeComponent() local
720 IntExpr<1>(static_cast<int>(dyType.category()))); in DescribeComponent()
721 if (dyType.IsUnlimitedPolymorphic() || in DescribeComponent()
722 dyType.category() == TypeCategory::Derived) { in DescribeComponent()
735 if (dyType.category() == TypeCategory::Character && len) { in DescribeComponent()
752 if (dyType.category() == TypeCategory::Derived && in DescribeComponent()
753 !dyType.IsUnlimitedPolymorphic()) { in DescribeComponent()
[all …]
H A Ddata-to-inits.cpp541 if (auto dyType{evaluate::DynamicType::From(component)}) { in PopulateWithComponentDefaults() local
544 if (auto extant{init.image.AsConstant(foldingContext, *dyType, in PopulateWithComponentDefaults()
672 if (auto dyType{evaluate::DynamicType::From(s)}) { in ComputeMinElementBytes() local
674 evaluate::ToInt64(dyType->MeasureSizeInBytes(foldingContext, true)) in ComputeMinElementBytes()
677 dyType->GetAlignment(foldingContext.targetCharacteristics())}) { in ComputeMinElementBytes()
H A Dexpression.cpp1128 if (std::optional<DynamicType> dyType{DynamicType::From(*sym)}) { in Analyze()
1129 if (dyType->category() == TypeCategory::Integer) { in Analyze()
1131 return Fold(ConvertToType(*dyType, in Analyze()
1383 std::optional<DynamicType> dyType{x->GetType()}; in Push() local
1384 if (!dyType) { in Push()
1396 dyType = x.value().GetType(); in Push()
1399 dyType = *type_; in Push()
1416 } else if (dyType->IsUnlimitedPolymorphic()) { in Push()
1424 DynamicTypeWithLength xType{dyType.value()}; in Push()
H A Dresolve-names.cpp5490 evaluate::DynamicType dyType{ in HandleUnrestrictedSpecificIntrinsicFunction() local
5492 CHECK(common::IsNumericTypeCategory(dyType.category())); in HandleUnrestrictedSpecificIntrinsicFunction()
5494 MakeNumericType(dyType.category(), dyType.kind())}; in HandleUnrestrictedSpecificIntrinsicFunction()
/llvm-project-15.0.7/flang/include/flang/Evaluate/
H A Dtools.h832 const DynamicType &dyType, WRAPPED &&x) { in TypedWrapper() argument
833 switch (dyType.category()) { in TypedWrapper()
837 dyType.kind(), std::move(x)); in TypedWrapper()
840 dyType.kind(), std::move(x)); in TypedWrapper()
843 dyType.kind(), std::move(x)); in TypedWrapper()
846 dyType.kind(), std::move(x)); in TypedWrapper()
849 dyType.kind(), std::move(x)); in TypedWrapper()
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dvariable.cpp268 if (auto dyType{DynamicType::From(ultimate)}) { in SymbolLEN() local
269 if (auto len{dyType->GetCharLength()}) { in SymbolLEN()
H A Dcharacteristics.cpp97 if (auto dyType{DynamicType::From(*type)}) { in Characterize() local
99 std::move(*dyType), GetShape(context, ultimate)}; in Characterize()
H A Dtools.cpp32 if (auto dyType{DynamicType::From(symbol)}) { in AsGenericExpr() local
33 return TypedWrapper<Designator, DataRef>(*dyType, std::move(ref)); in AsGenericExpr()