| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | formatting.cpp | 137 proc_.AsFortran(o); in AsFortran() 332 left().AsFortran(o); in AsFortran() 340 left().AsFortran(o); in AsFortran() 347 right().AsFortran(o); in AsFortran() 424 o << '[' << GetType().AsFortran(LEN().AsFortran()) << "::"; in AsFortran() 440 AsFortran(ss); in AsFortran() 509 return AsFortran(); in AsFortran() 561 return x.AsFortran(o); in EmitVar() 652 base_.AsFortran(o); in AsFortran() 741 base_.AsFortran(o); in AsFortran() [all …]
|
| H A D | complex.cpp | 94 llvm::raw_ostream &Complex<R>::AsFortran(llvm::raw_ostream &o, int kind) const { in AsFortran() function in Fortran::evaluate::value::Complex 95 re_.AsFortran(o << '(', kind); in AsFortran() 96 im_.AsFortran(o << ',', kind); in AsFortran()
|
| H A D | characteristics.cpp | 158 thatIs, that.AsFortran(), thisIs, AsFortran()); in IsCompatibleWith() 232 std::string TypeAndShape::AsFortran() const { in AsFortran() function in Fortran::evaluate::characteristics::TypeAndShape 233 return type_.AsFortran(LEN_ ? LEN_->AsFortran() : ""); in AsFortran() 237 o << type_.AsFortran(LEN_ ? LEN_->AsFortran() : ""); in Dump() 246 expr->AsFortran(o); in Dump() 277 type.type().AsFortran() + " vs " + actual.type.type().AsFortran(); in IsCompatibleWith() 369 expr.AsFortran(o << sep); in Dump() 892 ifaceTypeShape->type().AsFortran() + " vs "s + in IsCompatibleWith() 893 actualTypeShape->type().AsFortran(); in IsCompatibleWith()
|
| H A D | check-expression.cpp | 412 symTS->type().AsFortran(), x.GetType().value().AsFortran()); in NonPointerInitializationExpr() 472 symbol.name(), folded.AsFortran()); in NonPointerInitializationExpr() 479 symbol.name(), folded.AsFortran()); in NonPointerInitializationExpr() 483 symbol.name(), folded.AsFortran()); in NonPointerInitializationExpr() 488 symbol.name(), xType->AsFortran()); in NonPointerInitializationExpr()
|
| /llvm-project-15.0.7/flang/unittests/Evaluate/ |
| H A D | expression.cpp | 16 TEST(DefaultIntegerExpr::Result::AsFortran() == "INTEGER(4)"); in main() 17 MATCH("666_4", DefaultIntegerExpr{666}.AsFortran()); in main() 18 MATCH("-1_4", (-DefaultIntegerExpr{1}).AsFortran()); in main() 21 MATCH("2_4+3_4*(-4_4)", ex1.AsFortran()); in main() 28 MATCH("-10_4", ex1.AsFortran()); in main() 29 MATCH("1_4/2_4", (DefaultIntegerExpr{1} / DefaultIntegerExpr{2}).AsFortran()); in main() 32 MATCH("1_4", a.AsFortran()); in main() 34 MATCH("2_4", a.AsFortran()); in main() 35 MATCH("2_4", b.AsFortran()); in main()
|
| /llvm-project-15.0.7/flang/lib/Semantics/ |
| H A D | check-case.cpp | 98 folded.AsFortran(), caseExprType_.AsFortran()); in GetValue() 106 x->v->AsFortran()); in GetValue() 108 std::string typeStr{type ? type->AsFortran() : "typeless"s}; in GetValue() 111 typeStr, caseExprType_.AsFortran()); in GetValue() 146 std::string AsFortran() const { in AsFortran() function 151 evaluate::Constant<T>{*lower}.AsFortran(bs << '('); in AsFortran() 155 evaluate::Constant<T>{*upper}.AsFortran(bs << ':'); in AsFortran() 159 evaluate::Constant<T>{*upper}.AsFortran(bs << "(:") << ')'; in AsFortran() 207 iter->AsFortran()); in ReportConflictingCases() 210 p->stmt.source, "Conflicting CASE %s"_en_US, p->AsFortran()); in ReportConflictingCases()
|
| H A D | type.cpp | 134 name, expr->AsFortran()); in EvaluateParameters() 339 desc += folded->AsFortran(); in Instantiate() 582 ss << value.AsFortran(); in AsFortran() 602 return o << x.AsFortran(); in operator <<() 613 x.expr_->AsFortran(o); in operator <<() 674 expr_->AsFortran(ss); in AsFortran() 683 return o << x.AsFortran(); in operator <<() 697 kind.AsFortran(ss); in KindAsFortran() 709 return os << x.AsFortran(); in operator <<() 718 return os << x.AsFortran(); in operator <<() [all …]
|
| H A D | check-select-type.cpp | 144 derived.AsFortran(), selDerivedTypeSpec->AsFortran()); in PassesDerivedTypeChecks() 194 std::string AsFortran() const { in AsFortran() function 198 result += type.AsFortran(); in AsFortran() 236 iter->AsFortran()); in ReportConflictingTypeCases() 239 "Conflicting type specification '%s'"_en_US, p->AsFortran()); in ReportConflictingTypeCases()
|
| H A D | data-to-inits.cpp | 254 bad->AsFortran()); in InitDesignator() 258 designator.AsFortran()); in InitDesignator() 291 type.AsFortran(), expr.GetType().value().AsFortran()); in ConvertElement() 314 return badDesignator->AsFortran(); in InitElement() 379 expr->AsFortran(), DescribeElement()); in InitElement() 384 expr->AsFortran(), DescribeElement()); in InitElement() 409 DescribeElement(), designatorType->AsFortran()); in InitElement() 413 DescribeElement(), designatorType->AsFortran()); in InitElement() 423 folded.AsFortran(), DescribeElement()); in InitElement() 435 designatorType->AsFortran(), DescribeElement()); in InitElement() [all …]
|
| H A D | pointer-assignment.cpp | 230 rhsType->type().AsFortran(), lhsType_->type().AsFortran()}; in Check() 248 d.AsFortran(ss); in Check() 366 lhs.AsFortran(), lhs.Rank(), numBounds); // C1018 in CheckPointerBounds()
|
| H A D | check-call.cpp | 216 actualType.type().AsFortran(len ? len->AsFortran() : ""), in CheckExplicitDataArg() 217 dummy.type.type().AsFortran()); in CheckExplicitDataArg() 562 dummyName, actual.AsFortran()); in CheckExplicitDataArg() 752 expr->AsFortran(), dummyName); in CheckExplicitInterfaceArg() 756 expr->AsFortran(), dummyName); in CheckExplicitInterfaceArg() 861 std::string argName{"actual argument ("s + expr->AsFortran() + in CheckElementalConformance() 880 expr->AsFortran()); in CheckElementalConformance()
|
| H A D | compute-offsets.cpp | 242 x->AsFortran(), y->AsFortran()) in DoEquivalenceSet() 244 y->AsFortran()); in DoEquivalenceSet()
|
| H A D | symbol.cpp | 32 x->AsFortran(os << ' ' << label << ':'); in DumpExpr() 123 os << " -> " << x.stmtFunction_->AsFortran(); in operator <<() 673 [](const DefinedIo &x) { return AsFortran(x).ToString(); }, in ToString() 691 SourceName GenericKind::AsFortran(DefinedIo x) { in AsFortran() function in Fortran::semantics::GenericKind
|
| /llvm-project-15.0.7/flang/include/flang/Evaluate/ |
| H A D | formatting.h | 30 auto operator<<(llvm::raw_ostream &o, const A &x) -> decltype(x.AsFortran(o)) { 31 return x.AsFortran(o); 36 -> decltype(o << x.AsFortran()) { 37 return o << x.AsFortran();
|
| H A D | variable.h | 55 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 88 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 116 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 146 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 178 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 191 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 227 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 275 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 296 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 337 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; [all …]
|
| H A D | call.h | 67 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 111 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 172 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 203 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 246 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const;
|
| H A D | type.h | 160 std::string AsFortran() const; 161 std::string AsFortran(std::string &&charLenExpr) const; 255 static std::string AsFortran() { return GetType().AsFortran(); } in AsFortran() function 367 static std::string AsFortran() { in AsFortran() function 381 static std::string AsFortran() { return "SomeType"s; } in AsFortran() function 412 std::string AsFortran() const;
|
| H A D | expression.h | 95 std::string AsFortran() const; 99 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 198 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 221 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 467 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 485 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 509 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 651 llvm::raw_ostream &AsFortran(llvm::raw_ostream &o) const; 738 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 847 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const;
|
| H A D | constant.h | 117 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const; 191 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const;
|
| H A D | static-data.h | 69 llvm::raw_ostream &AsFortran(
|
| /llvm-project-15.0.7/flang/lib/Common/ |
| H A D | Fortran.cpp | 13 const char *AsFortran(NumericOperator opr) { in AsFortran() function 29 const char *AsFortran(LogicalOperator opr) { in AsFortran() function 45 const char *AsFortran(RelationalOperator opr) { in AsFortran() function
|
| H A D | Fortran-features.cpp | 18 result.push_back(AsFortran(opr)); in GetNames()
|
| /llvm-project-15.0.7/flang/include/flang/Common/ |
| H A D | Fortran.h | 36 const char *AsFortran(NumericOperator); 39 const char *AsFortran(LogicalOperator); 42 const char *AsFortran(RelationalOperator);
|
| /llvm-project-15.0.7/flang/include/flang/Frontend/ |
| H A D | CompilerInvocation.h | 106 x.v->AsFortran(o); 114 x.v->AsFortran(o); 120 x.AsFortran(o << "CALL ");
|
| /llvm-project-15.0.7/flang/include/flang/Semantics/ |
| H A D | type.h | 113 std::string AsFortran() const; 133 std::string AsFortran() const; 168 std::string AsFortran() const; 306 std::string AsFortran() const; 383 std::string AsFortran() const;
|