Home
last modified time | relevance | path

Searched refs:AsFortran (Results 1 – 25 of 50) sorted by relevance

12

/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dformatting.cpp137 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 Dcomplex.cpp94 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 Dcharacteristics.cpp158 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 Dcheck-expression.cpp412 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 Dexpression.cpp16 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 Dcheck-case.cpp98 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 Dtype.cpp134 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 Dcheck-select-type.cpp144 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 Ddata-to-inits.cpp254 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 Dpointer-assignment.cpp230 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 Dcheck-call.cpp216 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 Dcompute-offsets.cpp242 x->AsFortran(), y->AsFortran()) in DoEquivalenceSet()
244 y->AsFortran()); in DoEquivalenceSet()
H A Dsymbol.cpp32 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 Dformatting.h30 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 Dvariable.h55 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 Dcall.h67 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 Dtype.h160 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 Dexpression.h95 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 Dconstant.h117 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const;
191 llvm::raw_ostream &AsFortran(llvm::raw_ostream &) const;
H A Dstatic-data.h69 llvm::raw_ostream &AsFortran(
/llvm-project-15.0.7/flang/lib/Common/
H A DFortran.cpp13 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 DFortran-features.cpp18 result.push_back(AsFortran(opr)); in GetNames()
/llvm-project-15.0.7/flang/include/flang/Common/
H A DFortran.h36 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 DCompilerInvocation.h106 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 Dtype.h113 std::string AsFortran() const;
133 std::string AsFortran() const;
168 std::string AsFortran() const;
306 std::string AsFortran() const;
383 std::string AsFortran() const;

12