@@ -1294,11 +1294,6 @@ genTargetOp(Fortran::lower::AbstractConverter &converter,
12941294 llvm::SmallVector<mlir::Type> mapSymTypes;
12951295 llvm::SmallVector<mlir::Location> mapSymLocs;
12961296 llvm::SmallVector<const Fortran::semantics::Symbol *> mapSymbols;
1297- llvm::SmallVector<mlir::Value> devicePtrOperands, deviceAddrOperands;
1298- llvm::SmallVector<mlir::Type> devicePtrTypes, deviceAddrTypes;
1299- llvm::SmallVector<mlir::Location> devicePtrLocs, deviceAddrLocs;
1300- llvm::SmallVector<const Fortran::semantics::Symbol *> devicePtrSymbols,
1301- deviceAddrSymbols;
13021297
13031298 ClauseProcessor cp (converter, semaCtx, clauseList);
13041299 cp.processIf (llvm::omp::Directive::OMPD_target, ifClauseOperand);
@@ -1308,15 +1303,11 @@ genTargetOp(Fortran::lower::AbstractConverter &converter,
13081303 cp.processNowait (nowaitAttr);
13091304 cp.processMap (currentLocation, directive, stmtCtx, mapOperands, &mapSymTypes,
13101305 &mapSymLocs, &mapSymbols);
1311- cp.processIsDevicePtr (devicePtrOperands, devicePtrTypes, devicePtrLocs,
1312- devicePtrSymbols);
1313- cp.processHasDeviceAddr (deviceAddrOperands, deviceAddrTypes, deviceAddrLocs,
1314- deviceAddrSymbols);
13151306
1316- cp.processTODO <clause::Private, clause::Firstprivate, clause::Reduction ,
1317- clause::InReduction , clause::Allocate , clause::UsesAllocators ,
1318- clause::Defaultmap>(currentLocation,
1319- llvm::omp::Directive::OMPD_target);
1307+ cp.processTODO <clause::Private, clause::Firstprivate, clause::IsDevicePtr ,
1308+ clause::HasDeviceAddr , clause::Reduction , clause::InReduction ,
1309+ clause::Allocate, clause::UsesAllocators, clause:: Defaultmap>(
1310+ currentLocation, llvm::omp::Directive::OMPD_target);
13201311
13211312 // 5.8.1 Implicit Data-Mapping Attribute Rules
13221313 // The following code follows the implicit data-mapping rules to map all the
@@ -1409,8 +1400,7 @@ genTargetOp(Fortran::lower::AbstractConverter &converter,
14091400 ? nullptr
14101401 : mlir::ArrayAttr::get (converter.getFirOpBuilder ().getContext (),
14111402 dependTypeOperands),
1412- dependOperands, nowaitAttr, devicePtrOperands, deviceAddrOperands,
1413- mapOperands);
1403+ dependOperands, nowaitAttr, mapOperands);
14141404
14151405 genBodyOfTargetOp (converter, semaCtx, eval, genNested, targetOp, mapSymTypes,
14161406 mapSymLocs, mapSymbols, currentLocation);
@@ -2069,8 +2059,6 @@ genOMP(Fortran::lower::AbstractConverter &converter,
20692059 !std::get_if<Fortran::parser::OmpClause::Map>(&clause.u ) &&
20702060 !std::get_if<Fortran::parser::OmpClause::UseDevicePtr>(&clause.u ) &&
20712061 !std::get_if<Fortran::parser::OmpClause::UseDeviceAddr>(&clause.u ) &&
2072- !std::get_if<Fortran::parser::OmpClause::IsDevicePtr>(&clause.u ) &&
2073- !std::get_if<Fortran::parser::OmpClause::HasDeviceAddr>(&clause.u ) &&
20742062 !std::get_if<Fortran::parser::OmpClause::ThreadLimit>(&clause.u ) &&
20752063 !std::get_if<Fortran::parser::OmpClause::NumTeams>(&clause.u )) {
20762064 TODO (clauseLocation, " OpenMP Block construct clause" );
0 commit comments