Home
last modified time | relevance | path

Searched refs:DerivedTypeSpec (Results 1 – 25 of 40) sorted by relevance

12

/external/llvm-project/flang/lib/Semantics/
Dtype.cpp20 DerivedTypeSpec::DerivedTypeSpec(SourceName name, const Symbol &typeSymbol) in DerivedTypeSpec() function in Fortran::semantics::DerivedTypeSpec
24 DerivedTypeSpec::DerivedTypeSpec(const DerivedTypeSpec &that) = default;
25 DerivedTypeSpec::DerivedTypeSpec(DerivedTypeSpec &&that) = default;
27 void DerivedTypeSpec::set_scope(const Scope &scope) { in set_scope()
31 void DerivedTypeSpec::ReplaceScope(const Scope &scope) { in ReplaceScope()
36 void DerivedTypeSpec::AddRawParamValue( in AddRawParamValue()
42 void DerivedTypeSpec::CookParameters(evaluate::FoldingContext &foldingContext) { in CookParameters()
101 void DerivedTypeSpec::EvaluateParameters(SemanticsContext &context) { in EvaluateParameters()
164 void DerivedTypeSpec::AddParamValue(SourceName name, ParamValue &&value) { in AddParamValue()
170 bool DerivedTypeSpec::MightBeParameterized() const { in MightBeParameterized()
[all …]
Dcheck-allocate.cpp78 } else if (const DerivedTypeSpec * derivedTypeSpec{type_->AsDerived()}) { in GatherAllocationBasicInfo()
115 if (const DerivedTypeSpec * derived{info.typeSpec->AsDerived()}) { in CheckAllocateOptions()
200 if (const DerivedTypeSpec * in CheckAllocateOptions()
251 const DeclTypeSpec &type1, const DerivedTypeSpec &derivedType2) { in IsTypeCompatible()
252 if (const DerivedTypeSpec * derivedType1{type1.AsDerived()}) { in IsTypeCompatible()
256 for (const DerivedTypeSpec *parent{&derivedType2}; parent; in IsTypeCompatible()
280 } else if (const DerivedTypeSpec * derivedType2{type2.AsDerived()}) { in IsTypeCompatible()
319 } else if (const DerivedTypeSpec * derivedType2{type2.AsDerived()}) { in HaveSameAssumedTypeParameters()
326 if (const DerivedTypeSpec * derivedType1{type1.AsDerived()}) { in HaveSameAssumedTypeParameters()
348 const Symbol &parameterSymbol, const DerivedTypeSpec &derivedType) { in GetTypeParameterInt64Value()
[all …]
Dtools.cpp280 if (const DerivedTypeSpec * derived{type->AsDerived()}) { in FindPointerComponent()
299 const Symbol *FindPointerComponent(const DerivedTypeSpec &derived) { in FindPointerComponent()
308 if (const DerivedTypeSpec * derived{type.AsDerived()}) { in FindPointerComponent()
439 if (const DerivedTypeSpec * parentDerived{parentType->AsDerived()}) { in FindOverriddenBinding()
449 const DeclTypeSpec *FindParentTypeSpec(const DerivedTypeSpec &derived) { in FindParentTypeSpec()
454 if (const DerivedTypeSpec * derived{decl.AsDerived()}) { in FindParentTypeSpec()
481 bool IsExtensibleType(const DerivedTypeSpec *derived) { in IsExtensibleType()
487 bool IsBuiltinDerivedType(const DerivedTypeSpec *derived, const char *name) { in IsBuiltinDerivedType()
499 bool IsIsoCType(const DerivedTypeSpec *derived) { in IsIsoCType()
504 bool IsTeamType(const DerivedTypeSpec *derived) { in IsTeamType()
[all …]
Dcheck-select-type.cpp63 [](const parser::DerivedTypeSpec &spec) in GetGuardType()
103 const DerivedTypeSpec *derived{spec->AsDerived()}; in PassesChecksOnGuard()
109 [&](const parser::DerivedTypeSpec &x) { in PassesChecksOnGuard()
111 const semantics::DerivedTypeSpec *derived{x.derivedTypeSpec}; in PassesChecksOnGuard()
119 bool PassesDerivedTypeChecks(const semantics::DerivedTypeSpec &derived, in PassesDerivedTypeChecks()
181 return std::holds_alternative<parser::DerivedTypeSpec>(guard.u); in IsDerivedTypeSpec()
Dscope.cpp201 DeclTypeSpec::Category category, DerivedTypeSpec &&spec) { in MakeDerivedType()
335 const DerivedTypeSpec &spec, DeclTypeSpec::Category category) const { in FindInstantiatedDerivedType()
348 if (const DerivedTypeSpec * parent{symbol->GetParentTypeSpec(this)}) { in GetDerivedTypeParent()
Dcheck-declarations.cpp55 void CheckValue(const Symbol &, const DerivedTypeSpec *);
57 const Symbol &, bool isAssociated, const DerivedTypeSpec *);
160 } else if (const DerivedTypeSpec * derived{type.AsDerived()}) { in Check()
174 const DerivedTypeSpec *derived{type ? type->AsDerived() : nullptr}; in Check()
321 const Symbol &symbol, const DerivedTypeSpec *derived) { // C863 - C865 in CheckValue()
463 } else if (const DerivedTypeSpec * derived{type->AsDerived()}) { in CheckObjectEntity()
790 const DerivedTypeSpec *parentDerived{parent->AsDerived()}; in CheckDerivedType()
807 DerivedTypeSpec derived{derivedType.name(), derivedType}; in CheckDerivedType()
1238 const DerivedTypeSpec *derived{type ? type->AsDerived() : nullptr}; in WarnMissingFinal()
1275 const DerivedTypeSpec *derived) { // C866 - C868 in CheckVolatile()
[all …]
Dcheck-call.cpp41 } else if (const DerivedTypeSpec * derived{GetDerivedTypeSpec(type)}) { in CheckImplicitInterfaceArg()
128 const DerivedTypeSpec &actual, const DerivedTypeSpec &dummy) { in DefersSameTypeParameters()
246 if (const DerivedTypeSpec * derived{type->AsDerived()}) { in CheckExplicitDataArg()
Druntime-type-info.cpp199 const DerivedTypeSpec &derived, const std::string &name) { in GetSchemaField()
328 const DerivedTypeSpec *derivedTypeSpec{dtScope.derivedTypeSpec()}; in DescribeType()
551 DeclTypeSpec::TypeDerived, DerivedTypeSpec{name, symbol}}; in GetSchema()
556 DeclTypeSpec::TypeDerived, DerivedTypeSpec{name, symbol}); in GetSchema()
647 const DerivedTypeSpec &spec{dyType.GetDerivedTypeSpec()}; in DescribeComponent()
Dcompute-offsets.cpp338 if (const DerivedTypeSpec * derived{type->AsDerived()}) { in GetElementSize()
362 } else if (const DerivedTypeSpec * derived{type->AsDerived()}) { in GetElementSize()
/external/llvm-project/flang/include/flang/Semantics/
Dtools.h29 class DerivedTypeSpec; variable
44 const Symbol *FindPointerComponent(const DerivedTypeSpec &);
52 const DeclTypeSpec *FindParentTypeSpec(const DerivedTypeSpec &);
96 bool IsExtensibleType(const DerivedTypeSpec *);
97 bool IsBuiltinDerivedType(const DerivedTypeSpec *derived, const char *name);
99 bool IsTeamType(const DerivedTypeSpec *);
101 bool IsIsoCType(const DerivedTypeSpec *);
102 bool IsEventTypeOrLockType(const DerivedTypeSpec *);
114 const Symbol *FindUltimateComponent(const DerivedTypeSpec &type,
123 const DerivedTypeSpec &, const std::function<bool(const Symbol &)> &);
[all …]
Dtype.h237 class DerivedTypeSpec {
242 DerivedTypeSpec(SourceName, const Symbol &);
243 DerivedTypeSpec(const DerivedTypeSpec &);
244 DerivedTypeSpec(DerivedTypeSpec &&);
282 bool operator==(const DerivedTypeSpec &that) const {
299 llvm::raw_ostream &, const DerivedTypeSpec &);
321 DeclTypeSpec(Category, const DerivedTypeSpec &);
322 DeclTypeSpec(Category, DerivedTypeSpec &&);
346 const DerivedTypeSpec &derivedTypeSpec() const { in derivedTypeSpec()
348 return std::get<DerivedTypeSpec>(typeSpec_); in derivedTypeSpec()
[all …]
Dscope.h194 DeclTypeSpec &MakeDerivedType(DeclTypeSpec::Category, DerivedTypeSpec &&);
217 const DerivedTypeSpec *derivedTypeSpec() const { return derivedTypeSpec_; } in derivedTypeSpec()
218 DerivedTypeSpec *derivedTypeSpec() { return derivedTypeSpec_; } in derivedTypeSpec()
219 void set_derivedTypeSpec(DerivedTypeSpec &spec) { derivedTypeSpec_ = &spec; } in set_derivedTypeSpec()
238 const DeclTypeSpec *FindInstantiatedDerivedType(const DerivedTypeSpec &,
271 DerivedTypeSpec *derivedTypeSpec_{nullptr}; // dTS->scope() == this
/external/llvm-project/flang/lib/Evaluate/
Dtype.cpp179 const semantics::DerivedTypeSpec *GetDerivedTypeSpec( in GetDerivedTypeSpec()
184 const semantics::DerivedTypeSpec *GetDerivedTypeSpec(const DynamicType &type) { in GetDerivedTypeSpec()
194 const semantics::DerivedTypeSpec &derived) { in FindParentComponent()
210 const semantics::DerivedTypeSpec *GetParentTypeSpec( in GetParentTypeSpec()
211 const semantics::DerivedTypeSpec &derived) { in GetParentTypeSpec()
224 std::set<std::pair<const semantics::DerivedTypeSpec *,
225 const semantics::DerivedTypeSpec *>>;
230 static bool AreSameDerivedType(const semantics::DerivedTypeSpec &x, in AreSameDerivedType()
231 const semantics::DerivedTypeSpec &y, SetOfDerivedTypePairs &inProgress) { in AreSameDerivedType()
289 static bool AreCompatibleDerivedTypes(const semantics::DerivedTypeSpec *x, in AreCompatibleDerivedTypes()
[all …]
Dexpression.cpp150 const semantics::DerivedTypeSpec &spec, in StructureConstructor()
154 const semantics::DerivedTypeSpec &spec, StructureConstructorValues &&values) in StructureConstructor()
216 if (const semantics::DerivedTypeSpec * in CreateParentComponent()
244 const semantics::DerivedTypeSpec &dtSpec{compType->derivedTypeSpec()}; in GetParentComponentSymbol()
Dconstant.cpp276 Constant<SomeDerived>::Constant(const semantics::DerivedTypeSpec &spec, in Constant()
289 Constant<SomeDerived>::Constant(const semantics::DerivedTypeSpec &spec, in Constant()
Dinitial-image.cpp96 const semantics::DerivedTypeSpec &derived{type_.GetDerivedTypeSpec()}; in Test()
/external/llvm-project/flang/include/flang/Evaluate/
Dtype.h37 class DerivedTypeSpec; variable
96 const semantics::DerivedTypeSpec &dt, bool poly = false)
163 constexpr const semantics::DerivedTypeSpec &GetDerivedTypeSpec() const { in GetDerivedTypeSpec()
214 const semantics::DerivedTypeSpec *derived_{nullptr}; // TYPE(T), CLASS(T)
218 const semantics::DerivedTypeSpec *GetDerivedTypeSpec(const DynamicType &);
219 const semantics::DerivedTypeSpec *GetDerivedTypeSpec(
221 const semantics::DerivedTypeSpec *GetParentTypeSpec(
222 const semantics::DerivedTypeSpec &);
224 std::string DerivedTypeSpecAsFortran(const semantics::DerivedTypeSpec &);
362 constexpr explicit SomeKind(const semantics::DerivedTypeSpec &dts) in SomeKind()
[all …]
Dcommon.h24 class DerivedTypeSpec; variable
238 const semantics::DerivedTypeSpec *pdtInstance() const { return pdtInstance_; }
249 common::Restorer<const semantics::DerivedTypeSpec *> WithPDTInstance(
250 const semantics::DerivedTypeSpec &spec) {
261 const semantics::DerivedTypeSpec *pdtInstance_{nullptr};
Dconstant.h210 Constant(const semantics::DerivedTypeSpec &,
212 Constant(const semantics::DerivedTypeSpec &,
Dtraverse.h197 const semantics::DerivedTypeSpec::ParameterMapType::value_type &x) const { in operator()
200 Result operator()(const semantics::DerivedTypeSpec &x) const { in operator()
Dexpression.h482 ArrayConstructor(const semantics::DerivedTypeSpec &spec, Base &&v) in ArrayConstructor()
687 explicit StructureConstructor(const semantics::DerivedTypeSpec &spec)
690 const semantics::DerivedTypeSpec &, const StructureConstructorValues &);
692 const semantics::DerivedTypeSpec &, StructureConstructorValues &&);
696 const semantics::DerivedTypeSpec &derivedTypeSpec() const {
/external/llvm-project/flang/lib/Parser/
Dparse-tree.cpp165 const semantics::DerivedTypeSpec &derived) { in ConvertToStructureConstructor()
176 DerivedTypeSpec spec{std::move(name), std::list<TypeParamSpec>{}}; in ConvertToStructureConstructor()
182 const semantics::DerivedTypeSpec &derived) { in ConvertToStructureConstructor()
189 DerivedTypeSpec spec{std::move(name), std::list<TypeParamSpec>{}}; in ConvertToStructureConstructor()
Dtype-parsers.h67 constexpr Parser<DerivedTypeSpec> derivedTypeSpec; // R754
/external/llvm-project/flang/tools/f18/
Ddump.cpp38 DEFINE_DUMP(semantics, DerivedTypeSpec)
/external/llvm-project/flang/include/flang/Parser/
Dparse-tree.h62 class DerivedTypeSpec; in CLASS_TRAIT() local
714 struct DerivedTypeSpec { struct
715 TUPLE_CLASS_BOILERPLATE(DerivedTypeSpec);
716 mutable const semantics::DerivedTypeSpec *derivedTypeSpec{nullptr};
724 std::variant<IntrinsicTypeSpec, DerivedTypeSpec> u; argument
736 Type(DerivedTypeSpec &&dt) : derived(std::move(dt)) {} in Type()
737 DerivedTypeSpec derived;
741 Class(DerivedTypeSpec &&dt) : derived(std::move(dt)) {} in Class()
742 DerivedTypeSpec derived;
1168 std::tuple<DerivedTypeSpec, std::list<ComponentSpec>> t;
[all …]

12