| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | type.cpp | 95 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 D | intrinsics-library.cpp | 32 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 D | call.cpp | 41 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 D | initial-image.cpp | 73 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 D | fold-designator.cpp | 29 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 D | intrinsics.cpp | 1181 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 D | expression.cpp | 83 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 D | type.h | 88 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 D | intrinsics-library.h | 22 class DynamicType; variable 43 DynamicType resultType, const std::vector<DynamicType> &argTypes);
|
| H A D | characteristics.h | 64 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 D | call.h | 108 std::optional<DynamicType> GetType() const; 199 std::optional<DynamicType> GetType() const; 262 std::optional<DynamicType> GetType() const { return proc_.GetType(); } in GetType()
|
| H A D | expression.h | 93 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 D | constant.h | 116 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 D | check-select-type.cpp | 23 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 D | expression.cpp | 50 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 D | tools.cpp | 115 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 D | check-case.cpp | 24 CaseValues(SemanticsContext &c, const evaluate::DynamicType &t) in CaseValues() 217 const evaluate::DynamicType &caseExprType_; 234 const evaluate::DynamicType &exprType;
|
| H A D | check-allocate.cpp | 24 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 D | data-to-inits.cpp | 121 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 D | ExtensibleDialect.cpp | 128 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 D | tools.h | 70 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 D | ExtensibleDialect.h | 34 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 D | DynamicTypeChecker.cpp | 59 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 D | CallInterface.cpp | 218 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 D | CMakeLists.txt | 25 DynamicType.cpp
|