Lines Matching defs:cookie

154                       mlir::Value cookie, const D &ioImpliedDo,
194 mlir::Location loc, mlir::Value cookie,
204 cookie,
213 mlir::ValueRange{cookie});
642 mlir::Value cookie, mlir::func::FuncOp funcOp,
653 llvm::SmallVector<mlir::Value> args = {cookie, groupAddr};
716 Fortran::lower::AbstractConverter &converter, mlir::Value cookie,
722 genIoLoop(converter, cookie, impliedDo->value(), isFormatted, checkResult,
740 llvm::SmallVector<mlir::Value> outputFuncArgs = {cookie};
836 mlir::Value cookie, const fir::ExtendedValue &item) {
839 llvm::SmallVector<mlir::Value> inputFuncArgs = {cookie};
872 mlir::Value cookie,
879 genIoLoop(converter, cookie, impliedDo->value(), isFormatted, checkResult,
899 createIoRuntimeCallForItem(converter, loc, inputFunc, cookie,
908 converter, loc, inputFunc, cookie,
925 ok = createIoRuntimeCallForItem(converter, loc, inputFunc, cookie, itemExv);
932 mlir::Value cookie, const D &ioImpliedDo,
962 genInputItemList(converter, cookie, itemList, isFormatted, checkResult,
965 genOutputItemList(converter, cookie, itemList, isFormatted, checkResult,
1138 // These are threaded together for a single statement via the passed cookie.
1144 mlir::Location loc, mlir::Value cookie,
1153 llvm::SmallVector<mlir::Value> ioArgs = {cookie, val};
1161 mlir::Location loc, mlir::Value cookie,
1170 llvm::SmallVector<mlir::Value> ioArgs = {cookie, std::get<0>(tup),
1177 mlir::Location loc, mlir::Value cookie, const A &spec) {
1193 mlir::Value cookie, const Fortran::parser::FileNameExpr &spec) {
1202 llvm::SmallVector<mlir::Value> ioArgs{cookie, std::get<0>(tup),
1210 mlir::Value cookie, const Fortran::parser::ConnectSpec::CharExpr &spec) {
1265 llvm::SmallVector<mlir::Value> ioArgs = {cookie, std::get<0>(tup),
1273 mlir::Value cookie, const Fortran::parser::ConnectSpec::Recl &spec) {
1274 return genIntIOOption<mkIOKey(SetRecl)>(converter, loc, cookie, spec);
1280 mlir::Value cookie, const Fortran::parser::StatusExpr &spec) {
1281 return genCharIOOption<mkIOKey(SetStatus)>(converter, loc, cookie, spec.v);
1287 mlir::Value cookie, const Fortran::parser::IoControlSpec::CharExpr &spec) {
1319 llvm::SmallVector<mlir::Value> ioArgs = {cookie, std::get<0>(tup),
1327 mlir::Value cookie,
1329 return genCharIOOption<mkIOKey(SetAsynchronous)>(converter, loc, cookie,
1336 mlir::Value cookie, const Fortran::parser::IoControlSpec::Pos &spec) {
1337 return genIntIOOption<mkIOKey(SetPos)>(converter, loc, cookie, spec);
1343 mlir::Value cookie, const Fortran::parser::IoControlSpec::Rec &spec) {
1344 return genIntIOOption<mkIOKey(SetRec)>(converter, loc, cookie, spec);
1348 /// Generates "VAR = IoRuntimeKey(cookie)".
1351 mlir::Location loc, mlir::Value cookie,
1356 builder.create<fir::CallOp>(loc, ioFunc, mlir::ValueRange{cookie})
1390 /// For each specifier, build the appropriate call, threading the cookie.
1393 mlir::Location loc, mlir::Value cookie,
1418 return genIOOption(converter, loc, cookie, x);
1475 mlir::Location loc, mlir::Value cookie,
1487 llvm::SmallVector<mlir::Value> ioArgs = {cookie,
1881 mlir::Value cookie = call.getResult(0);
1882 genConditionHandlerCall(converter, loc, cookie, stmt.v, csi);
1885 threadSpecs(converter, loc, cookie, stmt.v, csi.hasErrorConditionSpec(), ok);
1887 return genEndIO(converter, converter.getCurrentLocation(), cookie, csi,
1917 mlir::Value cookie,
1933 llvm::SmallVector<mlir::Value> ioArgs = {cookie, addr, kind};
1966 auto cookie =
1968 genConditionHandlerCall(converter, loc, cookie, stmt.v, csi);
1971 threadSpecs(converter, loc, cookie, stmt.v, csi.hasErrorConditionSpec(), ok);
1973 genNewunitSpec(converter, loc, cookie, stmt.v);
1975 return genEndIO(converter, loc, cookie, csi, stmtCtx);
2010 auto cookie = builder.create<fir::CallOp>(loc, beginFunc, args).getResult(0);
2011 genConditionHandlerCall(converter, loc, cookie, stmt.v, csi);
2012 return genEndIO(converter, converter.getCurrentLocation(), cookie, csi,
2190 mlir::Value cookie =
2196 genConditionHandlerCall(converter, loc, cookie, stmt.controls, csi);
2197 threadSpecs(converter, loc, cookie, stmt.controls,
2204 genNamelistIO(converter, cookie,
2209 genInputItemList(converter, cookie, stmt.items, isFormatted,
2213 genNamelistIO(converter, cookie,
2218 genOutputItemList(converter, cookie, stmt.items, isFormatted,
2222 genOutputItemList(converter, cookie, std::get<1>(stmt.t), isFormatted,
2236 genIOGetVar<mkIOKey(GetSize)>(converter, loc, cookie, *size);
2239 genIOGetVar<mkIOKey(GetAsynchronousId)>(converter, loc, cookie, *idVar);
2243 mlir::Value result = genEndIO(converter, loc, cookie, csi, stmtCtx);
2289 mlir::Location loc, mlir::Value cookie,
2299 mlir::Value cookie, mlir::Value idExpr,
2314 builder.createConvert(loc, specFuncTy.getInput(0), cookie),
2329 mlir::Value cookie, mlir::Value idExpr,
2351 builder.createConvert(loc, specFuncTy.getInput(0), cookie),
2366 mlir::Value cookie, mlir::Value idExpr,
2385 builder.createConvert(loc, specFuncTy.getInput(0), cookie)};
2419 /// For each inquire-spec, build the appropriate call, threading the cookie.
2421 mlir::Location loc, mlir::Value cookie,
2430 return genInquireSpec(converter, loc, cookie,
2487 auto cookie =
2491 converter, cookie,
2498 llvm::SmallVector<mlir::Value> args = {cookie};
2507 return genEndIO(converter, loc, cookie, csi, stmtCtx);
2512 auto cookie =
2514 genConditionHandlerCall(converter, loc, cookie, *list, csi);
2518 threadInquire(converter, loc, cookie, *list, csi.hasErrorConditionSpec(), ok,
2522 return genEndIO(converter, loc, cookie, csi, stmtCtx);