Home
last modified time | relevance | path

Searched refs:DeclTypeSpec (Results 1 – 25 of 43) sorted by relevance

12

/llvm-project-15.0.7/flang/lib/Semantics/
H A Dscope.cpp169 const DeclTypeSpec *Scope::FindType(const DeclTypeSpec &type) const { in FindType()
174 const DeclTypeSpec &Scope::MakeNumericType( in MakeNumericType()
182 return MakeLengthlessType(DeclTypeSpec{DeclTypeSpec::TypeStar}); in MakeTypeStarType()
185 return MakeLengthlessType(DeclTypeSpec{DeclTypeSpec::ClassStar}); in MakeClassStarType()
189 const DeclTypeSpec &Scope::MakeLengthlessType(DeclTypeSpec &&type) { in MakeLengthlessType()
194 const DeclTypeSpec &Scope::MakeCharacterType( in MakeCharacterType()
200 DeclTypeSpec &Scope::MakeDerivedType( in MakeDerivedType()
239 ? DeclTypeSpec::ClassDerived in GetType()
240 : DeclTypeSpec::TypeDerived, in GetType()
405 DeclTypeSpec type{category, spec}; in FindInstantiatedDerivedType()
[all …]
H A Dtype.cpp533 case DeclTypeSpec::Numeric: in InstantiateIntrinsicType()
535 case DeclTypeSpec::Logical: in InstantiateIntrinsicType()
537 case DeclTypeSpec::Character: in InstantiateIntrinsicType()
721 DeclTypeSpec::DeclTypeSpec(NumericTypeSpec &&typeSpec) in DeclTypeSpec() function in Fortran::semantics::DeclTypeSpec
723 DeclTypeSpec::DeclTypeSpec(LogicalTypeSpec &&typeSpec) in DeclTypeSpec() function in Fortran::semantics::DeclTypeSpec
725 DeclTypeSpec::DeclTypeSpec(const CharacterTypeSpec &typeSpec) in DeclTypeSpec() function in Fortran::semantics::DeclTypeSpec
727 DeclTypeSpec::DeclTypeSpec(CharacterTypeSpec &&typeSpec) in DeclTypeSpec() function in Fortran::semantics::DeclTypeSpec
729 DeclTypeSpec::DeclTypeSpec(Category category, const DerivedTypeSpec &typeSpec) in DeclTypeSpec() function in Fortran::semantics::DeclTypeSpec
733 DeclTypeSpec::DeclTypeSpec(Category category, DerivedTypeSpec &&typeSpec) in DeclTypeSpec() function in Fortran::semantics::DeclTypeSpec
737 DeclTypeSpec::DeclTypeSpec(Category category) : category_{category} { in DeclTypeSpec() function in Fortran::semantics::DeclTypeSpec
[all …]
H A Dcheck-allocate.cpp23 const DeclTypeSpec *typeSpec{nullptr};
75 if (type_->category() == DeclTypeSpec::Category::Character) { in GatherAllocationBasicInfo()
85 type_->category() == DeclTypeSpec::Category::ClassStar; in GatherAllocationBasicInfo()
92 const DeclTypeSpec *type_{nullptr};
268 const DeclTypeSpec &type1, const DeclTypeSpec &type2) { in IsTypeCompatible()
269 if (type1.category() == DeclTypeSpec::Category::ClassStar) { in IsTypeCompatible()
288 if (type1.category() == DeclTypeSpec::Category::ClassStar) { in IsTypeCompatible()
310 const DeclTypeSpec &type1, const DeclTypeSpec &type2) { in HaveSameAssumedTypeParameters()
311 if (type2.category() == DeclTypeSpec::Category::Character) { in HaveSameAssumedTypeParameters()
377 if (type1.category() == DeclTypeSpec::Category::ClassStar) { in HaveCompatibleKindParameters()
[all …]
H A Druntime-type-info.cpp47 const DeclTypeSpec &GetSchema(const char *) const;
123 const DeclTypeSpec &componentSchema_; // TYPE(Component)
125 const DeclTypeSpec &valueSchema_; // TYPE(Value)
126 const DeclTypeSpec &bindingSchema_; // TYPE(Binding)
301 DeclTypeSpec typeSpec{DeclTypeSpec::TypeDerived, derivedType}; in SaveDerivedPointerTarget()
395 DeclTypeSpec &decl{ in DescribeType()
631 const DeclTypeSpec &RuntimeTableBuilder::GetSchema( in GetSchema()
639 const DeclTypeSpec *spec{nullptr}; in GetSchema()
641 DeclTypeSpec typeSpec{ in GetSchema()
646 DeclTypeSpec typeSpec{ in GetSchema()
[all …]
H A Dresolve-names-utils.h129 bool IsCharacterSequenceType(const DeclTypeSpec *);
131 bool IsDefaultNumericSequenceType(const DeclTypeSpec *);
132 static bool IsAnyNumericSequenceType(const DeclTypeSpec *);
134 const DeclTypeSpec *, std::function<bool(const IntrinsicTypeSpec &)>);
H A Dtools.cpp314 if (const DeclTypeSpec * type{details->type()}) { in FindPointerComponent()
503 const DeclTypeSpec *FindParentTypeSpec(const DeclTypeSpec &decl) { in FindParentTypeSpec()
546 if (const DeclTypeSpec * type{details->type()}) { in IsOrContainsEventOrLockComponent()
657 const DeclTypeSpec *type{object->type()}; in IsFinalizable()
699 if (const DeclTypeSpec * type{symbol.GetType()}) { in IsAssumedLengthCharacter()
768 const DeclTypeSpec *type{details->type()}; in FindPolymorphicPotentialComponent()
778 if (const DeclTypeSpec * type{details->type()}) { in IsOrContainsPolymorphicComponent()
1038 if (const DeclTypeSpec * type{symbol.GetType()}) { in IsPolymorphic()
1088 const DeclTypeSpec &FindOrInstantiateDerivedType( in FindOrInstantiateDerivedType()
1091 if (const DeclTypeSpec * in FindOrInstantiateDerivedType()
[all …]
H A Drewrite-parse-tree.cpp138 DeclTypeSpec *type{last.symbol ? last.symbol->GetType() : nullptr}; in Post()
139 if (!type || type->category() != DeclTypeSpec::Character) { in Post()
181 DeclTypeSpec *type{last.symbol ? last.symbol->GetType() : nullptr}; in Post()
182 if (type && type->category() == DeclTypeSpec::Character) { in Post()
H A Dresolve-names.cpp74 const DeclTypeSpec *GetType(
343 DeclTypeSpec::Category category{DeclTypeSpec::TypeDerived};
386 const DeclTypeSpec *GetType( in GetType()
1802 case DeclTypeSpec::Numeric: in Post()
1803 case DeclTypeSpec::Logical: in Post()
1804 case DeclTypeSpec::Character: in Post()
2392 const DeclTypeSpec *type{ in ImplicitlyTypeForwardRef()
4441 if (const DeclTypeSpec * in Post()
4473 if (const DeclTypeSpec * in Post()
5493 const DeclTypeSpec &typeSpec{ in HandleUnrestrictedSpecificIntrinsicFunction()
[all …]
H A Dresolve-names-utils.cpp422 const DeclTypeSpec *type1{sym1.GetType()}; in CheckCanEquivalence()
423 const DeclTypeSpec *type2{sym2.GetType()}; in CheckCanEquivalence()
682 bool EquivalenceSets::IsCharacterSequenceType(const DeclTypeSpec *type) { in IsCharacterSequenceType()
708 bool EquivalenceSets::IsDefaultNumericSequenceType(const DeclTypeSpec *type) { in IsDefaultNumericSequenceType()
714 bool EquivalenceSets::IsAnyNumericSequenceType(const DeclTypeSpec *type) { in IsAnyNumericSequenceType()
723 bool EquivalenceSets::IsSequenceType(const DeclTypeSpec *type, in IsSequenceType()
H A Dcheck-declarations.cpp194 if (type.category() == DeclTypeSpec::Character) { in Check()
215 const DeclTypeSpec *type{symbol.GetType()}; in Check()
427 if (const DeclTypeSpec * type{symbol.GetType()}; in CheckAssumedTypeEntity()
508 if (const DeclTypeSpec * type{details.type()}) { in CheckObjectEntity()
536 if (const DeclTypeSpec * type{details.type()}) { in CheckObjectEntity()
542 const DeclTypeSpec *type{x.GetType()}; in CheckObjectEntity()
629 if (const DeclTypeSpec * type{details.type()}) { // C708 in CheckObjectEntity()
1435 const DeclTypeSpec *type{object->type()}; in WarnMissingFinal()
1592 const DeclTypeSpec *type{passArg.GetType()}; in CheckPassArg()
1961 if (const DeclTypeSpec * type{arg.GetType()}) { in CheckDioDummyIsDerived()
[all …]
H A Dsymbol.cpp55 static void DumpType(llvm::raw_ostream &os, const DeclTypeSpec *type) { in DumpType()
131 void EntityDetails::set_type(const DeclTypeSpec &type) { in set_type()
137 void EntityDetails::ReplaceType(const DeclTypeSpec &type) { type_ = &type; } in ReplaceType()
293 void Symbol::SetType(const DeclTypeSpec &type) { in SetType()
655 void TypeParamDetails::set_type(const DeclTypeSpec &type) { in set_type()
H A Dmod-file.cpp61 static llvm::raw_ostream &PutType(llvm::raw_ostream &, const DeclTypeSpec &);
89 void DoType(const DeclTypeSpec *);
396 object->type()->category() == DeclTypeSpec::TypeDerived && in PutDECStructure()
662 details.type()->category() == DeclTypeSpec::TypeDerived) { in PutObjectEntity()
795 llvm::raw_ostream &PutType(llvm::raw_ostream &os, const DeclTypeSpec &type) { in PutType()
1183 void SubprogramSymbolCollector::DoType(const DeclTypeSpec *type) { in DoType()
1188 case DeclTypeSpec::Numeric: in DoType()
1189 case DeclTypeSpec::Logical: in DoType()
1191 case DeclTypeSpec::Character: in DoType()
H A Dcheck-select-type.cpp82 const DeclTypeSpec *spec{typeSpec.declTypeSpec}; in PassesChecksOnGuard()
95 if (spec->category() == DeclTypeSpec::Character && in PassesChecksOnGuard()
H A Dcheck-do-forall.cpp121 if (const DeclTypeSpec * symType{symbol.GetType()}) { in HasImpureFinal()
154 if (const DeclTypeSpec * entityType{details->type()}) { in MightDeallocatePolymorphic()
234 const DeclTypeSpec *entityType{entity.GetType()}; in Post()
490 const DeclTypeSpec *symType{symbol->GetType()}; in CheckDoVariable()
H A Dsemantics.cpp302 const DeclTypeSpec &SemanticsContext::MakeNumericType( in MakeNumericType()
309 const DeclTypeSpec &SemanticsContext::MakeLogicalType(int kind) { in MakeLogicalType()
/llvm-project-15.0.7/flang/include/flang/Semantics/
H A Dscope.h205 const DeclTypeSpec *FindType(const DeclTypeSpec &) const;
206 const DeclTypeSpec &MakeNumericType(TypeCategory, KindExpr &&kind);
207 const DeclTypeSpec &MakeLogicalType(KindExpr &&kind);
208 const DeclTypeSpec &MakeCharacterType(
210 DeclTypeSpec &MakeDerivedType(DeclTypeSpec::Category, DerivedTypeSpec &&);
211 const DeclTypeSpec &MakeTypeStarType();
212 const DeclTypeSpec &MakeClassStarType();
213 const DeclTypeSpec *GetType(const SomeExpr &);
256 DeclTypeSpec::Category = DeclTypeSpec::TypeDerived) const;
285 std::list<DeclTypeSpec> declTypeSpecs_;
[all …]
H A Dtype.h325 class DeclTypeSpec {
338 DeclTypeSpec(NumericTypeSpec &&);
339 DeclTypeSpec(LogicalTypeSpec &&);
341 DeclTypeSpec(const CharacterTypeSpec &);
342 DeclTypeSpec(CharacterTypeSpec &&);
344 DeclTypeSpec(Category, const DerivedTypeSpec &);
345 DeclTypeSpec(Category, DerivedTypeSpec &&);
347 DeclTypeSpec(Category);
349 bool operator==(const DeclTypeSpec &) const;
401 void set_type(const DeclTypeSpec &type);
[all …]
H A Dsymbol.h151 void set_type(const DeclTypeSpec &);
152 void ReplaceType(const DeclTypeSpec &);
161 const DeclTypeSpec *type_{nullptr};
383 void set_type(const DeclTypeSpec &);
384 void ReplaceType(const DeclTypeSpec &);
389 const DeclTypeSpec *type_{nullptr};
605 inline DeclTypeSpec *GetType();
606 inline const DeclTypeSpec *GetType() const;
607 void SetType(const DeclTypeSpec &);
796 inline DeclTypeSpec *Symbol::GetType() { in GetType()
[all …]
H A Dtools.h30 class DeclTypeSpec; variable
50 const Symbol *FindPointerComponent(const DeclTypeSpec &);
57 const DeclTypeSpec *FindParentTypeSpec(const DerivedTypeSpec &);
58 const DeclTypeSpec *FindParentTypeSpec(const DeclTypeSpec &);
59 const DeclTypeSpec *FindParentTypeSpec(const Scope &);
60 const DeclTypeSpec *FindParentTypeSpec(const Symbol &);
210 const DeclTypeSpec &FindOrInstantiateDerivedType(Scope &, DerivedTypeSpec &&,
211 DeclTypeSpec::Category = DeclTypeSpec::TypeDerived);
H A Dsemantics.h148 const DeclTypeSpec &MakeNumericType(TypeCategory, int kind = 0);
149 const DeclTypeSpec &MakeLogicalType(int kind = 0);
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dtype.cpp27 static bool IsDescriptor(const DeclTypeSpec *type) { in IsDescriptor()
371 const semantics::DeclTypeSpec &type) { in From()
386 *derived, type.category() == semantics::DeclTypeSpec::ClassDerived}; in From()
387 } else if (type.category() == semantics::DeclTypeSpec::ClassStar) { in From()
389 } else if (type.category() == semantics::DeclTypeSpec::TypeStar) { in From()
H A Dcall.cpp30 const semantics::DeclTypeSpec *type{symbol.GetType()};
31 CHECK(type && type->category() == semantics::DeclTypeSpec::TypeStar);
/llvm-project-15.0.7/flang/tools/f18/
H A Ddump.cpp39 DEFINE_DUMP(semantics, DeclTypeSpec)
/llvm-project-15.0.7/flang/lib/Lower/
H A DConvertType.cpp229 if (const Fortran::semantics::DeclTypeSpec *type = ultimate.GetType()) { in genSymbolType()
374 const Fortran::semantics::DeclTypeSpec *type = symbol.GetType(); in getCharacterLength()
376 type->category() != Fortran::semantics::DeclTypeSpec::Character || in getCharacterLength()
H A DAllocatable.cpp253 const Fortran::semantics::DeclTypeSpec &type;
426 const Fortran::semantics::DeclTypeSpec *typeSpec = in lowerAllocateLengthParameters()
435 Fortran::semantics::DeclTypeSpec::Category::Character) { in lowerAllocateLengthParameters()
476 const Fortran::semantics::DeclTypeSpec *getIfAllocateStmtTypeSpec() const { in getIfAllocateStmtTypeSpec()

12