Lines Matching defs:stmtCtx

148                             Fortran::lower::StatementContext &stmtCtx)
149 : eval{eval}, stmtCtx{stmtCtx} {}
152 Fortran::lower::StatementContext &stmtCtx; // construct exit code
671 Fortran::lower::StatementContext &stmtCtx) override final {
674 stmtCtx);
676 stmtCtx);
1065 return activeConstructStack.back().stmtCtx;
1144 Fortran::lower::StatementContext &stmtCtx) {
1145 return fir::getBase(genExprValue(*expr, stmtCtx, &loc));
1340 Fortran::lower::StatementContext stmtCtx;
1342 stmtCtx);
1343 stmtCtx.finalizeAndReset();
1388 Fortran::lower::StatementContext stmtCtx;
1390 genExprAddr(Fortran::evaluate::AsGenericExpr(sym).value(), stmtCtx));
1446 Fortran::lower::StatementContext stmtCtx;
1448 createFIRExpr(toLocation(), Fortran::semantics::GetExpr(expr), stmtCtx);
1449 stmtCtx.finalizeAndReset();
1455 Fortran::lower::StatementContext stmtCtx;
1457 createFIRExpr(toLocation(), Fortran::semantics::GetExpr(expr), stmtCtx);
1458 stmtCtx.finalizeAndReset();
1481 if (it->stmtCtx.hasCode())
1498 it->stmtCtx.finalizeAndKeep();
1660 Fortran::lower::StatementContext &stmtCtx) {
1661 activeConstructStack.push_back(ConstructContext{eval, stmtCtx});
1785 Fortran::lower::StatementContext stmtCtx;
1790 stmtCtx);
1791 stmtCtx.finalizeAndReset();
1810 Fortran::lower::StatementContext stmtCtx;
1821 stmtCtx);
1828 localSymbols, stmtCtx, /*isUserDefAssignment=*/false);
1830 stmtCtx.finalizeAndReset();
1851 Fortran::lower::StatementContext stmtCtx;
1857 stmtCtx);
1858 stmtCtx.finalizeAndReset();
1871 Fortran::lower::StatementContext stmtCtx;
1875 stmtCtx);
1876 stmtCtx.finalizeAndReset();
2158 Fortran::lower::StatementContext stmtCtx;
2163 createFIRExpr(loc, expr, stmtCtx));
2295 Fortran::lower::StatementContext stmtCtx;
2296 mlir::Value maskCond = createFIRExpr(loc, info.maskExpr, stmtCtx);
2297 stmtCtx.finalizeAndReset();
2354 Fortran::lower::StatementContext stmtCtx;
2355 mlir::Value maskCond = createFIRExpr(loc, info.maskExpr, stmtCtx);
2356 stmtCtx.finalizeAndReset();
2514 Fortran::lower::StatementContext stmtCtx;
2515 pushActiveConstruct(eval, stmtCtx);
2575 Fortran::lower::StatementContext &stmtCtx =
2578 return fir::getBase(genExprValue(e, stmtCtx));
2603 Fortran::lower::StatementContext &stmtCtx =
2606 return fir::getBase(genExprValue(e, stmtCtx));
2658 genExprValue(*Fortran::semantics::GetExpr(mask.value()), stmtCtx);
2939 Fortran::lower::StatementContext stmtCtx;
3015 genExprValue(*Fortran::semantics::GetExpr(*expr.v), stmtCtx)));
3026 genExprValue(*Fortran::semantics::GetExpr(*expr.v), stmtCtx)));
3037 genExprValue(*Fortran::semantics::GetExpr(*stream), stmtCtx)));
3081 stmtCtx))));
3085 stmtCtx))));
3090 *Fortran::semantics::GetExpr(bounds->step), stmtCtx))));
3170 Fortran::lower::StatementContext &stmtCtx =
3171 activeConstructStack.back().stmtCtx;
3179 fir::ExtendedValue exv = genExprAddr(*expr, stmtCtx, &loc);
3194 selector = createFIRExpr(loc, expr, stmtCtx);
3215 loc, selectType, createFIRExpr(toLocation(), expr, stmtCtx)));
3271 stmtCtx.finalizeAndReset();
3330 Fortran::lower::StatementContext &stmtCtx) {
3332 return genExprAddr(selector, stmtCtx);
3335 localSymbols, stmtCtx)
3336 : genExprAddr(selector, stmtCtx);
3341 Fortran::lower::StatementContext stmtCtx;
3342 pushActiveConstruct(eval, stmtCtx);
3355 addSymbol(sym, genAssociateSelector(selector, stmtCtx));
3370 Fortran::lower::StatementContext stmtCtx;
3371 pushActiveConstruct(eval, stmtCtx);
3382 stmtCtx.attachCleanup(
3482 Fortran::lower::StatementContext &stmtCtx =
3483 activeConstructStack.back().stmtCtx;
3489 loc, *this, *selectorExpr, localSymbols, stmtCtx);
3510 stmtCtx.finalizeAndReset();
3552 Fortran::lower::StatementContext stmtCtx;
3556 loc, *builder, selector, stmtCtx);
3600 loc, *builder, rankedBox, stmtCtx, isSimplyContiguous);
3625 Fortran::lower::StatementContext stmtCtx;
3646 pushActiveConstruct(getEval(), stmtCtx);
3662 selector = genExprBox(loc, *Fortran::semantics::GetExpr(*v), stmtCtx);
3664 selector = genExprBox(loc, *Fortran::semantics::GetExpr(*e), stmtCtx);
3990 Fortran::lower::StatementContext stmtCtx;
3992 loc, *this, *expr, localSymbols, stmtCtx);
4030 Fortran::lower::StatementContext &stmtCtx) {
4032 toLocation(), *this, expr, localSymbols, stmtCtx);
4057 Fortran::lower::StatementContext &stmtCtx =
4067 localSymbols, stmtCtx);
4078 *lbounds, ubounds, localSymbols, stmtCtx);
4086 localSymbols, stmtCtx);
4101 localSymbols, stmtCtx);
4150 Fortran::lower::StatementContext stmtCtx;
4157 loc, *this, assign.lhs, localSymbols, stmtCtx);
4169 loc, *this, assign.rhs, localSymbols, stmtCtx)));
4185 fir::getBase(genExprValue(toEvExpr(lbExpr), stmtCtx)));
4193 mlir::Value rhs = fir::getBase(genExprBox(loc, assign.rhs, stmtCtx));
4206 lbounds.push_back(fir::getBase(genExprValue(toEvExpr(lbExpr), stmtCtx)));
4210 genArrayAssignment(assign, stmtCtx, lbounds);
4215 stmtCtx);
4258 Fortran::lower::StatementContext stmtCtx;
4265 lbounds.push_back(fir::getBase(genExprValue(toEvExpr(lbExpr), stmtCtx)));
4266 ubounds.push_back(fir::getBase(genExprValue(toEvExpr(ubExpr), stmtCtx)));
4286 mlir::Value rhs = fir::getBase(genExprBox(loc, assign.rhs, stmtCtx));
4295 genArrayAssignment(assign, stmtCtx, lbounds, ubounds);
4305 fir::ExtendedValue rhs = genExprAddr(assign.rhs, stmtCtx);
4315 localSymbols, stmtCtx)
4316 : genExprAddr(assign.rhs, stmtCtx);
4336 Fortran::lower::StatementContext &stmtCtx) {
4343 stmtCtx.attachCleanup(*valueAndPair.second);
4532 auto evaluateRhs = [&](Fortran::lower::StatementContext &stmtCtx) {
4534 loc, *this, assign.rhs, localSymbols, stmtCtx);
4549 stmtCtx);
4554 auto evaluateLhs = [&](Fortran::lower::StatementContext &stmtCtx) {
4556 loc, *this, assign.lhs, localSymbols, stmtCtx);
4673 Fortran::lower::StatementContext stmtCtx;
4700 lhs = fir::getBase(genExprBox(loc, assign.lhs, stmtCtx));
4702 fir::getBase(genExprBox(loc, assign.rhs, stmtCtx));
4724 genArrayAssignment(assign, stmtCtx);
4735 ? genExprValue(assign.rhs, stmtCtx)
4736 : genExprAddr(assign.rhs, stmtCtx);
4779 return genExprAddr(assign.lhs, stmtCtx);
4859 : stmtCtx;
5029 Fortran::lower::StatementContext stmtCtx;
5115 it->stmtCtx.finalizeAndKeep();
5129 Fortran::lower::StatementContext stmtCtx;
5134 loc, builder->getIndexType(), createFIRExpr(loc, expr, stmtCtx));
5440 Fortran::lower::StatementContext stmtCtx;
5446 stmtCtx);
5477 stmtCtx, preAlloc);