diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2025-01-09 17:16:04 +0900 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2025-01-09 17:16:04 +0900 |
commit | 0aa930a41f2d1ebf1fa90ec42da8f96d15a4dcbb (patch) | |
tree | 6a77b463f700e090df586672c26b9fe765fd115b /flang/lib/Lower/OpenACC.cpp | |
parent | ec6892d1c979ce0b84c86918d5cdbb03037b409a (diff) | |
parent | 6d16b1c5c468a79ecf867293023c89ac518ecdda (diff) | |
download | llvm-users/chapuni/cov/single/nextcount-base.zip llvm-users/chapuni/cov/single/nextcount-base.tar.gz llvm-users/chapuni/cov/single/nextcount-base.tar.bz2 |
Merge branch 'users/chapuni/cov/single/pair' into users/chapuni/cov/single/nextcount-baseusers/chapuni/cov/single/nextcount-base
Diffstat (limited to 'flang/lib/Lower/OpenACC.cpp')
-rw-r--r-- | flang/lib/Lower/OpenACC.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp index ed18ad8..8155c363 100644 --- a/flang/lib/Lower/OpenACC.cpp +++ b/flang/lib/Lower/OpenACC.cpp @@ -2670,11 +2670,13 @@ static void genACCDataOp(Fortran::lower::AbstractConverter &converter, asyncOnlyDeviceTypes); attachEntryOperands.append(dataClauseOperands.begin() + crtDataStart, dataClauseOperands.end()); - } else if(const auto *defaultClause = - std::get_if<Fortran::parser::AccClause::Default>(&clause.u)) { + } else if (const auto *defaultClause = + std::get_if<Fortran::parser::AccClause::Default>( + &clause.u)) { if ((defaultClause->v).v == llvm::acc::DefaultValue::ACC_Default_none) hasDefaultNone = true; - else if ((defaultClause->v).v == llvm::acc::DefaultValue::ACC_Default_present) + else if ((defaultClause->v).v == + llvm::acc::DefaultValue::ACC_Default_present) hasDefaultPresent = true; } } @@ -3830,7 +3832,7 @@ genDeclareInFunction(Fortran::lower::AbstractConverter &converter, static void genDeclareInModule(Fortran::lower::AbstractConverter &converter, - mlir::ModuleOp &moduleOp, + mlir::ModuleOp moduleOp, const Fortran::parser::AccClauseList &accClauseList) { mlir::OpBuilder modBuilder(moduleOp.getBodyRegion()); for (const Fortran::parser::AccClause &clause : accClauseList.v) { @@ -3981,7 +3983,7 @@ static void attachRoutineInfo(mlir::func::FuncOp func, void Fortran::lower::genOpenACCRoutineConstruct( Fortran::lower::AbstractConverter &converter, - Fortran::semantics::SemanticsContext &semanticsContext, mlir::ModuleOp &mod, + Fortran::semantics::SemanticsContext &semanticsContext, mlir::ModuleOp mod, const Fortran::parser::OpenACCRoutineConstruct &routineConstruct, Fortran::lower::AccRoutineInfoMappingList &accRoutineInfos) { fir::FirOpBuilder &builder = converter.getFirOpBuilder(); @@ -4139,7 +4141,7 @@ void Fortran::lower::genOpenACCRoutineConstruct( } void Fortran::lower::finalizeOpenACCRoutineAttachment( - mlir::ModuleOp &mod, + mlir::ModuleOp mod, Fortran::lower::AccRoutineInfoMappingList &accRoutineInfos) { for (auto &mapping : accRoutineInfos) { mlir::func::FuncOp funcOp = |