| /llvm-project-15.0.7/flang/lib/Semantics/ |
| H A D | type.cpp | 50 auto &messages{foldingContext.messages()}; in CookParameters() 105 evaluate::FoldingContext &foldingContext{context.foldingContext()}; in EvaluateParameters() local 106 CookParameters(foldingContext); in EvaluateParameters() 111 auto &messages{foldingContext.messages()}; in EvaluateParameters() 236 evaluate::FoldingContext &foldingContext() { in foldingContext() function in Fortran::semantics::InstantiateHelper 237 return context().foldingContext(); in foldingContext() 264 auto &foldingContext{context.foldingContext()}; in InstantiateNonPDTScope() local 294 auto &foldingContext{context.foldingContext()}; in Instantiate() local 296 foldingContext.messages().Say(typeSymbol_.name(), in Instantiate() 368 foldingContext.messages().Say( in Instantiate() [all …]
|
| H A D | data-to-inits.cpp | 499 evaluate::FoldingContext &foldingContext); 522 evaluate::FoldingContext &foldingContext) { in PopulateWithComponentDefaults() argument 543 foldingContext, component)}) { in PopulateWithComponentDefaults() 552 foldingContext); in PopulateWithComponentDefaults() 558 *componentDerived, foldingContext, component); in PopulateWithComponentDefaults() 617 evaluate::FoldingContext &foldingContext) { in IncorporateExplicitInitialization() argument 668 evaluate::FoldingContext &foldingContext) { in ComputeMinElementBytes() argument 715 auto &foldingContext{exprAnalyzer.GetFoldingContext()}; in CombineEquivalencedInitialization() local 735 combined, inits, symbol, first.offset(), foldingContext); in CombineEquivalencedInitialization() 756 ComputeMinElementBytes(associated, foldingContext)}; in CombineEquivalencedInitialization() [all …]
|
| H A D | compute-offsets.cpp | 235 context_.foldingContext(), *symbol, base.offset, 1)}; in DoEquivalenceSet() 237 context_.foldingContext(), *symbol, offset, 1)}; in DoEquivalenceSet() 332 auto &foldingContext{context_.foldingContext()}; in GetSizeAndAlignment() local 334 symbol, foldingContext)}) { in GetSizeAndAlignment() 336 if (auto size{ToInt64(chars->MeasureSizeInBytes(foldingContext))}) { in GetSizeAndAlignment() 342 foldingContext, true /*aligned*/))}) { in GetSizeAndAlignment()
|
| H A D | assignment.cpp | 53 evaluate::FoldingContext &foldingContext() { in foldingContext() function in Fortran::semantics::AssignmentContext 54 return context_.foldingContext(); in foldingContext() 91 foldingContext().messages().SetLocation(context_.location().value())}; in Analyze() 92 CheckPointerAssignment(foldingContext(), *assignment); in Analyze() 221 if (auto shape{evaluate::GetShape(foldingContext(), expr)}) { in CheckShape()
|
| H A D | check-case.cpp | 84 evaluate::FoldingContext foldingContext{ in GetValue() local 85 context_.foldingContext(), foldingMessages}; in GetValue() 86 auto folded{evaluate::Fold(foldingContext, SomeExpr{*x->v})}; in GetValue() 87 if (auto converted{evaluate::Fold(foldingContext, in GetValue() 90 auto back{evaluate::Fold(foldingContext, in GetValue()
|
| H A D | runtime-type-info.cpp | 393 derived.CookParameters(context_.foldingContext()); in DescribeType() 711 auto &foldingContext{context_.foldingContext()}; in DescribeComponent() local 713 symbol, foldingContext)}; in DescribeComponent() 732 auto restorer{foldingContext.WithPDTInstance(*pdtInstance)}; in DescribeComponent() 733 len = Fold(foldingContext, std::move(len)); in DescribeComponent() 803 evaluate::GetRawLowerBound(foldingContext, entity, j)), in DescribeComponent() 806 evaluate::GetRawUpperBound(foldingContext, entity, j), parameters)); in DescribeComponent() 906 ptrDtDerived.CookParameters(context_.foldingContext()); in InitializeDataPointer() 1020 specific, context_.foldingContext())}) { in DescribeSpecialProc()
|
| H A D | resolve-names-utils.h | 62 Fold(context.foldingContext(), AnalyzeExpr(context, expr))}) { in EvaluateIntExpr()
|
| H A D | resolve-names-utils.cpp | 347 expr = evaluate::Fold(context_.foldingContext(), in GetBound() 634 evaluate::Fold(context_.foldingContext(), AnalyzeExpr(context_, bound))}; in CheckArrayBound() 658 evaluate::Fold(context_.foldingContext(), AnalyzeExpr(context_, bound))}; in CheckSubstringBound()
|
| H A D | check-io.h | 92 evaluate::Fold(context_.foldingContext(), common::Clone(*expr))}; in ENUM_CLASS()
|
| H A D | check-declarations.cpp | 137 evaluate::FoldingContext &foldingContext_{context_.foldingContext()}; 916 details.result(), context_.foldingContext())}; in CheckSubprogram() 918 subprogramDetails->result(), context_.foldingContext())}; in CheckSubprogram() 1466 Procedure::Characterize(symbol, context_.foldingContext()))}; in Characterize() 1720 auto restorer2{context_.foldingContext().messages().SetContext( in Check() 2023 context_.foldingContext().intrinsics()}; in CheckGenericVsIntrinsic() 2411 evaluate::Fold(context().foldingContext(), common::Clone(extent))); in FoldShape()
|
| H A D | expression.cpp | 1614 auto &foldingContext{exprAnalyzer_.GetFoldingContext()}; in UnrollConstantImpliedDo() local 1616 for (auto &at{foldingContext.StartImpliedDo(name, lower)}; in UnrollConstantImpliedDo() 1624 foldingContext.EndImpliedDo(name); in UnrollConstantImpliedDo() 2168 ProcedureDesignator{specific}, context_.foldingContext())}) { in ResolveGeneric() 2638 proc, context_.foldingContext())}; in CheckCall() 3462 auto &foldingContext{context_.GetFoldingContext()}; in CheckConformance() local 3463 auto lhShape{GetShape(foldingContext, *lhs)}; in CheckConformance() 3464 auto rhShape{GetShape(foldingContext, *rhs)}; in CheckConformance() 3466 if (!evaluate::CheckConformance(foldingContext.messages(), *lhShape, in CheckConformance()
|
| H A D | mod-file.cpp | 1034 bool wasInModuleFile{context_.foldingContext().inModuleFile()}; in Read() 1035 context_.foldingContext().set_inModuleFile(true); in Read() 1037 context_.foldingContext().set_inModuleFile(wasInModuleFile); in Read()
|
| H A D | check-do-forall.cpp | 729 if (auto bad{FindImpureCall(context_.foldingContext(), x)}) { in CheckForImpureCall()
|
| H A D | check-io.cpp | 256 !IsSimplyContiguous(*expr, context_.foldingContext())) { in Enter()
|
| H A D | resolve-names.cpp | 161 return context_->foldingContext(); in GetFoldingContext() 7664 auto &foldingContext{GetFoldingContext()}; in FinishDerivedTypeInstantiation() local 7665 auto restorer{foldingContext.WithPDTInstance(*spec)}; in FinishDerivedTypeInstantiation() 7675 evaluate::Fold(foldingContext, std::move(newInit))}; in FinishDerivedTypeInstantiation()
|
| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | characteristics.cpp | 167 FoldingContext &foldingContext, bool align) const { in MeasureElementSizeInBytes() argument 170 return Fold(foldingContext, in MeasureElementSizeInBytes() 172 foldingContext.targetCharacteristics().GetByteSize( in MeasureElementSizeInBytes() 176 if (auto elementBytes{type_.MeasureSizeInBytes(foldingContext, align)}) { in MeasureElementSizeInBytes() 177 return Fold(foldingContext, std::move(*elementBytes)); in MeasureElementSizeInBytes() 183 FoldingContext &foldingContext) const { in MeasureSizeInBytes() 188 MeasureElementSizeInBytes(foldingContext, GetRank(shape_) > 0)}) { in MeasureSizeInBytes() 190 foldingContext, std::move(*elements) * std::move(*elementBytes)); in MeasureSizeInBytes()
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | CallInterface.cpp | 146 Fortran::evaluate::FoldingContext &foldingContext = in characterize() local 150 procRef.proc(), foldingContext); in characterize() 169 "actual", *expr, foldingContext); in characterize() 358 Fortran::evaluate::FoldingContext &foldingContext = in characterize() local 362 funit.getSubprogramSymbol(), foldingContext); in characterize()
|
| H A D | Bridge.cpp | 183 : bridge{bridge}, foldingContext{bridge.createFoldingContext()} {} in FirConverter() 398 return foldingContext; in getFoldingContext() 2988 return Fortran::evaluate::GetShape(foldingContext, expr); in getShape() 3198 Fortran::evaluate::FoldingContext foldingContext; member in __anon1d418ed20211::FirConverter
|
| /llvm-project-15.0.7/flang/include/flang/Semantics/ |
| H A D | semantics.h | 109 evaluate::FoldingContext &foldingContext() { return foldingContext_; } in foldingContext() function
|
| H A D | expression.h | 372 FoldingContext &foldingContext_{context_.foldingContext()};
|