/external/llvm-project/flang/lib/Semantics/ |
D | type.cpp | 206 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 …]
|
D | scope.cpp | 169 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 …]
|
D | check-allocate.cpp | 23 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 …]
|
D | runtime-type-info.cpp | 46 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 …]
|
D | tools.cpp | 279 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 …]
|
D | resolve-names-utils.h | 123 bool IsCharacterSequenceType(const DeclTypeSpec *); 125 bool IsNumericSequenceType(const DeclTypeSpec *); 127 const DeclTypeSpec *, std::function<bool(const IntrinsicTypeSpec &)>);
|
D | rewrite-parse-tree.cpp | 118 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()
|
D | resolve-names.cpp | 72 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 …]
|
D | symbol.cpp | 53 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()
|
D | check-declarations.cpp | 46 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 …]
|
D | mod-file.cpp | 62 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()
|
D | resolve-names-utils.cpp | 395 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()
|
D | check-select-type.cpp | 82 const DeclTypeSpec *spec{typeSpec.declTypeSpec}; in PassesChecksOnGuard() 95 if (spec->category() == DeclTypeSpec::Character && in PassesChecksOnGuard()
|
D | compute-offsets.cpp | 291 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()
|
D | semantics.cpp | 205 const DeclTypeSpec &SemanticsContext::MakeNumericType( in MakeNumericType() 212 const DeclTypeSpec &SemanticsContext::MakeLogicalType(int kind) { in MakeLogicalType()
|
D | check-do-forall.cpp | 121 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/ |
D | type.h | 302 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 …]
|
D | scope.h | 189 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 …]
|
D | symbol.h | 122 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 …]
|
D | tools.h | 28 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);
|
D | semantics.h | 125 const DeclTypeSpec &MakeNumericType(TypeCategory, int kind = 0); 126 const DeclTypeSpec &MakeLogicalType(int kind = 0);
|
/external/llvm-project/flang/lib/Evaluate/ |
D | type.cpp | 27 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()
|
D | call.cpp | 27 const semantics::DeclTypeSpec *type{symbol.GetType()}; 28 CHECK(type && type->category() == semantics::DeclTypeSpec::TypeStar);
|
/external/llvm-project/flang/tools/f18/ |
D | dump.cpp | 39 DEFINE_DUMP(semantics, DeclTypeSpec)
|
/external/llvm-project/flang/include/flang/Evaluate/ |
D | type.h | 36 class DeclTypeSpec; variable 178 static std::optional<DynamicType> From(const semantics::DeclTypeSpec &);
|