Home
last modified time | relevance | path

Searched refs:DynamicType (Results 1 – 25 of 53) sorted by relevance

123

/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dtype.cpp95 DynamicType::DynamicType(int k, const semantics::ParamValue &pv) in DynamicType() function in Fortran::evaluate::DynamicType
109 bool DynamicType::operator==(const DynamicType &that) const { in operator ==()
320 static bool AreCompatibleTypes(const DynamicType &x, const DynamicType &y, in AreCompatibleTypes()
340 bool DynamicType::IsTkCompatibleWith(const DynamicType &that) const { in IsTkCompatibleWith()
345 std::optional<bool> DynamicType::SameTypeAs(const DynamicType &that) const { in SameTypeAs()
357 std::optional<bool> DynamicType::ExtendsTypeOf(const DynamicType &that) const { in ExtendsTypeOf()
370 std::optional<DynamicType> DynamicType::From( in From()
385 return DynamicType{ in From()
397 std::optional<DynamicType> DynamicType::From(const semantics::Symbol &symbol) { in From()
401 DynamicType DynamicType::ResultTypeForMultiply(const DynamicType &that) const { in ResultTypeForMultiply()
[all …]
H A Dintrinsics-library.cpp32 static constexpr const DynamicType *start{&values[0]};
44 using const_iterator = const DynamicType *;
49 const DynamicType *startPtr{nullptr};
50 const DynamicType *endPtr{nullptr};
82 DynamicType resultType;
426 [[maybe_unused]] DynamicType resultType) { in GetHostRuntimeMapHelper()
492 const std::vector<DynamicType> &argTypes) { in SearchInHostRuntimeMap()
505 DynamicType resultType, const std::vector<DynamicType> &argTypes) { in SearchHostRuntime()
538 static DynamicType BiggerType(DynamicType type) { in BiggerType()
555 DynamicType resultType, const std::vector<DynamicType> &argTypes) { in GetHostRuntimeWrapper()
[all …]
H A Dcall.cpp41 std::optional<DynamicType> ActualArgument::GetType() const { in GetType()
45 return DynamicType::AssumedType(); in GetType()
88 std::optional<DynamicType> ProcedureDesignator::GetType() const { in GetType()
96 return DynamicType::From(GetSymbol()); in GetType()
H A Dinitial-image.cpp73 AsConstantHelper(FoldingContext &context, const DynamicType &type, in AsConstantHelper()
118 auto componentType{DynamicType::From(component)}; in Test()
182 const DynamicType &type_;
190 const DynamicType &type, const ConstantSubscripts &extents, in AsConstant()
H A Dfold-designator.cpp29 if (auto type{DynamicType::From(symbol)}) { in DEFINE_DEFAULT_CONSTRUCTORS_AND_ASSIGNMENTS()
50 if (auto type{DynamicType::From(array)}) { in FoldDesignator()
206 NamedEntity &&entity, const Shape &shape, const DynamicType &elementType, in OffsetToArrayRef()
267 if (std::optional<DynamicType> type{DynamicType::From(symbol)}) { in OffsetToDataRef()
310 } else if (auto type{DynamicType::From(symbol)}) { in OffsetToDesignator()
H A Dintrinsics.cpp1181 static DynamicType GetBuiltinDerivedType( in GetBuiltinDerivedType()
1198 return DynamicType{derived}; in GetBuiltinDerivedType()
1358 std::optional<DynamicType> type{arg->GetType()}; in Match()
1632 std::optional<DynamicType> resultType; in Match()
1642 resultType = DynamicType{TypeCategory::Integer, in Match()
1659 resultType = DynamicType{TypeCategory::Logical, in Match()
1711 resultType = DynamicType{kind, 1}; in Match()
1713 resultType = DynamicType{*category, kind}; in Match()
1739 resultType = DynamicType{ in Match()
2441 std::optional<DynamicType> arrayType; in ApplySpecificChecks()
[all …]
H A Dexpression.cpp83 std::optional<DynamicType> ExpressionBase<A>::GetType() const { in GetType()
88 [&](const auto &x) -> std::optional<DynamicType> { in GetType()
110 DynamicType Parentheses<SomeDerived>::GetType() const { in GetType()
222 DynamicType StructureConstructor::GetType() const { return result_.GetType(); } in GetType()
/llvm-project-15.0.7/flang/include/flang/Evaluate/
H A Dtype.h88 class DynamicType {
98 explicit constexpr DynamicType(
112 DynamicType result; in CONSTEXPR_CONSTRUCTORS_AND_ASSIGNMENTS()
119 DynamicType result; in UnlimitedPolymorphic()
127 DynamicType result; in AssumedType()
162 DynamicType ResultTypeForMultiply(const DynamicType &) const;
227 constexpr DynamicType() {} in DynamicType() function
244 const std::optional<DynamicType> &);
400 constexpr DynamicType GetType() const { in GetType()
457 std::optional<DynamicType> ComparisonType(
[all …]
H A Dintrinsics-library.h22 class DynamicType; variable
43 DynamicType resultType, const std::vector<DynamicType> &argTypes);
H A Dcharacteristics.h64 explicit TypeAndShape(DynamicType t) : type_{t} { AcquireLEN(); } in TypeAndShape()
65 TypeAndShape(DynamicType t, int rank) : type_{t}, shape_(rank) { in TypeAndShape()
68 TypeAndShape(DynamicType t, Shape &&s) : type_{t}, shape_{std::move(s)} { in TypeAndShape()
71 TypeAndShape(DynamicType t, std::optional<Shape> &&s) : type_{t} { in TypeAndShape()
133 DynamicType type() const { return type_; } in type()
134 TypeAndShape &set_type(DynamicType t) { in set_type()
173 DynamicType type_;
188 explicit DummyDataObject(DynamicType t) : type{t} {} in DummyDataObject()
267 explicit FunctionResult(DynamicType);
288 void SetType(DynamicType t) { std::get<TypeAndShape>(u).set_type(t); } in SetType()
H A Dcall.h108 std::optional<DynamicType> GetType() const;
199 std::optional<DynamicType> GetType() const;
262 std::optional<DynamicType> GetType() const { return proc_.GetType(); } in GetType()
H A Dexpression.h93 std::optional<DynamicType> GetType() const;
181 std::optional<DynamicType>, void>
240 DynamicType GetType() const;
466 static constexpr DynamicType GetType() { return Result::GetType(); }
484 static constexpr DynamicType GetType() { return Result::GetType(); }
508 constexpr DynamicType GetType() const { return result_.GetType(); }
647 static constexpr DynamicType GetType() { return Result::GetType(); }
737 DynamicType GetType() const;
H A Dconstant.h116 constexpr DynamicType GetType() const { return result_.GetType(); } in GetType()
192 DynamicType GetType() const { return {KIND, length_}; } in GetType()
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dcheck-select-type.cpp23 TypeCaseValues(SemanticsContext &c, const evaluate::DynamicType &t) in TypeCaseValues()
52 std::optional<evaluate::DynamicType> GetGuardType( in GetGuardType()
57 -> std::optional<evaluate::DynamicType> { in GetGuardType()
61 return evaluate::DynamicType::From(typeSpec.declTypeSpec); in GetGuardType()
64 -> std::optional<evaluate::DynamicType> { in GetGuardType()
66 return evaluate::DynamicType(*derivedTypeSpec); in GetGuardType()
75 const evaluate::DynamicType &guardDynamicType) { in PassesChecksOnGuard()
155 std::optional<evaluate::DynamicType> guardTypeDynamic) in TypeCase()
190 std::optional<evaluate::DynamicType> guardType() const { in guardType()
205 std::optional<evaluate::DynamicType> guardType_; // is this POD?
[all …]
H A Dexpression.cpp50 struct DynamicTypeWithLength : public DynamicType {
51 explicit DynamicTypeWithLength(const DynamicType &t) : DynamicType{t} {} in DynamicTypeWithLength()
144 std::optional<DynamicType> otherType);
147 RelationalOperator, const DynamicType &, const DynamicType &) const;
179 const DynamicType &lhsType, const DynamicType &rhsType);
889 DynamicType::From(symbol)}) { in Analyze()
1128 if (std::optional<DynamicType> dyType{DynamicType::From(*sym)}) { in Analyze()
1383 std::optional<DynamicType> dyType{x->GetType()}; in Push()
1697 std::optional<DynamicType> valueType{DynamicType::From(value)}; in Analyze()
3405 const DynamicType &leftType, const DynamicType &rightType) const { in IsIntrinsicRelational()
[all …]
H A Dtools.cpp115 const std::optional<evaluate::DynamicType> &lhsType, in MightBeSameDerivedType()
116 const std::optional<evaluate::DynamicType> &rhsType) { in MightBeSameDerivedType()
121 const std::optional<evaluate::DynamicType> &lhsType, int lhsRank, in IsDefinedAssignment()
147 const evaluate::DynamicType &type0, int rank0, in IsIntrinsicRelational()
148 const evaluate::DynamicType &type1, int rank1) { in IsIntrinsicRelational()
166 bool IsIntrinsicNumeric(const evaluate::DynamicType &type0) { in IsIntrinsicNumeric()
170 const evaluate::DynamicType &type1, int rank1) { in IsIntrinsicNumeric()
176 bool IsIntrinsicLogical(const evaluate::DynamicType &type0) { in IsIntrinsicLogical()
180 const evaluate::DynamicType &type1, int rank1) { in IsIntrinsicLogical()
187 const evaluate::DynamicType &type1, int rank1) { in IsIntrinsicConcat()
[all …]
H A Dcheck-case.cpp24 CaseValues(SemanticsContext &c, const evaluate::DynamicType &t) in CaseValues()
217 const evaluate::DynamicType &caseExprType_;
234 const evaluate::DynamicType &exprType;
H A Dcheck-allocate.cpp24 std::optional<evaluate::DynamicType> sourceExprType;
287 const DeclTypeSpec &type1, const evaluate::DynamicType &type2) { in IsTypeCompatible()
376 const DeclTypeSpec &type1, const evaluate::DynamicType &type2) { in HaveCompatibleKindParameters()
565 const evaluate::DynamicType &sourceType{ in RunCoarrayRelatedChecks()
H A Ddata-to-inits.cpp121 const SomeExpr &, const evaluate::DynamicType &);
196 if (const auto dynamicType{evaluate::DynamicType::From(*name.symbol)}) { in Scan()
273 const SomeExpr &expr, const evaluate::DynamicType &type) { in ConvertElement()
541 if (auto dyType{evaluate::DynamicType::From(component)}) { in PopulateWithComponentDefaults()
672 if (auto dyType{evaluate::DynamicType::From(s)}) { in ComputeMinElementBytes()
879 } else if (auto symbolType{evaluate::DynamicType::From(symbol)}) { in ConstructInitializer()
/llvm-project-15.0.7/mlir/lib/IR/
H A DExtensibleDialect.cpp128 DynamicType DynamicType::get(DynamicTypeDefinition *typeDef, in get()
133 return detail::TypeUniquer::getWithTypeID<DynamicType>( in get()
137 DynamicType
144 return detail::TypeUniquer::getWithTypeID<DynamicType>( in getChecked()
152 bool DynamicType::classof(Type type) { in classof()
156 ParseResult DynamicType::parse(AsmParser &parser, in parse()
158 DynamicType &parsedType) { in parse()
168 void DynamicType::print(AsmPrinter &printer) { in print()
473 DynamicType dynType; in parseOptionalDynamicType()
474 if (DynamicType::parse(parser, typeDef, dynType)) in parseOptionalDynamicType()
[all …]
/llvm-project-15.0.7/flang/include/flang/Semantics/
H A Dtools.h70 const std::optional<evaluate::DynamicType> &lhsType, int lhsRank,
71 const std::optional<evaluate::DynamicType> &rhsType, int rhsRank);
74 const evaluate::DynamicType &, int, const evaluate::DynamicType &, int);
75 bool IsIntrinsicNumeric(const evaluate::DynamicType &);
77 const evaluate::DynamicType &, int, const evaluate::DynamicType &, int);
78 bool IsIntrinsicLogical(const evaluate::DynamicType &);
80 const evaluate::DynamicType &, int, const evaluate::DynamicType &, int);
82 const evaluate::DynamicType &, int, const evaluate::DynamicType &, int);
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DExtensibleDialect.h34 class DynamicType; variable
269 friend DynamicType; variable
288 class DynamicType
289 : public Type::TypeBase<DynamicType, Type, detail::DynamicTypeStorage,
298 static DynamicType get(DynamicTypeDefinition *typeDef,
304 static DynamicType getChecked(function_ref<InFlightDiagnostic()> emitError,
326 DynamicType &parsedType);
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DDynamicTypeChecker.cpp59 void reportTypeError(QualType DynamicType, QualType StaticType,
68 void DynamicTypeChecker::reportTypeError(QualType DynamicType, in reportTypeError() argument
77 QualType::print(DynamicType.getTypePtr(), Qualifiers(), OS, C.getLangOpts(), in reportTypeError()
/llvm-project-15.0.7/flang/lib/Lower/
H A DCallInterface.cpp218 Fortran::evaluate::DynamicType dynamicType = typeAndShape->type(); in walkResultLengths()
638 static llvm::Optional<Fortran::evaluate::DynamicType> getResultDynamicType( in getResultDynamicType()
666 if (llvm::Optional<Fortran::evaluate::DynamicType> type = in mustPassLengthWithDummyProcedure()
681 Fortran::evaluate::DynamicType dynamicType = typeAndShape->type(); in handleImplicitResult()
704 handleImplicitCharacterResult(const Fortran::evaluate::DynamicType &type) { in handleImplicitCharacterResult()
746 Fortran::evaluate::DynamicType dynamicType = obj.type.type(); in handleImplicitDummy()
789 translateDynamicType(const Fortran::evaluate::DynamicType &dynamicType) { in translateDynamicType()
847 Fortran::evaluate::DynamicType dynamicType = obj.type.type(); in handleExplicitDummy()
912 llvm::Optional<Fortran::evaluate::DynamicType> resultTy = in handleImplicitDummy()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DCMakeLists.txt25 DynamicType.cpp

123