Home
last modified time | relevance | path

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

12

/external/llvm-project/flang/lib/Semantics/
Dtype.cpp206 const DeclTypeSpec *InstantiateType(const Symbol &);
207 const DeclTypeSpec &InstantiateIntrinsicType(const DeclTypeSpec &);
233 if (DeclTypeSpec * type{symbol.GetType()}) { in Instantiate()
277 if (const DeclTypeSpec * type{details.type()}) { in Instantiate()
323 if (const DeclTypeSpec * newType{InstantiateType(newSymbol)}) { in InstantiateComponent()
355 const DeclTypeSpec *InstantiateHelper::InstantiateType(const Symbol &symbol) { in InstantiateType()
356 const DeclTypeSpec *type{symbol.GetType()}; in InstantiateType()
365 } else if (type->category() == DeclTypeSpec::ClassStar) { in InstantiateType()
373 const DeclTypeSpec &InstantiateHelper::InstantiateIntrinsicType( in InstantiateIntrinsicType()
374 const DeclTypeSpec &spec) { in InstantiateIntrinsicType()
[all …]
Dscope.cpp169 const DeclTypeSpec *Scope::FindType(const DeclTypeSpec &type) const { in FindType()
174 const DeclTypeSpec &Scope::MakeNumericType( in MakeNumericType()
178 const DeclTypeSpec &Scope::MakeLogicalType(KindExpr &&kind) { in MakeLogicalType()
181 const DeclTypeSpec &Scope::MakeTypeStarType() { in MakeTypeStarType()
182 return MakeLengthlessType(DeclTypeSpec{DeclTypeSpec::TypeStar}); in MakeTypeStarType()
184 const DeclTypeSpec &Scope::MakeClassStarType() { in MakeClassStarType()
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()
[all …]
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};
251 const DeclTypeSpec &type1, const DerivedTypeSpec &derivedType2) { in IsTypeCompatible()
253 if (type1.category() == DeclTypeSpec::Category::TypeDerived) { in IsTypeCompatible()
255 } else if (type1.category() == DeclTypeSpec::Category::ClassDerived) { in IsTypeCompatible()
268 const DeclTypeSpec &type1, const DeclTypeSpec &type2) { in IsTypeCompatible()
269 if (type1.category() == DeclTypeSpec::Category::ClassStar) { in IsTypeCompatible()
287 const DeclTypeSpec &type1, const evaluate::DynamicType &type2) { in IsTypeCompatible()
[all …]
Druntime-type-info.cpp46 const DeclTypeSpec &GetSchema(const char *) const;
48 Symbol &CreateObject(const std::string &, const DeclTypeSpec &, Scope &);
122 const DeclTypeSpec &derivedTypeSchema_; // TYPE(DerivedType)
123 const DeclTypeSpec &componentSchema_; // TYPE(Component)
124 const DeclTypeSpec &procPtrSchema_; // TYPE(ProcPtrComponent)
125 const DeclTypeSpec &valueSchema_; // TYPE(Value)
126 const DeclTypeSpec &bindingSchema_; // TYPE(Binding)
127 const DeclTypeSpec &specialSchema_; // TYPE(SpecialBinding)
208 const DeclTypeSpec &derived, const std::string &name) { in GetSchemaField()
213 evaluate::StructureConstructorValues &values, const DeclTypeSpec &spec, in AddValue()
[all …]
Dtools.cpp279 if (const DeclTypeSpec * type{details->type()}) { in FindPointerComponent()
307 const Symbol *FindPointerComponent(const DeclTypeSpec &type) { in FindPointerComponent()
315 const Symbol *FindPointerComponent(const DeclTypeSpec *type) { in FindPointerComponent()
438 if (const DeclTypeSpec * parentType{FindParentTypeSpec(symbol.owner())}) { in FindOverriddenBinding()
449 const DeclTypeSpec *FindParentTypeSpec(const DerivedTypeSpec &derived) { in FindParentTypeSpec()
453 const DeclTypeSpec *FindParentTypeSpec(const DeclTypeSpec &decl) { in FindParentTypeSpec()
461 const DeclTypeSpec *FindParentTypeSpec(const Scope &scope) { in FindParentTypeSpec()
470 const DeclTypeSpec *FindParentTypeSpec(const Symbol &symbol) { in FindParentTypeSpec()
516 if (const DeclTypeSpec * type{details->type()}) { in IsOrContainsEventOrLockComponent()
602 if (const DeclTypeSpec * type{symbol.GetType()}) { in IsAutomatic()
[all …]
Dresolve-names-utils.h123 bool IsCharacterSequenceType(const DeclTypeSpec *);
125 bool IsNumericSequenceType(const DeclTypeSpec *);
127 const DeclTypeSpec *, std::function<bool(const IntrinsicTypeSpec &)>);
Drewrite-parse-tree.cpp118 DeclTypeSpec *type{last.symbol ? last.symbol->GetType() : nullptr}; in Post()
119 if (!type || type->category() != DeclTypeSpec::Character) { in Post()
161 DeclTypeSpec *type{last.symbol ? last.symbol->GetType() : nullptr}; in Post()
162 if (type && type->category() == DeclTypeSpec::Character) { in Post()
Dresolve-names.cpp72 const DeclTypeSpec *GetType(SourceName) const;
75 void SetTypeMapping(const DeclTypeSpec &type, parser::Location fromLetter,
90 std::map<char, common::Reference<const DeclTypeSpec>> map_;
325 const DeclTypeSpec *declTypeSpec{nullptr};
328 DeclTypeSpec::Category category{DeclTypeSpec::TypeDerived};
342 const DeclTypeSpec *ProcessTypeSpec(const T &x, bool allowForward = false) { in ProcessTypeSpec()
352 const DeclTypeSpec *GetDeclTypeSpec();
355 void SetDeclTypeSpec(const DeclTypeSpec &);
356 void SetDeclTypeSpecCategory(DeclTypeSpec::Category);
357 DeclTypeSpec::Category GetDeclTypeSpecCategory() const { in GetDeclTypeSpecCategory()
[all …]
Dsymbol.cpp53 static void DumpType(llvm::raw_ostream &os, const DeclTypeSpec *type) { in DumpType()
120 void EntityDetails::set_type(const DeclTypeSpec &type) { in set_type()
126 void EntityDetails::ReplaceType(const DeclTypeSpec &type) { type_ = &type; } in ReplaceType()
281 void Symbol::SetType(const DeclTypeSpec &type) { in SetType()
605 void TypeParamDetails::set_type(const DeclTypeSpec &type) { in set_type()
Dcheck-declarations.cpp46 void Check(const DeclTypeSpec &, bool canHaveAssumedTypeParameters);
157 const DeclTypeSpec &type, bool canHaveAssumedTypeParameters) { in Check()
158 if (type.category() == DeclTypeSpec::Character) { in Check()
173 const DeclTypeSpec *type{symbol.GetType()}; in Check()
235 type->category() == DeclTypeSpec::Character) || in Check()
367 if (const DeclTypeSpec * type{symbol.GetType()}; in CheckAssumedTypeEntity()
368 type && type->category() == DeclTypeSpec::TypeStar) { in CheckAssumedTypeEntity()
459 if (const DeclTypeSpec * type{details.type()}) { in CheckObjectEntity()
465 const DeclTypeSpec *type{x.GetType()}; in CheckObjectEntity()
506 if (const DeclTypeSpec * type{details.type()}) { // C708 in CheckObjectEntity()
[all …]
Dmod-file.cpp62 static llvm::raw_ostream &PutType(llvm::raw_ostream &, const DeclTypeSpec &);
90 void DoType(const DeclTypeSpec *);
636 llvm::raw_ostream &PutType(llvm::raw_ostream &os, const DeclTypeSpec &type) { in PutType()
922 void SubprogramSymbolCollector::DoType(const DeclTypeSpec *type) { in DoType()
927 case DeclTypeSpec::Numeric: in DoType()
928 case DeclTypeSpec::Logical: in DoType()
930 case DeclTypeSpec::Character: in DoType()
Dresolve-names-utils.cpp395 const DeclTypeSpec *type1{sym1.GetType()}; in CheckCanEquivalence()
396 const DeclTypeSpec *type2{sym2.GetType()}; in CheckCanEquivalence()
646 bool EquivalenceSets::IsCharacterSequenceType(const DeclTypeSpec *type) { in IsCharacterSequenceType()
673 bool EquivalenceSets::IsNumericSequenceType(const DeclTypeSpec *type) { in IsNumericSequenceType()
681 bool EquivalenceSets::IsSequenceType(const DeclTypeSpec *type, in IsSequenceType()
Dcheck-select-type.cpp82 const DeclTypeSpec *spec{typeSpec.declTypeSpec}; in PassesChecksOnGuard()
95 if (spec->category() == DeclTypeSpec::Character && in PassesChecksOnGuard()
Dcompute-offsets.cpp291 if (const DeclTypeSpec * type{object.symbol.GetType()}) { in ComputeOffset()
329 const DeclTypeSpec *type{symbol.GetType()}; in GetElementSize()
353 if (type->category() == DeclTypeSpec::Character) { in GetElementSize()
Dsemantics.cpp205 const DeclTypeSpec &SemanticsContext::MakeNumericType( in MakeNumericType()
212 const DeclTypeSpec &SemanticsContext::MakeLogicalType(int kind) { in MakeLogicalType()
Dcheck-do-forall.cpp121 if (const DeclTypeSpec * symType{root->GetType()}) { in HasImpureFinal()
154 if (const DeclTypeSpec * entityType{details->type()}) { in MightDeallocatePolymorphic()
235 const DeclTypeSpec *entityType{entity.GetType()}; in Post()
489 const DeclTypeSpec *symType{symbol->GetType()}; in CheckDoVariable()
/external/llvm-project/flang/include/flang/Semantics/
Dtype.h302 class DeclTypeSpec {
315 DeclTypeSpec(NumericTypeSpec &&);
316 DeclTypeSpec(LogicalTypeSpec &&);
318 DeclTypeSpec(const CharacterTypeSpec &);
319 DeclTypeSpec(CharacterTypeSpec &&);
321 DeclTypeSpec(Category, const DerivedTypeSpec &);
322 DeclTypeSpec(Category, DerivedTypeSpec &&);
324 DeclTypeSpec(Category);
326 bool operator==(const DeclTypeSpec &) const;
327 bool operator!=(const DeclTypeSpec &that) const { return !operator==(that); }
[all …]
Dscope.h189 const DeclTypeSpec *FindType(const DeclTypeSpec &) const;
190 const DeclTypeSpec &MakeNumericType(TypeCategory, KindExpr &&kind);
191 const DeclTypeSpec &MakeLogicalType(KindExpr &&kind);
192 const DeclTypeSpec &MakeCharacterType(
194 DeclTypeSpec &MakeDerivedType(DeclTypeSpec::Category, DerivedTypeSpec &&);
195 const DeclTypeSpec &MakeTypeStarType();
196 const DeclTypeSpec &MakeClassStarType();
238 const DeclTypeSpec *FindInstantiatedDerivedType(const DerivedTypeSpec &,
239 DeclTypeSpec::Category = DeclTypeSpec::TypeDerived) const;
268 std::list<DeclTypeSpec> declTypeSpecs_;
[all …]
Dsymbol.h122 const DeclTypeSpec *type() const { return type_; } in type()
123 void set_type(const DeclTypeSpec &);
124 void ReplaceType(const DeclTypeSpec &);
135 const DeclTypeSpec *type_{nullptr};
348 const DeclTypeSpec *type() const { return type_; } in type()
349 void set_type(const DeclTypeSpec &);
350 void ReplaceType(const DeclTypeSpec &);
355 const DeclTypeSpec *type_{nullptr};
565 inline DeclTypeSpec *GetType();
566 inline const DeclTypeSpec *GetType() const;
[all …]
Dtools.h28 class DeclTypeSpec; variable
45 const Symbol *FindPointerComponent(const DeclTypeSpec &);
52 const DeclTypeSpec *FindParentTypeSpec(const DerivedTypeSpec &);
53 const DeclTypeSpec *FindParentTypeSpec(const DeclTypeSpec &);
54 const DeclTypeSpec *FindParentTypeSpec(const Scope &);
55 const DeclTypeSpec *FindParentTypeSpec(const Symbol &);
204 const DeclTypeSpec &FindOrInstantiateDerivedType(Scope &, DerivedTypeSpec &&,
205 SemanticsContext &, DeclTypeSpec::Category = DeclTypeSpec::TypeDerived);
Dsemantics.h125 const DeclTypeSpec &MakeNumericType(TypeCategory, int kind = 0);
126 const DeclTypeSpec &MakeLogicalType(int kind = 0);
/external/llvm-project/flang/lib/Evaluate/
Dtype.cpp27 static bool IsDescriptor(const DeclTypeSpec *type) { in IsDescriptor()
337 const semantics::DeclTypeSpec &type) { in From()
352 *derived, type.category() == semantics::DeclTypeSpec::ClassDerived}; in From()
353 } else if (type.category() == semantics::DeclTypeSpec::ClassStar) { in From()
355 } else if (type.category() == semantics::DeclTypeSpec::TypeStar) { in From()
Dcall.cpp27 const semantics::DeclTypeSpec *type{symbol.GetType()};
28 CHECK(type && type->category() == semantics::DeclTypeSpec::TypeStar);
/external/llvm-project/flang/tools/f18/
Ddump.cpp39 DEFINE_DUMP(semantics, DeclTypeSpec)
/external/llvm-project/flang/include/flang/Evaluate/
Dtype.h36 class DeclTypeSpec; variable
178 static std::optional<DynamicType> From(const semantics::DeclTypeSpec &);

12